Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
Questionaccess to localdb from different pcs in a lan network Pin
Member 1189642727-Aug-15 7:00
Member 1189642727-Aug-15 7:00 
AnswerRe: access to localdb from different pcs in a lan network Pin
OriginalGriff27-Aug-15 8:10
mveOriginalGriff27-Aug-15 8:10 
GeneralRe: access to localdb from different pcs in a lan network Pin
Member 1189642727-Aug-15 8:18
Member 1189642727-Aug-15 8:18 
GeneralRe: access to localdb from different pcs in a lan network Pin
OriginalGriff27-Aug-15 8:39
mveOriginalGriff27-Aug-15 8:39 
GeneralRe: access to localdb from different pcs in a lan network Pin
Member 1189642727-Aug-15 18:57
Member 1189642727-Aug-15 18:57 
GeneralRe: access to localdb from different pcs in a lan network Pin
OriginalGriff27-Aug-15 22:47
mveOriginalGriff27-Aug-15 22:47 
GeneralRe: access to localdb from different pcs in a lan network Pin
Member 1189642728-Aug-15 1:43
Member 1189642728-Aug-15 1:43 
GeneralRe: access to localdb from different pcs in a lan network Pin
OriginalGriff28-Aug-15 2:02
mveOriginalGriff28-Aug-15 2:02 
Start SSMS, and it begins with a "connect to Server" dialog - look at the "Server name:" box.
In my case, that would be "GRIFFPC\SQLEXPRESS"

That is your server instance name, and that is what you want to use in the other PC.

Now start VS and try setting up a connection in VS with the Server Explorer pane:
1) Open Server Explorer.
2) Right click "Data connections" and select "Add connection"
3) In the dialog that follows, select your DataSource (the name from above) and database, specify the security info, and press the "Test connection" button.
4) When the connection works, press "OK"
5) Highlight your database in the Server Explorer pane, and look at the Properties pane. A working example of the connection string will be shown, which you can copy and paste into your app or config file.


But seriously, it is a bad idea to use the same instance of SQL server for "production" and "development" - it never ends well.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

GeneralRe: access to localdb from different pcs in a lan network Pin
Member 1189642728-Aug-15 2:19
Member 1189642728-Aug-15 2:19 
GeneralRe: access to localdb from different pcs in a lan network Pin
OriginalGriff28-Aug-15 2:29
mveOriginalGriff28-Aug-15 2:29 
AnswerRe: access to localdb from different pcs in a lan network Pin
Gilbert Consellado27-Aug-15 16:11
professionalGilbert Consellado27-Aug-15 16:11 
GeneralRe: access to localdb from different pcs in a lan network Pin
Member 1189642727-Aug-15 19:05
Member 1189642727-Aug-15 19:05 
GeneralRe: access to localdb from different pcs in a lan network Pin
Gilbert Consellado28-Aug-15 5:46
professionalGilbert Consellado28-Aug-15 5:46 
AnswerRe: access to localdb from different pcs in a lan network Pin
Eddy Vluggen28-Aug-15 2:04
professionalEddy Vluggen28-Aug-15 2:04 
QuestionLooking for Critique of My Answers to Recent C# Multithreading Interview Questions... Pin
clientSurfer26-Aug-15 8:06
professionalclientSurfer26-Aug-15 8:06 
AnswerRe: Looking for Critique of My Answers to Recent C# Multithreading Interview Questions... Pin
Dave Kreskowiak26-Aug-15 8:39
mveDave Kreskowiak26-Aug-15 8:39 
GeneralRe: Looking for Critique of My Answers to Recent C# Multithreading Interview Questions... Pin
clientSurfer26-Aug-15 9:16
professionalclientSurfer26-Aug-15 9:16 
GeneralRe: Looking for Critique of My Answers to Recent C# Multithreading Interview Questions... Pin
Dave Kreskowiak26-Aug-15 10:27
mveDave Kreskowiak26-Aug-15 10:27 
GeneralRe: Looking for Critique of My Answers to Recent C# Multithreading Interview Questions... Pin
clientSurfer26-Aug-15 12:37
professionalclientSurfer26-Aug-15 12:37 
JokeRe: Looking for Critique of My Answers to Recent C# Multithreading Interview Questions... Pin
clientSurfer26-Aug-15 9:21
professionalclientSurfer26-Aug-15 9:21 
GeneralRe: Looking for Critique of My Answers to Recent C# Multithreading Interview Questions... Pin
Dave Kreskowiak26-Aug-15 10:28
mveDave Kreskowiak26-Aug-15 10:28 
AnswerRe: Looking for Critique of My Answers to Recent C# Multithreading Interview Questions... Pin
F-ES Sitecore27-Aug-15 0:50
professionalF-ES Sitecore27-Aug-15 0:50 
GeneralRe: Looking for Critique of My Answers to Recent C# Multithreading Interview Questions... Pin
clientSurfer27-Aug-15 6:21
professionalclientSurfer27-Aug-15 6:21 
AnswerRe: Looking for Critique of My Answers to Recent C# Multithreading Interview Questions... Pin
Richard MacCutchan27-Aug-15 1:41
mveRichard MacCutchan27-Aug-15 1:41 
GeneralRe: Looking for Critique of My Answers to Recent C# Multithreading Interview Questions... Pin
clientSurfer27-Aug-15 6:22
professionalclientSurfer27-Aug-15 6:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.