Re: Application role on connection
From: Happygirl (happygirl5354@hotmail.com)
Date: 02/25/03
- Next message: Staf Debrouwer: "Re: Wiping MS SQL records"
- Previous message: Emad Elmagrisy: "DTS - Security issue - SQL 2000"
- In reply to: Dan Guzman: "Re: Application role on connection"
- Next in thread: Dan Guzman: "Re: Application role on connection"
- Reply: Dan Guzman: "Re: Application role on connection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Happygirl" <happygirl5354@hotmail.com> Date: Mon, 24 Feb 2003 21:17:17 -0800
The following are my sample code, i can successfully
execute strsql, but not strsql1, but however if i add one
more line in between "strsql.close", then both statement
can execute successfully, but since the program create
many of this recordset, should you provide any proper and
simple ways.. Thanks.
Set Conn = New Adodb.Connection
Conn.ConnectionString = "Driver={SQL Server};SERVER="
& gsSQL70Server & ";UID=" & gsSQL70UID & ";PWD=" &
Decrypt(gsSQL70PWD) & "" & ";DATABASE=" & gsSQL70DATABASE
Conn.Open
Conn.Execute "sp_setapprole 'xxAppRole', 'xxAppRole'"
Dim strSQL As String
Dim Rst As Adodb.Recordset
Dim strSQL1 As String
Dim Rst1 As Adodb.Recordset
strSQL = "SELECT * from Test"
Set Rst = Conn.Execute(strSQL)
StrSQL1 = "SELECT * from Test";
Set Rst1 = Conn.Execute(strSQL1)
- Next message: Staf Debrouwer: "Re: Wiping MS SQL records"
- Previous message: Emad Elmagrisy: "DTS - Security issue - SQL 2000"
- In reply to: Dan Guzman: "Re: Application role on connection"
- Next in thread: Dan Guzman: "Re: Application role on connection"
- Reply: Dan Guzman: "Re: Application role on connection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|