Nicodemas
11-02-2003, 11:35 PM
Hello all,
I have been battling with one page for a while, trying to use the COUNT function in SQL, but SQL2000 seems to hate it and keeps giving me an error.
I have tried using the RecordCount property, but it appears as though the function which I use to open a connection, execute some SQL, and return a recordset returns the recordset with an adOpenForward CursorType.
I have tried my best to modify the file to make it return with an adOpenStatic CursorType, and still no luck. I need some advice from some ADO experts.
When I want to perform a query I use these:
strDB = "DatabaseName"
strSQL = "SELECT SomeField FROM SomeTable"
ysnSuccess = adlExecuteSQL(strDB,strSQL,NameofRecordset)
ysnSuccess being a boolean variable for testing purposes.
What do you all suggest?
I have attached the file.
Attached is the file's contents.
I have been battling with one page for a while, trying to use the COUNT function in SQL, but SQL2000 seems to hate it and keeps giving me an error.
I have tried using the RecordCount property, but it appears as though the function which I use to open a connection, execute some SQL, and return a recordset returns the recordset with an adOpenForward CursorType.
I have tried my best to modify the file to make it return with an adOpenStatic CursorType, and still no luck. I need some advice from some ADO experts.
When I want to perform a query I use these:
strDB = "DatabaseName"
strSQL = "SELECT SomeField FROM SomeTable"
ysnSuccess = adlExecuteSQL(strDB,strSQL,NameofRecordset)
ysnSuccess being a boolean variable for testing purposes.
What do you all suggest?
I have attached the file.
Attached is the file's contents.