Groups | Blog | Home
all groups > inetserver asp db > july 2003 >

inetserver asp db : Appication name in SQL Server connection string


Ray at <%=sLocation%
7/29/2003 11:37:17 AM
Hi group,

Does anyone know how I can pass an application name in my connection string
and have it be recognized by SQL Server? I have this string:

Driver={SQL
Server};Server=TheServerName;Database=TheDatabase;Uid=TheUsername;Pwd=ThePas
sword;Application Name=RaysApp;

When I execute queries using this connection string in my ASP pages and
watch in Profiler (thanks Bob), the application name still comes through as
"Microsoft(R) Windows(R) 2000 Operating System" as opposed to "RaysApp."

IIS server is W2K SP3
SQL Server is W2K SP3, SQL 2000 Standard SP3a

Thanks,

Ray at work


Bob Barrows
7/29/2003 11:40:55 AM
[quoted text, click to view]
It usually works for me. Why use odbc rather than sqloledb?

Ray at <%=sLocation%
7/29/2003 11:50:01 AM
Whoops. Because I copied the wrong string. I corrected it, and now all is
fine. Thanks Bob.

Ray at work

[quoted text, click to view]

AddThis Social Bookmark Button