If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > .sql to MDF

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-07-11, 06:14
frederic202 frederic202 is offline
Registered User
 
Join Date: Apr 2011
Posts: 2
Question .sql to MDF

I have a problem. we created a database in the program Navicat Lite for our schoolproject. Eveything is saved in a .sql file.
Is there any way to convert this to a MDF/LDF file?
We really need this!

thank you
Reply With Quote
  #2 (permalink)  
Old 04-07-11, 07:45
r937 r937 is online now
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,540
Quote:
Originally Posted by frederic202 View Post
Eveything is saved in a .sql file.
you will ahve to edit the CREATE TABLE and INSERT statements so that they are compatible with SQL Server syntax

to give you one example, MySQL has auto_increments, SQL Server has identity columns

then just execute the edited sql file into your new database
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 04-07-11, 09:56
frederic202 frederic202 is offline
Registered User
 
Join Date: Apr 2011
Posts: 2
we were able to put the file in SQL server 2008.
But where can we find the .MDF file?
thanx
Reply With Quote
Reply

Tags
mdf, navicat, sql

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On