473,398 Members | 2,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

MS SQL Connection Error from Client

Hi,
I am new about C# and MS SQL. I have done a new program which use MS
SQL Database and I've install it to a new computer. But program
doesn't run on new computer. I give SQL Server Connection Error
(provider:SQL Network Interfaces, error: 26 - Error Locating Server/
Instance Specified ).

My Connection strings (I tried both and both are ok on my machine but
don't run on another machines)
"Data Source = Serdar\FARE;Initial Catalog = DigitestStock;Integrated
Security = sspi"
"Server=Serdar\fare;Database=DigitestStock;Trusted _Connection=True;"

How can I fix this problem?

thanks

May 29 '07 #1
5 2268
Here's a tip that might help you sort out your connection strings:

Create a new text file on your desktop. Change the extension to .udl.
Double click this file. Set up your connection string, then hit ok. Now
open the udl with notepad. Say hello to your new connection string.

You will want to make sure that your SqlServer has remote connections
enabled (specifically named pipes). This might explain why you can access
the machine locally, but not from another machine.

Also, are these machines on a domain?

--
Jimmy V
..NET Development Team - CTS, Inc
jv*********@hotmail.com

www.askcts.com
"icegray" <ic*****@gmail.comwrote in message
news:11**********************@q69g2000hsb.googlegr oups.com...
Hi,
I am new about C# and MS SQL. I have done a new program which use MS
SQL Database and I've install it to a new computer. But program
doesn't run on new computer. I give SQL Server Connection Error
(provider:SQL Network Interfaces, error: 26 - Error Locating Server/
Instance Specified ).

My Connection strings (I tried both and both are ok on my machine but
don't run on another machines)
"Data Source = Serdar\FARE;Initial Catalog = DigitestStock;Integrated
Security = sspi"
"Server=Serdar\fare;Database=DigitestStock;Trusted _Connection=True;"

How can I fix this problem?

thanks

May 29 '07 #2
Hi,

Are you sure you can connect to that server?
According to the error the target server cannot be located.

Do a telnet to that server on port 1433 and see if you get a black screen.
"icegray" <ic*****@gmail.comwrote in message
news:11**********************@q69g2000hsb.googlegr oups.com...
Hi,
I am new about C# and MS SQL. I have done a new program which use MS
SQL Database and I've install it to a new computer. But program
doesn't run on new computer. I give SQL Server Connection Error
(provider:SQL Network Interfaces, error: 26 - Error Locating Server/
Instance Specified ).

My Connection strings (I tried both and both are ok on my machine but
don't run on another machines)
"Data Source = Serdar\FARE;Initial Catalog = DigitestStock;Integrated
Security = sspi"
"Server=Serdar\fare;Database=DigitestStock;Trusted _Connection=True;"

How can I fix this problem?

thanks

May 29 '07 #3
If you are running SQL Server 2005 on the other computer, then by
default, it does not have the named pipes protocol enabled.

In order to enable this, you have to go to the SQL Server Configuration
Manager on the machine that has SQL Server installed, and then go to "SQL
Server 2005 Network Configuration". Under that will be a branch "Protocols
for MSSQLSERVER". Select this.

On the right, you will see a listview which has "Protocol Name" and
"Status". Right click on "Named Pipes" and select Enable.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"icegray" <ic*****@gmail.comwrote in message
news:11**********************@q69g2000hsb.googlegr oups.com...
Hi,
I am new about C# and MS SQL. I have done a new program which use MS
SQL Database and I've install it to a new computer. But program
doesn't run on new computer. I give SQL Server Connection Error
(provider:SQL Network Interfaces, error: 26 - Error Locating Server/
Instance Specified ).

My Connection strings (I tried both and both are ok on my machine but
don't run on another machines)
"Data Source = Serdar\FARE;Initial Catalog = DigitestStock;Integrated
Security = sspi"
"Server=Serdar\fare;Database=DigitestStock;Trusted _Connection=True;"

How can I fix this problem?

thanks

May 29 '07 #4
On May 29, 5:56 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
If you are running SQL Server 2005 on the other computer, then by
default, it does not have the named pipes protocol enabled.

In order to enable this, you have to go to the SQL Server Configuration
Manager on the machine that has SQL Server installed, and then go to "SQL
Server 2005 Network Configuration". Under that will be a branch "Protocols
for MSSQLSERVER". Select this.

On the right, you will see a listview which has "Protocol Name" and
"Status". Right click on "Named Pipes" and select Enable.

--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com

"icegray" <iceg...@gmail.comwrote in message

news:11**********************@q69g2000hsb.googlegr oups.com...
Hi,
I am new about C# and MS SQL. I have done a new program which use MS
SQL Database and I've install it to a new computer. But program
doesn't run on new computer. I give SQL Server Connection Error
(provider:SQL Network Interfaces, error: 26 - Error Locating Server/
Instance Specified ).
My Connection strings (I tried both and both are ok on my machine but
don't run on another machines)
"Data Source = Serdar\FARE;Initial Catalog = DigitestStock;Integrated
Security = sspi"
"Server=Serdar\fare;Database=DigitestStock;Trusted _Connection=True;"
How can I fix this problem?
thanks- Hide quoted text -

- Show quoted text -
I solved connection problem but I can't solve login problem yet.
I think some thing is wrong about SQL Server security and permissions.

May 30 '07 #5
Well, how do you have everything set up for SQL Server? You should be
able to go to the security folder for the server and setup the logins (which
you should map to user groups). Once you do that, then you can setup the
logins for the particular databases.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"icegray" <ic*****@gmail.comwrote in message
news:11**********************@m36g2000hse.googlegr oups.com...
On May 29, 5:56 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
> If you are running SQL Server 2005 on the other computer, then by
default, it does not have the named pipes protocol enabled.

In order to enable this, you have to go to the SQL Server
Configuration
Manager on the machine that has SQL Server installed, and then go to "SQL
Server 2005 Network Configuration". Under that will be a branch
"Protocols
for MSSQLSERVER". Select this.

On the right, you will see a listview which has "Protocol Name" and
"Status". Right click on "Named Pipes" and select Enable.

--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com

"icegray" <iceg...@gmail.comwrote in message

news:11**********************@q69g2000hsb.googleg roups.com...
Hi,
I am new about C# and MS SQL. I have done a new program which use MS
SQL Database and I've install it to a new computer. But program
doesn't run on new computer. I give SQL Server Connection Error
(provider:SQL Network Interfaces, error: 26 - Error Locating Server/
Instance Specified ).
My Connection strings (I tried both and both are ok on my machine but
don't run on another machines)
"Data Source = Serdar\FARE;Initial Catalog = DigitestStock;Integrated
Security = sspi"
"Server=Serdar\fare;Database=DigitestStock;Trusted _Connection=True;"
How can I fix this problem?
thanks- Hide quoted text -

- Show quoted text -

I solved connection problem but I can't solve login problem yet.
I think some thing is wrong about SQL Server security and permissions.

May 30 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tig | last post by:
Hi all. I have a need to connect to an Oracle 7.3.3.5 database. I have a user who successfully connects to it with her Oracle 7.3 client. I have an Oracle 9.2 client installed on my machine....
4
by: Mike Dole | last post by:
I'm working on a client - server application based on the 'How to Sockets Server and How to Sockets Client' code from the Visual Basic ..NET Resource Kit. Since I want to be able to send 'big...
2
by: Dicky Cheng | last post by:
Hi, I am using .net remoting technology. I set up a .net remoting client and server in IIS. When the client calls the server, the server will run a long duration method (30-60seconds). I have a...
26
by: Rajeev Tipnis | last post by:
http://support.microsoft.com/default.aspx?scid=kb;en- us;819450 Questions: 1) Is this patch (fix) applicable to the .NET 1.1 Framework as well? That is, if we have Framework 1.1 (On...
1
by: Fredrik L | last post by:
Hi, We have an application outside the firewall who talks to a webservice inside the firewall. 9 times of 10 this works, but sometimes we got the error "The underlying connection was closed: An...
1
by: Mark A | last post by:
DB2 ESE 8.2.3 (FP10) for Linux We are experiencing a connection hang of 10 - 15 minutes in the following HADR and automatic client reroute scenario: 01 server is primary database 02 server is...
5
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
0
by: kuguy | last post by:
Hi all, I'm new to the forums, so I hope this isn't in the wrong place... I have that "Software caused connection abort: socket write error" exception error that i've never meet before. ...
0
by: Xionbox | last post by:
Hello everybody, The error I have seems very easy to solve, but for some odd reason I can't seem to solve it. Anyways, here's my "setup". I created a server running on localhost:1200 (telnet...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.