473,666 Members | 2,238 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQL 2000 TIMEOUT ERROR WHEN TRYING TO CONNECT USING C#

I have an application that runs fine on my machine(of course) that access the
local Sql Server. However, when trying to run this application from another
machine I receive a Sql timeout error. I thought it was my stored procedure
but that doesn't seem to be the case. The following are the connection
strings that I've tried:

//private string connstring = "integrated security=SSPI;d ata source=<ip
address>;"
// "persist security info=False;init ial catalog=project DB";

private string connstring = "pwd=<password> ;uid=<username> ;" +
"database=proje ctDB;server=<ip address>";

//private string connstring = "Data Source=<ip address>;" +
// "Initial Catalog=project DB;" +
// "User Id=<username>;" +
// "Password=<pass word>";

Do anyone know how I can get over this hump? By the way I'm running the
application locally on the remote computer.
--
TC
Apr 4 '07 #1
4 3059
1. If the SQL Server and the app are not on the same computer, make sure the
SQL Server allows remote access.
2. Since you pass username/password in ConnectionStrin g, make sure the SQL
Server has mixed security mode enabled (by default installed, only Windows
security mode is enabled).

"Terrance" <Te******@discu ssions.microsof t.comwrote in message
news:23******** *************** ***********@mic rosoft.com...
>I have an application that runs fine on my machine(of course) that access
the
local Sql Server. However, when trying to run this application from
another
machine I receive a Sql timeout error. I thought it was my stored
procedure
but that doesn't seem to be the case. The following are the connection
strings that I've tried:

//private string connstring = "integrated security=SSPI;d ata source=<ip
address>;"
// "persist security info=False;init ial catalog=project DB";

private string connstring = "pwd=<password> ;uid=<username> ;" +
"database=proje ctDB;server=<ip address>";

//private string connstring = "Data Source=<ip address>;" +
// "Initial Catalog=project DB;" +
// "User Id=<username>;" +
// "Password=<pass word>";

Do anyone know how I can get over this hump? By the way I'm running the
application locally on the remote computer.
--
TC

Apr 4 '07 #2
How do I determine if the sql server does or does not allow remote access?
--
TC
"Norman Yuan" wrote:
1. If the SQL Server and the app are not on the same computer, make sure the
SQL Server allows remote access.
2. Since you pass username/password in ConnectionStrin g, make sure the SQL
Server has mixed security mode enabled (by default installed, only Windows
security mode is enabled).

"Terrance" <Te******@discu ssions.microsof t.comwrote in message
news:23******** *************** ***********@mic rosoft.com...
I have an application that runs fine on my machine(of course) that access
the
local Sql Server. However, when trying to run this application from
another
machine I receive a Sql timeout error. I thought it was my stored
procedure
but that doesn't seem to be the case. The following are the connection
strings that I've tried:

//private string connstring = "integrated security=SSPI;d ata source=<ip
address>;"
// "persist security info=False;init ial catalog=project DB";

private string connstring = "pwd=<password> ;uid=<username> ;" +
"database=proje ctDB;server=<ip address>";

//private string connstring = "Data Source=<ip address>;" +
// "Initial Catalog=project DB;" +
// "User Id=<username>;" +
// "Password=<pass word>";

Do anyone know how I can get over this hump? By the way I'm running the
application locally on the remote computer.
--
TC


Apr 4 '07 #3
I checked the Sql Server and it has Allow other SQL Servers to connect
remotely to this SQl using RPC. Is this what your were talking about?

--
TC
"Norman Yuan" wrote:
1. If the SQL Server and the app are not on the same computer, make sure the
SQL Server allows remote access.
2. Since you pass username/password in ConnectionStrin g, make sure the SQL
Server has mixed security mode enabled (by default installed, only Windows
security mode is enabled).

"Terrance" <Te******@discu ssions.microsof t.comwrote in message
news:23******** *************** ***********@mic rosoft.com...
I have an application that runs fine on my machine(of course) that access
the
local Sql Server. However, when trying to run this application from
another
machine I receive a Sql timeout error. I thought it was my stored
procedure
but that doesn't seem to be the case. The following are the connection
strings that I've tried:

//private string connstring = "integrated security=SSPI;d ata source=<ip
address>;"
// "persist security info=False;init ial catalog=project DB";

private string connstring = "pwd=<password> ;uid=<username> ;" +
"database=proje ctDB;server=<ip address>";

//private string connstring = "Data Source=<ip address>;" +
// "Initial Catalog=project DB;" +
// "User Id=<username>;" +
// "Password=<pass word>";

Do anyone know how I can get over this hump? By the way I'm running the
application locally on the remote computer.
--
TC


