Forum Discussion

MichaelJohnson's avatar
MichaelJohnson
Regular Visitor
10 years ago

pass parameter in ado createrecordset

Hi there,   How do I pass a parameter in the ADO CreateRecordSet? Ie:   var userId = 1337;   qry.Open("SELECT COUNT(*) from [dbo].[Users] f WHERE f.UserId= userId", connectionString, -1, -1, ad...