T
trint
I've looked this over and just don't get why the error is "An unhandled
exception of type 'System.Runtime.InteropServices.COMException'
occurred in db2sql.exe
Additional information: Cannot insert the value NULL into column
'CreatedDateTime', table 'tsNess.dbo.tblTravelDetail'; column does not
allow nulls. INSERT fails."
This syntax, except for the @@identity, is exactly the same in my other
programs that work:
Object recordsEffected;
string strSQL2 = "INSERT INTO tblTravelDetail(MemberID) " +
"VALUES ('" + TxtMLV.Text.Trim() + "')" +
"SELECT @@IDENTITY " ;
cnn2.Execute(strSQL2, out recordsEffected, 0);
Thanks,
Trint
exception of type 'System.Runtime.InteropServices.COMException'
occurred in db2sql.exe
Additional information: Cannot insert the value NULL into column
'CreatedDateTime', table 'tsNess.dbo.tblTravelDetail'; column does not
allow nulls. INSERT fails."
This syntax, except for the @@identity, is exactly the same in my other
programs that work:
Object recordsEffected;
string strSQL2 = "INSERT INTO tblTravelDetail(MemberID) " +
"VALUES ('" + TxtMLV.Text.Trim() + "')" +
"SELECT @@IDENTITY " ;
cnn2.Execute(strSQL2, out recordsEffected, 0);
Thanks,
Trint