PC Review


Reply
Thread Tools Rate Thread

ASP.NET Connection String

 
 
=?Utf-8?B?bTAwbm0wbmtleQ==?=
Guest
Posts: n/a
 
      25th Jan 2005
Hello, I have successfully been using the following connection string to
connect via a SQLConnection object in my ASP.Net application for many weeks:

Data Source=MARS-TEST;Initial Catalog=CascadeWMCClient;UID=marsweb;PWD=marsweb

Today, after our Network Support Technician added a hard drive to the
machine, I can no longer connect to the machine via an ASP.Net application on
my development PC. When I attempt to do so, I get this error: SQL Server Does
Not Exist Or Access Denied.

I am using the same connection string on our Web Server, and this will
connect fine, using the same connection string.

Can anyone explain the likely cause for the error above? It seems odd that
this has only occurred since the machine was rebooted?

 
Reply With Quote
 
 
 
 
=?Utf-8?B?QnJpYW4gQnJvd24=?=
Guest
Posts: n/a
 
      25th Jan 2005
Hi,

Can you connect to the SQL Server via Query Analyizer or Enterprise Manager
from your machine with those credentials? What about a different machine?
From your post it seems like just your machine cannot see SQL Server. Please
reply to this post with the details so the group may help diagnose your
problem better.

Hope this helps.
----------------------------------
 
Reply With Quote
 
Corbin
Guest
Posts: n/a
 
      25th Jan 2005
If you can see the SQL Server on the network, try using the sql
server's IP in the connection string instead of "MARS-TEST". If you
can't see it on the network, that's your problem.

 
Reply With Quote
 
=?Utf-8?B?bTAwbm0wbmtleQ==?=
Guest
Posts: n/a
 
      26th Jan 2005
"Corbin" wrote:

> If you can see the SQL Server on the network, try using the sql
> server's IP in the connection string instead of "MARS-TEST". If you
> can't see it on the network, that's your problem.


Ok, well I can see both MARS-TEST and it's corresponding IP Address through
windows explorer. I can ping to both addresses and I have sucessfully managed
to connect to the server through enterprise manager, using the same username
and password that i am using in the connection string.

It might also be worth mentioning that I can connect through a VB.Net
windows application using the same connection string.

 
Reply With Quote
 
=?Utf-8?B?bTAwbm0wbmtleQ==?=
Guest
Posts: n/a
 
      26th Jan 2005
As a last resort, I stopped and then restarted the SQL Server on the machine.

This has fixed the problem, although to be honest, i have no idea why?!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a connection object (sql/oledb/odbc) based on connection method/string. Hetal Microsoft VB .NET 2 30th Apr 2007 05:55 PM
Query String or Connection String with Regex jwgoerlich@gmail.com Microsoft C# .NET 3 11th Jan 2007 09:55 AM
Connection String question - accessing one string throughout solut =?Utf-8?B?Z2FyeSBnLg==?= Microsoft Dot NET 2 26th Apr 2006 06:48 PM
Connection String object Convert to String Variable Type =?Utf-8?B?TWlrZSBNb29yZQ==?= Microsoft ASP .NET 2 26th Oct 2004 03:43 PM
connection string exception : Format of the initialization string does not conform to specification starting at index 0 Gaurav Microsoft ASP .NET 0 7th Nov 2003 10:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:29 AM.