Sql server doubt
scenario : There are 10 computers on LAN and one system will have MS SQL installed on it.. now my doubt is how will the application route the information into the database .. in the application i have hard coded the sqlserver name.. is this enough? and a good practice.. or are there any other requirements to send the data from the application to database??

Vijaya KadiyalaRank #1,085 · 1.8K reputationPosted Oct 6, 2008, 11:37 AM EDT
Hi
When you are providing connection string that will have server information and database which you want to access.
ex:
Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
As long as you are in Network it will work.
Thanks -- Vj
http://dotnetvj.blogspot.com
http
://oravj.blogspot.comRohit K29 reputationPosted Oct 26, 2008, 10:01 AM EDT
Kirtan PatelRank #292 · 8.6K reputationPosted Oct 26, 2008, 2:05 PM EDT
So that if your server is changed you can easily modify the client application to work with those changes without modifying the client application programming .
it will give your client application portability to work with any server in LAN :)
Happy Coding :)
J6 reputationPosted Dec 10, 2008, 3:51 AM EST
The ideal scenario is to place all of your data access code in one place (on the server) and have clients connect to it through a serialized interface (i.e. web services or remoting interface)
Pankaj Gupta66 reputationPosted Dec 17, 2008, 10:46 PM EST