Quantcast
Channel: Getting started with SQL Server forum
Viewing all articles
Browse latest Browse all 9243

dbf to sql server express PK and auto increment

$
0
0

im new to sql server and want to convert my dbf to sql server express.  i have imported the first table and want to get this right before i do the rest.

my question is with regards to PK and auto increment.

my dbf file has a field called 'Caseref' which was set to auto increment as a field rule in the table.

i made this field the PK in MS SQL Server, i then tried to set it as unique but it changed the values in the field starting from 1 upwards.

this causes a problem with the rest of the tables as this field value is the FK in all other related tables and i will lose the relationship between parent and child records.

i was hoping someone could tell me how i get around this problem.


Viewing all articles
Browse latest Browse all 9243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>