+ Reply to Thread
Results 1 to 15 of 24
Page 1 of 2
FirstFirst 1 2 ... LastLast

Thread: Snitz import for dummies (MS-SQL or MS-Access)

  1. #1
    New Member shlomot is on a distinguished road shlomot's Avatar
    Join Date
    May 2007
    Age
    53
    Posts
    11

    Snitz import for dummies (MS-SQL or MS-Access)

    Yes I'm a dummy, and yes, I've gone through two hellish weeks trying to migrate from Snitz to vBulletin.

    A lot of reading, consulting, and trial-and-errors have led to a smooth migration from the old forum to the new one. I'll be happy to share this knowledge with other stragglers.

    Please post your questions here and I'll gradually enrich this post with answers as we go along.

    Last but not least, thank you Steve (Impex developer) and Jerry (Snitz import developer) for your continuous support.

    Important: Impex for tier-1 forums (such as Snitz) requires both old and new databases to reside on the same physical server (I assume that this is due to transaction management and locking strategy). Fat chance one can get an MS-SQL and MySQL databases on the same server, not to speak of shared hosting.

    Hence, I decided to go for MySQL to MySQL import and dump my MS-Access or MS-SQL database to a temporary MySQL database that I set up just for this purpose.

    Then, I used a converter that I purchased from Intelligent Converters in order to create the dump file. (Dumping the Microsoft's Enterprise Manager won't help a bit because they script the dump to be read only by other MS database).
    Last edited by shlomot; Mon 14th May '07 at 12:02pm.
    Cheers to all,
    Shlomo Tommer

    tsConnections | Celebrities Galore

  2. #2
    Member ALcorn is on a distinguished road
    Join Date
    Nov 2004
    Posts
    48
    Oh, really interesting! Can you describe the process of migration from Snitz MSSQL to vBulletin MySQL? Thank you

  3. #3
    New Member shlomot is on a distinguished road shlomot's Avatar
    Join Date
    May 2007
    Age
    53
    Posts
    11
    Quote Originally Posted by ALcorn View Post
    Oh, really interesting! Can you describe the process of migration from Snitz MSSQL to vBulletin MySQL? Thank you
    The process is described in great details in the online manual, so there's no real need to repeat it here.

    Please ask about specific deliberations or challenges that you are facing, and keep the cheer . Today I performed my final run and it took less than 15 minutes from start to end without any obstacles.

    I'll gladly help you, just be specific
    Cheers to all,
    Shlomo Tommer

    tsConnections | Celebrities Galore

  4. #4
    ImpEx Developer Jerry will become famous soon enough Jerry's Avatar
    Join Date
    Dec 2002
    Location
    Secret underground lab
    Posts
    9,115
    Blog Entries
    5
    Quote Originally Posted by shlomot View Post
    Important: Impex for tier-1 forums (such as Snitz) requires both old and new databases to reside on the same physical server (I assume that this is due to transaction management and locking strategy). Fat chance one can get an MS-SQL and MySQL databases on the same server, not to speak of shared hosting.
    Not at all, this is due to databases not allowing in most cases remote access.

    If both databases allow remote access, you can have the source on one server, ImpEx on a second and vBulletin and its database on a 3rd.

  5. #5
    New Member gpspassion has disabled reputation
    Join Date
    Feb 2008
    Posts
    6
    Currently giving a Snitz->Vbulletin conversion a shot and I'm facing a problem with the import.

    I've made sure the Snitz mssql database can be accessed from the new vbulletin server on the default 1433 port (I can telnet) and have activated php_mssql in WAMPS but the Impex gives me many errors in step 1 :"Check and update database" starting at:

    "ACTIVE_USERS NOT found.
    ALBUM NOT found.
    ALBUM_CAT NOT found.
    ALBUM_CONFIG NOT found.
    etc..."

    Is there a way I can test that php_mssql is working properly and able to connect to that remote database ? Do I need to specify the 1433 port somewhere ?

    TIA
    Last edited by gpspassion; Mon 4th Feb '08 at 10:32am.

  6. #6
    Member ALcorn is on a distinguished road
    Join Date
    Nov 2004
    Posts
    48
    gpspassion, try the following PHP script:

    PHP Code:
    <? 
    $ser
    ="SERVEUR"#the name of the SQL Server
    $db="Runtime"#the name of the database
    $user="sa"#a valid username
    $pass=""#a password for the username

    # one line
    $conn=odbc_connect("Driver={SQL Server};Server=".$ser.";Database=".$db,$user,$pass);
    # one line

    ?>

  7. #7
    Member ALcorn is on a distinguished road
    Join Date
    Nov 2004
    Posts
    48
    And this one:

    PHP Code:
    <? 
    $conn
    =mssql_connect("SERVEUR","sa",'password'); 
    if (
    $conn) { 
    echo 
    "GOOD"

    else { 
    echo 
    "BAD".mssql_get_last_message(); 


    ?>

  8. #8
    New Member gpspassion has disabled reputation
    Join Date
    Feb 2008
    Posts
    6
    Thanks, worked a charm (added <?php at the beginning), so it seems my setup is correct, wonder why impex errors out then.

    [EDIT] - second one doesn't though, it seems it's missing the database name ?

    Might try the MSSQL->MYSQL route with this converter http://www.kofler.cc/mysql/mssql2mysql.html#guiversion and the import into MySQL on the vbulleting server.

  9. #9
    Member ALcorn is on a distinguished road
    Join Date
    Nov 2004
    Posts
    48
    The're also some interesting tips about debugging connection problems to MSSQL server from php.

    Seems like the version of ntwdblib.dll file do matter.
    Last edited by ALcorn; Mon 4th Feb '08 at 12:02pm. Reason: more tips added

  10. #10
    New Member gpspassion has disabled reputation
    Join Date
    Feb 2008
    Posts
    6
    Thanks, looks like the connection is ok based on your sricpt.

    So I tried to import a 732MB .sql in MySql and naturally it was too large so I bumped up the limits to 1000MB, but now I am getting time-outs, and the data is not getting imported correctly...don't know if the limit can be raised with shlomot must have figured that out, hopefully he is still around !

    One problem after the other, eh ! sigh...

  11. #11
    Member ALcorn is on a distinguished road
    Join Date
    Nov 2004
    Posts
    48
    How you import the dump in MySQL? Via console or phpMyAdmin? Big dumps should be imported via the mysql console.

  12. #12
    New Member gpspassion has disabled reputation
    Join Date
    Feb 2008
    Posts
    6
    Yes, being rather new at this I was using phpMyAdmin, not sure what the syntax in the mysql console should be, will try to look it up.

  13. #13
    Member ALcorn is on a distinguished road
    Join Date
    Nov 2004
    Posts
    48
    mysql -h host -u user -p dbname < dump.sql

  14. #14
    New Member gpspassion has disabled reputation
    Join Date
    Feb 2008
    Posts
    6
    Thanks had just found this mysql -u username databasename < filename.txt but it seemed to be missing handles, yours looks better, let me drop what got imported so far and try that.

  15. #15
    New Member gpspassion has disabled reputation
    Join Date
    Feb 2008
    Posts
    6
    No luck so far, it is complaining about the syntax, maybe the path to the file. Ok, I was trying to type that from the console, duh, couldn't work, let me try from the DOS prompt, can it be done directly in the console?

    UPDATE - it's crunching...

    This script looked promising http://www.ozerov.de/bigdump.php but I am getting "At this place the current query includes more than 300 dump lines." errors...
    Last edited by gpspassion; Mon 4th Feb '08 at 1:18pm.

+ Reply to Thread
Page 1 of 2
FirstFirst 1 2 ... LastLast

Similar Threads

  1. From Snitz Access DB to vBulletin mysql
    By dublinie in forum vBulletin Impex Import System
    Replies: 4
    Last Post: Sat 2nd May '09, 12:50pm
  2. Import Snitz (Access DB) forum?
    By reverie158 in forum vBulletin Impex Import System
    Replies: 3
    Last Post: Wed 25th Apr '07, 5:27pm
  3. MySQL import/export for dummies
    By Doug Nelson in forum Chit Chat
    Replies: 2
    Last Post: Sun 15th Apr '07, 5:41am
  4. Snitz Forums import will not import private messages
    By pipedreams in forum vBulletin Impex Import System
    Replies: 14
    Last Post: Thu 28th Apr '05, 5:42pm
  5. Snitz Access MDB to vBulletin
    By lardude in forum vBulletin Pre-sales Questions
    Replies: 13
    Last Post: Thu 6th Jan '05, 2:30pm

Tags for this Thread

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts