Click here to Skip to main content
15,914,409 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hello,

How to run SQL database Script for database create and install with .net windows application setup?

My sql server authentication is:-

DataSource=.\SQLEXPRESS;Initial Catalog=abc;SqlScript=Sqlscript.txt;

I am creating database in sqlscript and i want to install that.

I am not using login and password,that is not required.

Please help me for this.

Thank You.
Ankit Agarwal
Software Engineer
Posted
Updated 3-Jan-13 20:46pm
v2

1 solution

 
Share this answer
 
Comments
[no name] 4-Jan-13 2:54am    
I have tried for that but it's not successful.
Suvabrata Roy 4-Jan-13 3:00am    
what was the error

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900