Monday, March 19, 2012

identity seed in sql server not picking next val after getting tables from access

Hi All,
I am converting access database into sql server and i am using DTS to import
the database into sql server.My question is that my identity columns are no
t picking the next value for identity col,it picks some random value.I want
this to pick the next value
of the max value which it imported from access table ( autonumber column) wh
at do i do.
Any suggestions would be helpful.
Thanks
sudhaUse the DBCC CHECKIDENT command to fix the value (example from Books
OnLine):
USE pubs
GO
DBCC CHECKIDENT (jobs)
GO
Dejan Sarka, SQL Server MVP
Associate Mentor
Solid Quality Learning
More than just Training
www.SolidQualityLearning.com
"sudha" <anonymous@.discussions.microsoft.com> wrote in message
news:69143797-CAA1-448D-86A5-7729FD6B04ED@.microsoft.com...
> Hi All,
> I am converting access database into sql server and i am using DTS to
import the database into sql server.My question is that my identity columns
are not picking the next value for identity col,it picks some random value.I
want this to pick the next value of the max value which it imported from
access table ( autonumber column) what do i do.
> Any suggestions would be helpful.
> Thanks
> sudha|||thanks for the info.

No comments:

Post a Comment