Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I want to create a database file (.mdf) at a specific location, then I want to run a sql script, may be another .sql file (to create tables and populate default values in .mdf file).

How can i do it programmatically?

share|improve this question
 
What is wrong with reading the fine manual? In particular, the second example. –  ta.speot.is Aug 7 '13 at 8:49
 
Not sure what u meant, but I am newbie to C#, don't know the syntax. Need help there. Thanks –  user1889838 Aug 7 '13 at 8:51
add comment

1 Answer

Create DB and run script Should help you

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.