Example there are three PC's
PC1, PC2 and PC3
There is Server PC1 and that have only SQL Server Express Installed.
Can anyone give me the connection string and settings to connect PC1 from PC2 and PC3?
Example there are three PC's
PC1, PC2 and PC3
There is Server PC1 and that have only SQL Server Express Installed.
Can anyone give me the connection string and settings to connect PC1 from PC2 and PC3?
On PC1
, you must ensure that the SQL Server Express instance allows remote connections (see this other SO question and its answers for details on how to do this.
Also, you need to create logins on the server instance, and users in your database(s). If all those three PC's are members in a Windows network, you can probably create logins based on Windows user accounts - otherwise, you have to use SQL Server specific logins.
Then, on PC2 and PC3, you can use something like this:
server=PC1;database=YourDatabase;User ID=SomeUserID;Password=SomePassword
See ConnectionStirngs.com for a great many more examples and explanations
Update:
If I understand correctly, this is what you want to do:
have PC1
be the "server" in your setup - if so, then install SQL Server Express with tools (including the Management Studio) on this server. Make a note of what instance name you use when installing SQL Server Express! The default is SQLEXPRESS
, but you can choose anything you like
make sure the SQL Server Express instance allows remote connections
create the necessary logins on that server instance
create your database on that server (where it belongs - after all, SQL Server is a server-based solution)
create the necessary users in that database for your logins
With this setup, you should easily be able to connect from PC2
and PC3
to your SQL Server database on PC1