473,671 Members | 2,251 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQL Sever connection denied after computer restarted

I have a client PC running a C# program that obtains data from an SQL Server
database. The computer hosting the database is on a local network and is
accessed by using the following connection string: Both computers are
Windows XP SP2.

"Data Source=192.168. 20.124,1433;Net work Library=DBMSSOC N;Initial
Catalog=CenterD B;User ID=myUserID;Pwd =myPassword;"

The key lines in my code are:
cnPubs = new SqlConnection(. ..........)
SqlCommand cmdOrder = new SqlCommand("dbo .SC_GetOrderByA C", cnPubs);
cmdOrder.Execut eNonQuery();

In almost all cases the client can access the database except for a certain
situation. If I shutdown the database computer and restart it, sometimes the
client cannot make a connection to the database and causes an exception in my
code. It is extremely intermittent and hard to duplicate. The exception
that I get is: <SqlException : SQL Server does not exist or access denied.>

Does anyone have any ideas about what might be causing this intermittent
behavior or what I can try to track down the cause of the problem?
Feb 11 '06 #1
2 1475
Hello, mangia!

Just a hint: does DB server application (Sql Server ) manage to start working?
Did you try to reconnect after failure?

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Feb 11 '06 #2
Hi Vadym,

The client application continues to run but never gets connection to the
restarted SQL Server PC. The only way to get the client DB application
re-connected to SQL Server is to stop and restart it.

Chris Mangiapane, MCSD

"Vadym Stetsyak" wrote:
Hello, mangia!

Just a hint: does DB server application (Sql Server ) manage to start working?
Did you try to reconnect after failure?

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot

Feb 11 '06 #3

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

Similar topics

0
3378
by: Ryan Schefke | last post by:
------=_NextPart_000_0077_01C34C8B.2B90C960 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit ..I just sent this out to the win32 distribution list but no one has replied.can someone on this list please help? The issue should be trivial for experienced MySQL users, I'm just a novice, thanks!
0
1605
by: Adam Carmichael | last post by:
------=_NextPart_000_4BD9_01C34F2E.785DA9C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I am trying to build a MySQL Server running FreeBSD-4.8-STABLE with = OpenSSL-0.9.7b.
6
4318
by: Brian W | last post by:
I'm posting here hopeing some here has delt with a similar problem and has a suggestion for a fix. If anyone knows the answer to this I’d me greatly appreciative. I am not on a domain. I have SQL Server sitting on computer A Computer A has:
1
2192
by: James | last post by:
I have reached the pulling hair out stage with this now: I am trying to remotely debug my aspnet applications on our intranet web server. The server is running Win2K Server, SP4. It is a domain controller. I originally installed IIS & then the .NET framework. I now want to remotely debug projects (copying them back & forth is wasting time & annoying).
10
8699
by: Shawn | last post by:
JIT Debugging failed with the following error: Access is denied. JIT Debugging was initiated by the following account 'PLISKEN\ASPNET' I get this messag in a dialog window when I try to open an asp.net page. If I press OK then I get a page with this message: Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser...
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"
2
2678
by: Chris Newby | last post by:
After googling this I got lots of information and tried a few different things. However pages for a particular site are still consistantly failing with "Access Denied to C:\ ... \Temporary Asp.Net ... bla bla bla". Specifically, I created an Asp.Net application on a new 2003 server. It worked at first and while I was fiddling with something else it stopped working. Not able to figure out what the problem was, I deleted the app and...
6
14560
by: Antoine De Groote | last post by:
Google tells quite some things about it, but none of them are satisfactory. I'm on Windows, and shutil operations (e.g. move, copy) throw Permission denied all the time, for the source files. It seems that this is the case for all my files. But what I don't understand is that yesterday it still worked. I didn't change anything on my system though (at least not that I am aware of). I restarted the computer several times to see if that...
2
2081
by: swarajtnj | last post by:
Hi Friends, I am using MySql 5.0. With the Front end as ASP.NET 2.0. I am working a small concern. my company local server to connect the MySql is perfectly working. But when i Connect to the Client server Ip Address thrown an Error. I Captured the error as follows: "Cann't connect to MySql sever @ localhost(10061)" Next one "Access denied for user "saathii"@125.99.195.246' Using Password:YES". Client ip Add: 63.247.82.34
0
8476
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...
1
8598
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
8670
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6229
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...
0
5696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4407
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1809
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.