Application Role - Slow Response

From: Daniela Guerra (danielamguerra@hotmail.com)
Date: 06/24/02


From: "Daniela Guerra" <danielamguerra@hotmail.com>
Date: Mon, 24 Jun 2002 08:21:35 -0700


Sorry,
I did a mistake.
The connection is always quickly.
It's not the connection but the execution of a statement
SQL that is very slow.

Ex after the connection :
sql = "SELECT * FROM table"
set recServeur=conn.execute (sql)

>-----Original Message-----
>Hello,
>I did a web application (asp).
>I can open the connection with or without use a
>application role but when I use the application role, the
>connection is very slow and sometimes I have a timeout,
>sometimes it's works. When I don't use the application
>role it's works quickly. Why?
>Thanks in advance,
>Daniela
>
>Code:
>
>Const ChaineConnexion = "Provider=SQLOLEDB.1;OLE DB
>Services = -2;Integrated Security=SSPI;Persist Security
>Info=False;Initial Catalog=DataBaseName;Data
>Source=ServerName"
>
>Set conn = Server.CreateObject("ADODB.Connection")
>conn.Open ChaineConnexion
>'conn.Execute("EXEC sp_setapprole 'RoleName', {ENCRYPT
>N 'password'}, 'ODBC'")
>
>.
>



Relevant Pages

  • Re: Concurrent database access in SQL 2005 Mobile
    ... Please stick to having an "dummy" connection in Open State. ... SQL CE/Mobile has a background thread that flushes the changes ... they run for long hours and we have not seen memory leaks so far. ... then opens his work forms and it's in ...
    (microsoft.public.sqlserver.ce)
  • Re: Concurrent database access in SQL 2005 Mobile
    ... Please stick to having an "dummy" connection in Open State. ... So it is a kind of asynchronous commit which happens every 10 ... I am not sure of this claim as we have many applications built on SQL CE ... then opens his work forms and it's in ...
    (microsoft.public.sqlserver.ce)
  • Access 2003 adp/proxy security - A substitute for SYSTEM_USER()
    ... We need a way for SQL to know the nt username that initiated the proxy ... Many stored procedures and views use a UDF that also depends on ... SyUserLogin and use HostIDand HostName() to find the right row. ... We've played with the Connection dialog settings, ...
    (microsoft.public.access.security)
  • RE: Logging in in background
    ... wold take all kinds of modifictions as I'd need to be checking that each SQL ... my database and all have connection strings associated with them. ... I suspect that there is also an issue on the SQL Server side as I keep ...
    (microsoft.public.access.modulesdaovba)
  • Access 2003 adp/proxy security - A substitute for SYSTEM_USER()
    ... We need a way for SQL to know the nt username that initiated the proxy ... Many stored procedures and views use a UDF that also depends on ... SyUserLogin and use HostIDand HostName() to find the right row. ... We've played with the Connection dialog settings, ...
    (microsoft.public.sqlserver.connect)