From:
Dave Sadler
|
|
12/5/2001 2:34:01 PM |
Excellent meeting last night Jason!
I have a question about the Parameters collection in ADO.net
Can you still pass parameters to a command object using the ordinal number or do you have to build the parameter?
ie -
objCmd.CommandText = "usp_TakeInTwoSpitOutOne"
objCmd.CommandType = adCmdStoredProc
objCmd.Parameters(1) = "This is the first parameter"
objCmd.Parameters(2) = "This is the second parameter"
objCmd.Execute
strOutput = objCmd.Parameters(3)
and if so, will it still be 1 based with stored procs, or has ado.net fixed that to go 0 based?
|