Groups | Blog | Home
all groups > sql server dts > february 2004 >

sql server dts : Transform Access primary key to SQLServer


Earl
2/26/2004 6:27:40 AM
I've noticed during transformation that my Access autonumber primary keys
are changed to int types as default. Is there a better choice?

Earl
2/26/2004 7:26:59 AM
Thanks Chandra. I wasn't very clear on the question perhaps, but was
wondering if setting them to uniqueid would automatically convert them to
identity. Follow-up question: Will changing these to identity re-seed my
primary keys (where perhaps item 1 or whatever might have been previously
deleted)?

[quoted text, click to view]

Allan Mitchell
2/26/2004 11:44:19 AM
What would you like them to be?
Autonumber = number

Look in BOL at the range of values offered by the numeric data types in SQL
Server and you may be able to save space by changing the datatype to
something like smallint. It will of course depend on how many values you
plan migrating

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


[quoted text, click to view]

Chandra A
2/26/2004 5:07:54 PM
after the transformation is complete, set the column to "identity"

best regards
Chandra A

[quoted text, click to view]

Chandra A
2/26/2004 6:45:30 PM
for that you need to use DBCC CHECKIDENT
You can get more information on it from Books On Line

best regards
Chandra A


[quoted text, click to view]

AddThis Social Bookmark Button