i am using a stored procedure from an asp page to insert values into a table. i have an attributes whose data type is 'bit'. i keep getting the error Incorrect syntax near the keyword 'on'.
when i go to insert this value into a table with the code:
SQLStmt.CommandText="InsertRecord '" & PC&"','"&Riv&"','"&Pl&"','"&Ge&"','"&Lo&"', '"&Ca&"', '"&Am&"', '"&Ty&"','"&SD&"','"&ED&"','"&OPH&"','"&OfPH&"','"&OPM&"','"&OfPM&"','"&EVTemp&"','"&AMTemp&"','"&CATemp&"','"&Cause&"','"&Amp&"','"&Eventt&"','"&Unit&"',"&Spill
the problem is the very last value being inserted. if i simply insert a 0 or 1, it doesn't give me the error but when 0 or 1 is in the variable then it doens't work
when i go to insert this value into a table with the code:
SQLStmt.CommandText="InsertRecord '" & PC&"','"&Riv&"','"&Pl&"','"&Ge&"','"&Lo&"', '"&Ca&"', '"&Am&"', '"&Ty&"','"&SD&"','"&ED&"','"&OPH&"','"&OfPH&"','"&OPM&"','"&OfPM&"','"&EVTemp&"','"&AMTemp&"','"&CATemp&"','"&Cause&"','"&Amp&"','"&Eventt&"','"&Unit&"',"&Spill
the problem is the very last value being inserted. if i simply insert a 0 or 1, it doesn't give me the error but when 0 or 1 is in the variable then it doens't work