Apr 4 '07 #4
OK, if the SQL Server is accessible from other computer, you then need to
make sure it does accept username/pasword pair (that is, mixed security mode
is enabled).
"Terrance" <Te******@discu ssions.microsof t.comwrote in message
news:9C******** *************** ***********@mic rosoft.com...
>I checked the Sql Server and it has Allow other SQL Servers to connect
remotely to this SQl using RPC. Is this what your were talking about?

--
TC
"Norman Yuan" wrote:
>1. If the SQL Server and the app are not on the same computer, make sure
the
SQL Server allows remote access.
2. Since you pass username/password in ConnectionStrin g, make sure the
SQL
Server has mixed security mode enabled (by default installed, only
Windows
security mode is enabled).

"Terrance" <Te******@discu ssions.microsof t.comwrote in message
news:23******* *************** ************@mi crosoft.com...
>I have an application that runs fine on my machine(of course) that
access
the
local Sql Server. However, when trying to run this application from
another
machine I receive a Sql timeout error. I thought it was my stored
procedure
but that doesn't seem to be the case. The following are the connection
strings that I've tried:

//private string connstring = "integrated security=SSPI;d ata source=<ip
address>;"
// "persist security info=False;init ial
catalog=project DB";

private string connstring = "pwd=<password> ;uid=<username> ;" +
"database=proje ctDB;server=<ip address>";

//private string connstring = "Data Source=<ip address>;" +
// "Initial Catalog=project DB;" +
// "User Id=<username>;" +
// "Password=<pass word>";

Do anyone know how I can get over this hump? By the way I'm running the
application locally on the remote computer.
--
TC



Apr 4 '07 #5

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

Similar topics

0
2884
by: Stefan Hinz | last post by:
Degan, jumping in to try and solve some problems that look pretty obvious to me ... > #options for default service (mysqld2) > (mysqld2) It should be , not (mysqld2).
10
3842
by: noname | last post by:
MSDE 2000 Release A installed under windows 2000 pro will not communicate with SQL Server Manager nor MS Access on peer computer. Can someone help? Have set DISABLENETWORKPROTOCOLS=0 at install time. Install log shows installation successful.. Control Panel> Admin Tools> Services section shows SQL server instance running.
3
2222
by: arnaud_brunet | last post by:
Hello, I have a program called Gestimum which question a MS SQL 2000 DataBase. I have 6 clients who connect to the database througth Gestimum. It works good for 5 of them. But one of them I have TimeOut Error when he wants to print.
0
1622
by: Patrice de Boisgrollier | last post by:
Hello I'm having trouble under windows 2000 dealing with programming a ping in a Visual C++ 6 environment My problem is that my code is based on a code sampl from Microsoft that is found in the MSDN library Under Windows 98 there is no problem and everythin works fine but I have a problem in Windows 2000 and XP as well with the following function : bread = recvfrom(sockRaw
18
1977
by: Jon Delano | last post by:
Hey all I am building a new computer. I have Windows XP Pro with SP2 and all the updates. I installed VS 2003. Then copied a project from my old computer to the new one. When I try and run the project .. it errors out saying it "sql server does not exist or access denied"
4
13177
by: VB Programmer | last post by:
When I run my ASP.NET 2.0 web app on my dev machine it works perfect. When I precomile it to my web deployment project and then copy the debug files to my web server I get this problem when trying to login (obviously it's using ASPNETDB.mdf). Any ideas? Server Error in '/' Application. --------------------------------------------------------------------------------
3
1336
by: David Lozzi | last post by:
Howdy! I have a question for all you smarties... I have a ASP.Net application running on Windows 2000 Professional and MSDE, same box. While running the application, users will randomly receive a too many connections error or even a simple Page cannot be displayed. I know some of the limitations of MSDE and have managed to fudge my way around them, but what about Win2kPro IIS? I'm thinking it won't let me a host an active application on...
6
7776
by: Martin Eyles | last post by:
I am trying to perform a very long query on an MSSQL database, using ASP.NET, and making the code behind in VB.NET. I have been receiving timeout error, so I thought I would add Connect Timeout to my connection string. However this appears to have no effect. The connection string is set up as follows Dim conn As New SqlClient.SqlConnection("Data Source=serverName; User ID=userName; Password=password; Connect Timeout=9999") Any ideas...
0
975
by: Mirko Vogt | last post by:
Gabriel Genellina wrote: Hey, this is strange. Linux: $ python --version Python 2.5.2 $ Windows:
0
8440
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8355
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8866
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8781
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8550
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7381
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6191
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
2
2006
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1769
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.