Viewing 5 posts - 1 through 5 (of 5 total)
FYI - I'm using ADO 2.5 and it works
April 19, 2010 at 11:24 am
This worked for me:
Cmd1.ActiveConnection = Conn1
Cmd1.CommandText = "sp_AdoTest"
Cmd1.CommandType = adCmdStoredProc
Cmd1.Parameters.Refresh
Cmd1.Parameters("varName").Value = 10
Set Rs1 = Cmd1.Execute()
From the following link:
April 19, 2010 at 9:57 am
hmm yes i see - that is annoying - the only thing I can think of is to create a 'wrapper' stored procedure that's tightly coupled to the ADO code...
April 19, 2010 at 9:10 am
Instead of doing cmd.Parameters.Refresh try using:
Dim objParam as ADODB.Parameter
Set objParam = cmd.CreateParameter(Name, Type, Direction, Size)
cmd.Parameters.Append
objParam.Value = yourvalue
( ex: CreateParameter("@BatchNo", adInteger, adParamInput)
...
April 19, 2010 at 7:42 am
I'm having exactly the same issue linking 2005 to 2000 only difference is that my 2005 is 32bit and the error I get when running an OpenQuery is:
OLE DB provider...
April 24, 2009 at 12:46 pm
Viewing 5 posts - 1 through 5 (of 5 total)