Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Setup and Deployment
 

Setup and Deployment

Hi,

I have finished my project and created a setup project for it successfully. My problem is that my application uses SQL server 2005 Express Edition and I couldn't find out how can I attach a file to create the database and tables in the user machine while the installation is running.
Can anybody guide me through this?
P.S: I have added the SQL server to the prerequisites.

thanks,
Nora1  Wednesday, May 30, 2007 1:00 PM

Hi,

You can useSQL Distributed Management Objects (SQL-DMO) or OSQL Utilityto run T-SQL script that does your work. Using SQL DMO, you can also create the database directly usin Object model.

Let me know if this solves your problem or not.

Regards,

Ghaznavi

Ghaznavi  Wednesday, May 30, 2007 6:20 PM
?
Nora1  Wednesday, May 30, 2007 6:15 PM

Hi,

You can useSQL Distributed Management Objects (SQL-DMO) or OSQL Utilityto run T-SQL script that does your work. Using SQL DMO, you can also create the database directly usin Object model.

Let me know if this solves your problem or not.

Regards,

Ghaznavi

Ghaznavi  Wednesday, May 30, 2007 6:20 PM

thanks Ghazanaziit'll try it out and let u know.

Nora1  Wednesday, May 30, 2007 6:28 PM

You can use google to search for other answers

Custom Search

More Threads

• application not starting
• Where is the .exe?!?!?!?!?
• Deployment of a VB6 application that calls a .Net COM interop library
• Shortcuts
• Redistribute Framework 2.0
• Improperly Formatted
• ClickOnce Error On Client Machine
• Resigning problem?
• add/remove program icon
• Serialization Forms