Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stored procedure parameters out of order?

Status
Not open for further replies.

BlackDice

Programmer
Mar 1, 2004
257
US
I'm using ado with vb6. I use a command object and add parameters in a loop by iterating through a collection object. if I change the order of the parameters in the sproc to match the order that they're added when looped through in the collection, everything's ok. Otherwise I get a 'cannot convert varchar to int' error when executing the command object. I saw something in another forum about using the '@' symbol, otherwise it just sends them in in order. I tried that, but it still didn't work.


BlackDice

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top