Ask a Question related to ASP Database, Design and Development.
-
Ray at #1
Appication name in SQL Server connection string
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
Ray at Guest
-
Server.MapPath connection string question.
I have two sites: www.site_A.com & www.site_A_news.com Site_A is in d:\webs\site_a & uses an Access DB in d:\webs\site_a\data\db.mdb ... -
encrypting SQL server connection string in web.config
In my web.config I am storing a connection string to SQL server, along with password and user name. My goal is to somehow encrypt the string so it... -
SQL Server connection string works with IIS 5.1 but not IIS 6 in ASP.NET
Hello, I have a very simple aspx file that runs on WinXP Pro IIS 5.1 and connects to a SQL Server 2k DB running on a Win2003 Server box. It works... -
Passwordless connection string to SQL Server?
Hi, Crossing over from the Unix world, I am quite stumped at this: how can I specify a DB connection string to SQL Server without 1) putting... -
Connection String to connect to SQL Server Database
http://www.able-consulting.com/ADO_Conn.htm Brian Staff -
Bob Barrows #2
Re: Appication name in SQL Server connection string
Ray at <%=sLocation%> wrote:
Server};Server=TheServerName;Database=TheDatabase; Uid=TheUsername;Pwd=ThePas> 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
>It usually works for me. Why use odbc rather than sqloledb?> 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 Guest
-
Ray at #3
Re: Appication name in SQL Server connection string
Whoops. Because I copied the wrong string. I corrected it, and now all is
fine. Thanks Bob.
Ray at work
"Bob Barrows" <reb_01501@yahoo.com> wrote in message
news:O5sFJfeVDHA.3232@tk2msftngp13.phx.gbl...Server};Server=TheServerName;Database=TheDatabase; Uid=TheUsername;Pwd=ThePas> Ray at <%=sLocation%> wrote:>> > 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
> >> It usually works for me. Why use odbc rather than sqloledb?> > 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
>
>
Ray at Guest



Reply With Quote

