Results 1 to 3 of 3

Thread: .sql to MDF

  1. #1
    Join Date
    Apr 2011
    Posts
    2

    Question Unanswered: .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

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    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
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  3. #3
    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

Tags for this Thread

Posting Permissions

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