G
Guest
I have an application that worked fine but which no longer works after the upgrade from Office 200 to Office 2003. The following code is involved
strUserName = Environ("USERNAME"
Set cmd = New ADODB.Comman
cmd.ActiveConnection = CurrentProject.Connectio
' The connection string...
' "Provider=Microsoft.Access.OLEDB.10.0;Persist Security Info=True;Data Source=MEGO
' User ID=rexx;Password=P@yperview;Initial Catalog=rexxDB;Data Provider=SQLOLEDB.1
cmd.CommandType = adCmdStoredPro
cmd.CommandText = "hp_IsValidUser
' The store proc heade
'SET QUOTED_IDENTIFIER OFF
'G
'SET ANSI_NULLS ON
'G
'CREATE PROCEDURE dbo.hp_IsValidUse
'
' @UserName VARCHAR(32)
' @ApplicationID INT
' @Authenticate INTEGER OUTPUT
' @ConnectionString VARCHAR(1024) OUTPU
'
'A
'SET @Authenticate =
'SET @ConnectionString = '
'...
cmd.Parameters("@UserName") = strUserNam
cmd.Parameters("@ApplicationID") = glngApplicationI
cmd.Execute options:=adExecuteNoRecord
The last command errors out with 3251 : "Object or provider is not capable of performing requested operation.
Any ideas?
strUserName = Environ("USERNAME"
Set cmd = New ADODB.Comman
cmd.ActiveConnection = CurrentProject.Connectio
' The connection string...
' "Provider=Microsoft.Access.OLEDB.10.0;Persist Security Info=True;Data Source=MEGO
' User ID=rexx;Password=P@yperview;Initial Catalog=rexxDB;Data Provider=SQLOLEDB.1
cmd.CommandType = adCmdStoredPro
cmd.CommandText = "hp_IsValidUser
' The store proc heade
'SET QUOTED_IDENTIFIER OFF
'G
'SET ANSI_NULLS ON
'G
'CREATE PROCEDURE dbo.hp_IsValidUse
'
' @UserName VARCHAR(32)
' @ApplicationID INT
' @Authenticate INTEGER OUTPUT
' @ConnectionString VARCHAR(1024) OUTPU
'
'A
'SET @Authenticate =
'SET @ConnectionString = '
'...
cmd.Parameters("@UserName") = strUserNam
cmd.Parameters("@ApplicationID") = glngApplicationI
cmd.Execute options:=adExecuteNoRecord
The last command errors out with 3251 : "Object or provider is not capable of performing requested operation.
Any ideas?