Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 14th, 2009, 09:19 PM
Authorized User
 
Join Date: Jul 2008
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via MSN to ramone_johnny
Question SQL Script File - How To Restore?

Hi guys,
I backed up a MySQL database just recently and have a text file (SQL Script File) on my local hard drive that Id like to restore if possible into MS SQL server. As I havent done this before I am unsure as to how its done.

I have both MS SQL 2000 Enterprise Edition and 2005 MS SQL Management Studio.

Cheers,
John
__________________
Works Media - Online Marketing & SEO
 
Old May 19th, 2009, 02:52 PM
Authorized User
 
Join Date: Jul 2008
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via MSN to ramone_johnny
Default

Can anyone assist with this please???
__________________
Works Media - Online Marketing & SEO
 
Old May 20th, 2009, 12:32 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

You may need to look at those scripts and change it a bit in terms of syntax. and some of the statements that are different between MYSQL and MSSQL atleast to start with the CREATE DATABASE statement. INSERT statements are different in MYSQL, with multiple row values done using one INSERT statement, but not the same on MSSQL.

You could have also looked for some tools that can transfer data from mysql to SQL server.

Hope that helps.

Cheers,
__________________
- Vijay G
 
Old May 20th, 2009, 03:28 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

It's possible that you could create a database and import the data from your script file if in fact it does contain data.

It just depends on what is really in your file. Is it just the scripting for the schema of the database or is it data?





Similar Threads
Thread Thread Starter Forum Replies Last Post
How Run .sql Script file in MS SQL Server 2000? aarkaycee SQL Server 2000 5 October 12th, 2009 05:43 AM
Restore SQL failed drink BOOK: ASP.NET Website Programming Problem-Design-Solution 2 October 23rd, 2005 11:00 PM
Restore SQL 2000 .bak file into SQL 7.0 ?? mat41 SQL Server 2000 9 April 8th, 2005 04:00 AM
Script to upload text file to SQL with errors ss2003 Beginning PHP 2 March 10th, 2004 12:00 PM
Script for restore norecovery, read-only Bob Bedell SQL Server 2000 2 October 29th, 2003 12:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.