Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have 2 PC's connected in a network. I want to be able to access a database form both PC's.

 

I can connect on my PC to the SQL server database, but from the other PC I can not. Can anyone tell me what is wrong?

 

I have Sql Browser running on both PC's, Tcp and Np are both enabled. Still I get the message: TCP Provider: host has broken a connection (something like that; the message is in Dutch)

Posted

verbroken

 

That doesn't sound good in any language!

 

Have you tried something different like MS Access to set up an ODBC. Use the lizard and try it with ODBC and SQLServer providers.

 

Also in Visual Studio you can get the same lizard using the Server Explorer window.

 

Can you even ping the box that the SQL server is on?

Wanna-Be C# Superstar
  • Administrators
Posted
How is security set up in this environment? Are the two PCs in a domain or just a work group? If they are in a workgroup are you trying to connect with integrated security - if so you will need to make sure that you are using the same username and password on both boxes.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted

To answer a few questions: the PC's are in the same workgroup and we are trying to connect with integrated security, but I don't know what you mean by "make sure that you are using the same username and password on both boxes".

 

Anyway I lost SQL Server. It seems that you can not make a simple mistake in this thing. I tried to import my old data from MS Access, that failed for some reason. I got an error saying: "Connection failed". Result: SQL Server is gone. I can not see the server anymore with "sqlcmd -L" and I can not get connected.

 

I suppose SQL Server is for perfect people only. NO mistakes allowed!

  • Administrators
Posted

Are you logging onto both computers with the same username / password - if not then integrated security is likely to fail, it really only works well when there is a central domain so the username / passwords are consistent across all PCs. In a workgroup you may find SQL Standard security is a simpler choice.

Have you tried rebooting the SQL server as I've never know SQL to disappear because of a failed data import.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted

I did try and restart SQL Server, that didn't work. I rebooted my PC, didn't work and than I even tried reinstalling SQL Server without removing .NET

 

Result: I can see the server when I type "sqlcmd -L" but I can't connect. So the only solution I see is to remove .NET again and reinstall evrything.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...