Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Dear Member,
I have a problem. I have a project with SQL Server database. I want to make a setup file in which attach script to my database. So when I run this set up file on computer automatically run this SQL query on my SQL Server, so my database create automatically.


Thank you
Akhilesh Pandit
Posted
Updated 19-Jun-12 5:11am
v3
Comments
Shahin Khorshidnia 19-Jun-12 11:14am    
Hello, Please: 1.DON'T SHOUT 2.Tag your question appropriately (WinForm) 3.Do not comment in Solution places. You can click on "Have a Question or Comment" under person's Solutions.

 
Share this answer
 
Comments
Shahin Khorshidnia 19-Jun-12 11:16am    
+5
Sandeep Mewara 21-Jun-12 16:58pm    
Thanks.
As far as I know this cannot be done by existing tools, you'll have to make your own installer in which you ask the user for the SQL Server it's credentials then create the database using a ADO.NET connection.
 
Share this answer
 

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