petermeachem
Programmer
Not strictly an ASP question.
I came across this method of using a parameter query. It ends up much neater looking than using CreateParameter, so I was wondering if there is a huge snag I have overlooked?
SQLtemp = "SELECT * FROM CustRecords WHERE Cust_UserName = ? AND Cust_Password = ? "
set oCmd = server.CreateObject("ADODB.Command")
oCmd.ActiveConnection = cnn
oCmd.CommandText = SQLtemp
set rst = oCmd.Execute (,Array(cuser,cuserpassword))
I came across this method of using a parameter query. It ends up much neater looking than using CreateParameter, so I was wondering if there is a huge snag I have overlooked?
SQLtemp = "SELECT * FROM CustRecords WHERE Cust_UserName = ? AND Cust_Password = ? "
set oCmd = server.CreateObject("ADODB.Command")
oCmd.ActiveConnection = cnn
oCmd.CommandText = SQLtemp
set rst = oCmd.Execute (,Array(cuser,cuserpassword))