0

I have worked on Visual studio 2008 before, but do not have a lot of experience in working with databases. I have a Sql Script file which contains the complete information about the datanase that i am supposed to replicate and use in my project(which is a web site). Could someone guide me as to how am i supposed to use the Sql script file to create the database...? The language i am using is C#. Thanks a lot...

2
  • do you know what kind of database the script is for? (for example SQL Server, Oracle, mysql) Commented Sep 5, 2010 at 11:11
  • I found it out, its SQL server... Commented Sep 5, 2010 at 14:19

1 Answer 1

1

I think you should just run the sql script directly on the SQL engine.

From the command prompt: sqlcmd -i C:\myScript.sql

Or open it in Server Management Studio, and hit execute.

http://msdn.microsoft.com/en-us/library/ms170572.aspx

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.