Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL in JScript

Status
Not open for further replies.

Tango524

Technical User
Mar 10, 2003
25
0
0
US
Hi guys!

I am having trouble with the lines below- particularly the getString and SQL statement. It gives me error 68- whatever that means. Any clues as to what is wrong? Thanks!

function onLoad()
{
con = DBDriver.getConnection("alias:hrbid");
stmt = con.createStatement("SELECT DISTINCT hrbid_employee.employee_number from hrbid_employee WHERE hrbid_employee.employee_number = 11111");
rs = stmt.executeQuery();
info = rs.getString(hrbid_employee.employee_number)
md = rs.getMetaData();
alert("number : " +info);
}
 
my guess is you're using server-side JScript, in which case this is an illegal statement:

alert("number : " +info);


alert() is for client-side only


=========================================================
while (!succeed) try();
-jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top