Groups | Blog | Home
all groups > inetserver asp db > august 2007 >

inetserver asp db : database connection issue


BigSam
8/2/2007 9:48:05 AM
We are moving to SQL2k5 & attempting to utilize mirrored databases. I gave a
connection string to our developers to use in the ASP (classic) pages:
"Provider=SQLNCLI;Server=10.0.0.1;Failover Partner=10.0.0.2;Initial
Catalog=dbName;UID=SQL User Name;Pwd=Password;"
When the database is Principal on the Server, the application connects, but
it does not connect when the Principal is on the Failover Partner.
I think there is a problem with the connection string, but I don't know
what. Any help is appreciated.

BigSam
8/3/2007 8:26:03 AM
Yes to both questions. I was able to connect to the Failover server, when it
was used as the primary server.
Also, I believe the documentation shows Failover Partner as 2 words, not 1.

[quoted text, click to view]
Daniel Crichton
8/3/2007 4:01:13 PM
BigSam wrote on Thu, 2 Aug 2007 09:48:05 -0700:

[quoted text, click to view]


Have you tried FailoverPartner (one word)?

Have you tried connecting directly to the failover IP when it is the
Principal?

Dan

BigSam
8/7/2007 5:34:02 AM
I found the problem - it was application related.
I created a simple web page that built a grid view with a Button click
event. I used a text box to modify the connection string, which proved we
were using the correct connection string. Since it wasn't the connection
string I moved on - I used SQL Profiler to see what the application was doing
& isolated the issue to the application.

Thanks for your interest.

BigSam

[quoted text, click to view]
Daniel Crichton
8/7/2007 1:19:31 PM
BigSam wrote on Fri, 3 Aug 2007 08:26:03 -0700:

[quoted text, click to view]

Have you tried since making it the failover server though? Just in case the
Surface Area configuration has changed prevently connections being made.

[quoted text, click to view]

It does, but also notice that for some connection strings with other
providers it is a single word. I suggested it merely in case there was a
typo in the Native Client documentation.

Dan

[quoted text, click to view]


[quoted text, click to view]


AddThis Social Bookmark Button