Giving Database Connections A Name

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Giving Database Connections A Name

    I know that the CF Administrator manages the connections to the database (in my
    case SQLserver) and maintains a limited number of connections to the database
    that all users use.

    My question is: Is there a way to uniquely identify each connection that is,
    user workstation through CF to the database? I want to better manage the users
    on the database when I run sp_who. Right now I have one ODBC connection for
    all users and the CF Administrator opens several connections to the database
    depending on traffic however, they all have the same user name. In addition, I
    do not want to setup a separate ODBC connection for each user.

    Any help with this will be appreciated.

    Don

    DRDuquette Guest

  2. Similar Questions and Discussions

    1. increase database connections
      Hi all, Currently, I notice that there are only two database connections between my ColdFusion server and the SQL server. May I ask how can I...
    2. CD/DVD and Database connections
      I need to create a standalone "app" that allows the users to insert the CD/DVD and be able to query a database that is on the CD/DVD. I need to...
    3. Global.asa and DSN-less database connections
      OBJECTIVE: I am trying to create a connection to an access database in and then use that connection ASP pages in my application without having to...
    4. Dreamweaver and database connections
      I've been hand coding my ASP database connections etc, but thought I'd take a look a Dreamweavers' (MX) ability to write the code - it seems to have...
    5. [PHP] Persistent database connections in PHP
      I haven't heard of persistent connections with MySQL before, and I think is because PHP can't handle it. PHP will connect to the DB every time it...
  3. #2

    Default Re: Giving Database Connections A Name

    You've pretty much boxed yourself into a corner. Connection pooling is the
    defacto method. CF doesn't handle Windows authentication from the user because
    of the hop/impersonation issue. The only thing you can do is write some
    session start code that discovers the connection SPID and inserts it into a
    table with the user name.

    Good luck.

    philh Guest

  4. #3

    Default Re: Giving Database Connections A Name

    Thanks, Phil. I think it would be easier to simply create an ODBC connection
    for each user in my case since the number of users is less than 30. Do you
    know how most applications handle this situation?

    Thanks,
    Don

    DRDuquette Guest

  5. #4

    Default Re: Giving Database Connections A Name

    I suppose with a small number of users you can get away with the ODBC
    connections.

    I wonder what your real need is. Most Web application talk to the DB through
    a pooled connection (excepting your unique connections as above). Judicious
    application of connection and session timeouts should minimize any performance
    impacts, which, with 30 users, is practically negligible. You can handle
    identity management through cookies and/or, in the case of an Intranet,
    domain-authenticated users. If you're after who did what when, that's best
    done in an Intranet scenario using triggers and the auth_user info.

    My $.02

    philh 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