Wrox Programmer Forums
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 18th, 2006, 02:07 AM
Registered User
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default SqlConnection

Hey all,
While executing a code i got the following error :
 System.Data.SqlClient.SqlException: SQL Server does not exist or access denied.
What could be the cause of it?


Old September 19th, 2006, 12:11 AM
Registered User
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bingxuefly

just as the sqlexception says
maybe your sql connection string is not correct or the sql server didn't run

Old September 22nd, 2006, 07:29 PM
Friend of Wrox
Join Date: May 2005
Posts: 227
Thanks: 1
Thanked 7 Times in 7 Posts

Review the Class Browser....SqlException is a subtype to System.Data.SqlClient...It is not clear what or why you want to override the Exception.

Hope this helps.
Old September 23rd, 2006, 05:22 AM
Registered User
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Dhirendra

Have you checked for the SQL Service Services and its functioning ?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem when SqlConnection.Open() hoetat C# 7 July 6th, 2008 07:43 PM
SqlConnection angelboy C# 2005 2 March 19th, 2007 09:05 AM
about sqlConnection LeoG BOOK: Professional C#, 2nd and 3rd Editions 0 April 5th, 2006 02:01 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.