Click here to Skip to main content
15,900,378 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi experts,
I am developing a Windows base application in Visual Studio 2005 C# as front end and SQL Express Edition [that comes with VS .NET] as backend. I have a lan containing three PCS, one as Server and another two as Clients. I want to keep the database on the server and share it with the client. I have 8 port switches to design the LAN. What do I have to do to share the database and what should be the Connection string and in which folder should I keep the database on server.
I need an efficient solution.
Thanks in advance.
Posted
Updated 25-Jun-11 15:48pm
v4

Take a look at the following documentation. It explains how to do it

Enabling Network Access to SQL Server Express[^]
 
Share this answer
 
Comments
thatraja 25-Jun-11 12:42pm    
Good one, 5!
Espen Harlinn 25-Jun-11 13:23pm    
My 5, good link
a high-level overview -

1. get sql 2005 express - <a href="http://goo.gl/59WLi">http://goo.gl/59WLi</a>[<a href="http://goo.gl/59WLi" target="_blank" title="New Window">^</a>]

2. get sql 2005 express management studio - http://goo.gl/YhbX2[^] (probably just get the 32-bit one - no x64 in the download name)

3.install sql 2005 express - use a default instance with mixed auth - windows and sql. set a strong "sa" password.

4. backup your db from your dev machine and restore it onto your new sql server (using remote or local sql server management studio).

5. the default instance will not have a suffix after the computer name...so your connection string should just specify your server. i'm guessing you have no centralized authentication and that you are using sql auth in your connection string.

does this help?
 
Share this answer
 
thank you for your kind reply
I have completed all the steps in your answer.
but i still getting error. if i use servername/ it gives error [Failed to login user sa]
if if use <code><code>servername/SQLExpress
it gives eror [Invalid connection string]
 
Share this answer
 
have an go there-[Hands on: SQL Server Express on the Lan][^] to read article which will guide you how to share SQL Server express on LAN.
 
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