This is a discussion on Auto-increment fields when moving a base from Access to SQL server within the SQL Server forums, part of the Microsoft SQL Server category; --> Hello all, I'm a total newbie with SQL Server 2000 and I have a little problem when moving a ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello all, I'm a total newbie with SQL Server 2000 and I have a little problem when moving a database form Access 2000 to SQL Server 2000. In the Access database, each table has an auto-increment field. After importing the tables in SQL Server, all the auto-increment fields are turned into "int" type fields. Does anybody have an explanation for that mystery? Thanks in advance, Yan |
| |||
| You might want to change the field type from int to identity. The identity field type in SQL Server is analogous to the Autonumber field type in Access. good luck CJ "Yan Roosens" <yan.roosens@skynet.be> wrote in message news:3F7C4258.6C6B428E@skynet.be... > Hello all, > > I'm a total newbie with SQL Server 2000 and I have a little problem when > moving a database form Access 2000 to SQL Server 2000. > In the Access database, each table has an auto-increment field. > After importing the tables in SQL Server, all the auto-increment fields > are turned into "int" type fields. > Does anybody have an explanation for that mystery? > > Thanks in advance, > Yan > > |
| |||
| Hi CJ, > You might want to change the field type from int to identity. The identity > field type in SQL Server is analogous to the Autonumber field type in > Access. Thank you, the error message related to that problem is no longer displayed, I will now care about the next one :-( Yan |
| ||||
| On Thu, 02 Oct 2003 17:20:57 +0200, Yan Roosens <yan.roosens@skynet.be> wrote: >Hello all, > >I'm a total newbie with SQL Server 2000 and I have a little problem when >moving a database form Access 2000 to SQL Server 2000. >In the Access database, each table has an auto-increment field. >After importing the tables in SQL Server, all the auto-increment fields >are turned into "int" type fields. >Does anybody have an explanation for that mystery? > >Thanks in advance, >Yan > Because that isn't a data type. Look up identity for an explanation of how sql server can provide that sort of functionality. |