|
-
Aug 17th, 2009, 04:12 PM
#1
Thread Starter
Lively Member
[RESOLVED] Net Application and SQL express network deploy
I have my vbnet application with sql server express designed for individual desktop pc. Now I want to have it work on a network.
1_ how can I make my customer to install sql express and the Database on the server and enable the network protocols seamlessly? dont want to have my customer configuring sql expess manually.
2_ how can I have my client software to look for the sql express and connect to it in a seamless way??
Does anyone have any ideas , perhaps any example of configuration file ?
Can I avoid the customer to enter configuration data?
Thanks in advance
Cybersandokan
-
Aug 17th, 2009, 04:18 PM
#2
Re: Net Application and SQL express network deploy
I made something similar at long ago...
You can ship the sql server express with your application install in silent mode sql server, proceed with your application, in your application, maybe in the first run, run a script that build your database and create the user that will be used by your application.
SQL Server Silent Install
Last edited by mickey_pt; Aug 17th, 2009 at 04:19 PM.
Reason: Link
Rate People That Helped You
Mark Thread Resolved When Resolved
-
Aug 17th, 2009, 05:48 PM
#3
Thread Starter
Lively Member
Re: Net Application and SQL express network deploy
Thanks for the answer. That answers my question #1
what about the second?
How can my application in the client pc detect where is the sql server express /database installed, in what server/instance??
Cybersandokan
-
Aug 17th, 2009, 06:09 PM
#4
Re: Net Application and SQL express network deploy
If you install the sql server in silent mode, you define where and how to install so you know what instance will be installed.
The database will be installed during install, or when your application start, just put some check (registry for example), and run an sql script that creates the database, the tables, the user and set the permissions for the new user, this user will be the user used in your application.
EDIT - You can get by code the Sql Server installed instances in a local area network Dim dt As DataTable = Sql.SqlDataSourceEnumerator.Instance.GetDataSources
Last edited by mickey_pt; Aug 17th, 2009 at 06:13 PM.
Reason: Info
Rate People That Helped You
Mark Thread Resolved When Resolved
-
Aug 17th, 2009, 06:50 PM
#5
Thread Starter
Lively Member
Resolved: Net Application and SQL express network deploy
Thanks for your help. This is exactly what I needed.
Cybersandokan
-
Aug 18th, 2009, 06:59 AM
#6
Re: [RESOLVED] Net Application and SQL express network deploy
Please remeber that by default SQLExpress is not set to allow connections to the Server from anything but the local machine. Ensure that is modified and set the protocalls you want to use for connections
Sometimes the Programmer
Sometimes the DBA
Mazz1
-
Aug 18th, 2009, 07:02 AM
#7
-
Aug 18th, 2009, 08:31 AM
#8
Re: [RESOLVED] Net Application and SQL express network deploy
If you do that then ensure that the application sitting on the server is given full trust on each client machine that will attempt to use it or you will get a security failure on the .Net application.
Sometimes the Programmer
Sometimes the DBA
Mazz1
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|