A
Al
I have a table in sql 2000 backend (be) and Access front end. I deleted the
data from the "be" table. When I tried to append the same data again I got
error message saying that:" Microsoft office Access did not add 1262
Record(s) to table due to key violations". What does that mean?
here is my sql statment:
*************************************
INSERT INTO tblLocationTracking ( ProjCode, DeptCode, ActivationPhaseID,
MovePhaseID, LocationType, AssignedTo, FirstName, LastName, MiddleInitial,
FullName, JobTitle, JobCode, HRPositionID, Originbl_id, Originfl_id,
OriginLocation, OriginWorkStationNo, OriginSqFt, Destbl_id, Destfl_id,
DestLocation, DestWorkStationNo, DestSQFT, Emp_Comments, sysRowOwner,
sysCreateUser, sysCreateDate, sysModUser, sysModDate )
SELECT tblDataCleanup.ProjCode, tblDataCleanup.DeptCode,
tblDataCleanup.ActivationPhaseID, tblDataCleanup.MovePhaseID,
tblDataCleanup.LocationType, tblDataCleanup.AssignedTo,
tblDataCleanup.FirstName, tblDataCleanup.LastName,
tblDataCleanup.MiddleInitial, tblDataCleanup.FullName,
tblDataCleanup.JobTitle, tblDataCleanup.JobCode, tblDataCleanup.HRPositionID,
tblDataCleanup.Origintbl_id, tblDataCleanup.Originfl_id,
tblDataCleanup.OriginLocation, tblDataCleanup.OriginWorkStationNo,
tblDataCleanup.OriginSqFt, tblDataCleanup.Destbl_id,
tblDataCleanup.Destfl_id, tblDataCleanup.DestLocation,
tblDataCleanup.DestWorkStationNo, tblDataCleanup.DestSqFt,
tblDataCleanup.Emp_Comments, tblDataCleanup.sysRowOwner,
tblDataCleanup.sysCreateUser, tblDataCleanup.sysCreateDate,
tblDataCleanup.sysModUser, tblDataCleanup.sysModDate
FROM tblDataCleanup;
******************************
when I tried to run a sql script using the sql query analyzer, I got the
following error:
"Server: Msg 8152, Level 16, State 2, Line 1
String or binary data would be truncated.
The statement has been terminated.".
Could some one please help.
Thanks
Al
data from the "be" table. When I tried to append the same data again I got
error message saying that:" Microsoft office Access did not add 1262
Record(s) to table due to key violations". What does that mean?
here is my sql statment:
*************************************
INSERT INTO tblLocationTracking ( ProjCode, DeptCode, ActivationPhaseID,
MovePhaseID, LocationType, AssignedTo, FirstName, LastName, MiddleInitial,
FullName, JobTitle, JobCode, HRPositionID, Originbl_id, Originfl_id,
OriginLocation, OriginWorkStationNo, OriginSqFt, Destbl_id, Destfl_id,
DestLocation, DestWorkStationNo, DestSQFT, Emp_Comments, sysRowOwner,
sysCreateUser, sysCreateDate, sysModUser, sysModDate )
SELECT tblDataCleanup.ProjCode, tblDataCleanup.DeptCode,
tblDataCleanup.ActivationPhaseID, tblDataCleanup.MovePhaseID,
tblDataCleanup.LocationType, tblDataCleanup.AssignedTo,
tblDataCleanup.FirstName, tblDataCleanup.LastName,
tblDataCleanup.MiddleInitial, tblDataCleanup.FullName,
tblDataCleanup.JobTitle, tblDataCleanup.JobCode, tblDataCleanup.HRPositionID,
tblDataCleanup.Origintbl_id, tblDataCleanup.Originfl_id,
tblDataCleanup.OriginLocation, tblDataCleanup.OriginWorkStationNo,
tblDataCleanup.OriginSqFt, tblDataCleanup.Destbl_id,
tblDataCleanup.Destfl_id, tblDataCleanup.DestLocation,
tblDataCleanup.DestWorkStationNo, tblDataCleanup.DestSqFt,
tblDataCleanup.Emp_Comments, tblDataCleanup.sysRowOwner,
tblDataCleanup.sysCreateUser, tblDataCleanup.sysCreateDate,
tblDataCleanup.sysModUser, tblDataCleanup.sysModDate
FROM tblDataCleanup;
******************************
when I tried to run a sql script using the sql query analyzer, I got the
following error:
"Server: Msg 8152, Level 16, State 2, Line 1
String or binary data would be truncated.
The statement has been terminated.".
Could some one please help.
Thanks
Al