Appication name in SQL Server connection string

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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 ...
    2. 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...
    3. 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...
    4. 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...
    5. Connection String to connect to SQL Server Database
      http://www.able-consulting.com/ADO_Conn.htm Brian Staff
  3. #2

    Default Re: Appication name in SQL Server connection string

    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
    >
    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
    It usually works for me. Why use odbc rather than sqloledb?


    Bob Barrows Guest

  4. #3

    Default 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...
    > 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
    > >
    >
    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
    > It usually works for me. Why use odbc rather than sqloledb?
    >
    >

    Ray at Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139