Re: System.Data.SqlClient.SqlException: SQL Server does not exist or a
- From: "William \(Bill\) Vaughn" <billvaRemoveThis@xxxxxxxxxx>
- Date: Fri, 8 Jul 2005 14:17:23 -0700
Does your local system have a default instance of SQL Server installed on
the target server? Is it setup to accept mixed-mode security? Are the ports
open? Is the server running? Do you have a login account setup with the
right password? Does this account have rights to the Initial Catalog? Have
you paid your phone bill? Have you read my book on ADO.NET?
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
"guru" <guru@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:05535763-BE1B-4859-9A3D-FE4AF3151B89@xxxxxxxxxxxxxxxx
>I am getting this error when I try to open database connection.
>
> SqlConnection conn = new SqlConnection();
> conn.ConnectionString = "Persist Security Info=False;User
> ID=ABC;Pwd=XYZ;Initial Catalog=MYDB;Data Source=MYSQLSERVER";
> conn.Open();
> This is happening on my local machin, when I tryed same code on my collges
> system it work....
>
> There is no issue with connection string, user id and pwd and
> database!!!!!
>
> Can any one please let me know how to fix this problem?
>
.
- References:
- Prev by Date: System.Data.SqlClient.SqlException: SQL Server does not exist or a
- Next by Date: Where to initialize trace listener
- Previous by thread: System.Data.SqlClient.SqlException: SQL Server does not exist or a
- Next by thread: Re: System.Data.SqlClient.SqlException: SQL Server does not exist
- Index(es):
Relevant Pages
|