I'm pretty familiar with MySQL, now trying to learn MS SQL.
I imported the Access database (Access 97) into MS SQL server and auto increment seems to be lost.
QA.ID is supposed to be auto_incremented, how do I alter that table?
When I programmed ASP, I get the error as follows:
Cannot insert the value NULL into column 'ID', table 'QcData.dbo.QA'; column does not allow nulls. INSERT fails.
Where ASP string is as follows:
cmd.CommandText="INSERT INTO QA (LocationID,OperatorID,QAID,NTID,BrandID,Batch,KeyDate,ReceiveDate,Training) VALUES ('" & objLoc & "','" & objOPER & "','" & objQADE & "','" & objNTID & "','" & objBrand & "','" & objBatch & "','" & objKeyDate & "',current_timestamp,'" & objTrain & "');"
Anyone know how I can do it?
I imported the Access database (Access 97) into MS SQL server and auto increment seems to be lost.
QA.ID is supposed to be auto_incremented, how do I alter that table?
When I programmed ASP, I get the error as follows:
Cannot insert the value NULL into column 'ID', table 'QcData.dbo.QA'; column does not allow nulls. INSERT fails.
Where ASP string is as follows:
cmd.CommandText="INSERT INTO QA (LocationID,OperatorID,QAID,NTID,BrandID,Batch,KeyDate,ReceiveDate,Training) VALUES ('" & objLoc & "','" & objOPER & "','" & objQADE & "','" & objNTID & "','" & objBrand & "','" & objBatch & "','" & objKeyDate & "',current_timestamp,'" & objTrain & "');"
Anyone know how I can do it?