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

I have completed my c# winform project and i want to deploy it on a network. Before i could install the application, i want to install sql express, before that i want to check whether any other sql instance is available on the network. If any other instance is available on the network then i just want to copy my database to the available instance, if no sql server is found on the network then the deployment should install sql express and copy my database to it.

I need help and suggestion on the above, would highly appreciate in advance......

thanks & regards,

Antony
Posted
Updated 27-May-15 1:03am
v2
Comments
Andy Lanng 27-May-15 7:11am    
Wow. You don't want much, do you :P

I suggest you break down your issue into a few questions. The first, I imagine, is "How do I detect SQL Servers available in the Network".

For that I can recommend this article: Finding SQL Servers on the Network
Or SQLPing. You can find the source here SQLPing
Member 11261811 28-May-15 1:45am    
Thanks for the link. Please find below my questions :
1. How do I check any sql server instance running on the network during my C# winform application installation.
2. How do I install or create my database and tables during my C# winform application installation.

Thanks & Regards,

Antony
Andy Lanng 28-May-15 3:56am    
You need a custom action in your setup project. Take a look at this:
Walkthrough: Creating a Custom Action
John C Rayan 27-May-15 8:36am    
If you are in corporate environment , talk to your DBA find out your suitable SQL Server. Then DBA will sort out helping you copying your SQL database. But if your database created in higher version than one in your network you cannot copy it.
Member 11261811 28-May-15 1:46am    
Hi John,
I need to handle the copying of database and checking the sql server instance thru my deployment/setup module of my C# winform application.

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