Each instance will have a different port number. If you don't specify the
named instance you will get the default instance. What does the connection
string look like?
I am specifying a named instance in the connection string, but I am
getting the default instance. The connection string is something like:
server=DBSRV\TEST;database=TESTDB;integrated security=sspi
My three instances are:
DBSRV - default instance
DBSRV\DEV - instance to support development
DBSRV\TEST - instance to support testing
On the test webserver, the connection string is specifying the correct
instance, but the data that is retrieved is from the default instance.
If I change the connection string on the test webserver to specify the
DEV instance, it works as it should. The development computers are able
to run the app against both DEV and TEST instances without issue.
For some reason, the test webserver is not connecting the the TEST
instance. It appears to be connecting to the default instance, even
though the connection string specifies the named TEST instance.
> Each instance will have a different port number. If you don't specify the
> named instance you will get the default instance. What does the connection
> string look like?
Andrew J. Kelly - 30 Aug 2005 23:39 GMT
Doesn't make much sense if you can change it to the dev and it works. Any
chance you are calling sp's to retrieve the results that might be pointing
to the other instance? Do you see the connection to the default instance
with sp_who2 or profiler or to Test?

Signature
Andrew J. Kelly SQL MVP
>I am specifying a named instance in the connection string, but I am getting
>the default instance. The connection string is something like:
[quoted text clipped - 20 lines]
>> the named instance you will get the default instance. What does the
>> connection string look like?
Bruce - 31 Aug 2005 13:06 GMT
You're right, it doesn't make much sense. It has the dba and me totally
baffled.
Our dba checked the sp's, actually he scripted the entire database out
to DDL and he said he found no reference to the default instance.
As for your last question, I will have the dba look into it.
> Doesn't make much sense if you can change it to the dev and it works. Any
> chance you are calling sp's to retrieve the results that might be pointing
> to the other instance? Do you see the connection to the default instance
> with sp_who2 or profiler or to Test?