ngoksel
10-20-2009, 12:23 AM
Hello all,
I want to execute a query from database, here the code,
Set Connection= Server.CreateObject("ADODB.Connection")
Set RecordSet= Server.CreateObject("ADODB.Recordset")
RecordSet.Open="SELECT * FROM logintable" , Connection
if Recordset.eof then
Response.Write("xxxxxxxx")
else.......
But there is a compilation error like folloving;
RecordSet.Open="SELECT * FROM logintable" , Connection
---------------------------------------^
I think there is an error in my SQL statement
I want to execute a query from database, here the code,
Set Connection= Server.CreateObject("ADODB.Connection")
Set RecordSet= Server.CreateObject("ADODB.Recordset")
RecordSet.Open="SELECT * FROM logintable" , Connection
if Recordset.eof then
Response.Write("xxxxxxxx")
else.......
But there is a compilation error like folloving;
RecordSet.Open="SELECT * FROM logintable" , Connection
---------------------------------------^
I think there is an error in my SQL statement