I'm getting this error.
Here's my ASP code snippet:
If you need more info to help me out, let me know. If this has been answered before, I apologize but I searched for this error and couldn't find anything.
Thanks for your time and any kind of assistance would be appreciated.
Bob
I have read the dealers table successfully without using the SQL statement just to make sure I'm connecting to the database fine and that the table name is correct. I simplified my query to as simple as possible.Microsoft OLE DB Provider for ODBC Drivers error '80040e37'
[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'SELECT'.
Here's my ASP code snippet:
Code:
Set rs = Nothing
Set rs = Server.CreateObject("ADODB.Recordset")
rs.CursorLocation = adUseClient
strSQL = "SELECT * FROM dealers"
Response.Write strSQL
rs.Open strSQL, connStr, adOpenStatic, adLockReadOnly, adCmdTableDirect
If you need more info to help me out, let me know. If this has been answered before, I apologize but I searched for this error and couldn't find anything.
Thanks for your time and any kind of assistance would be appreciated.
Bob