If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Auto Number Data Type?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-31-03, 15:08
aaronshover aaronshover is offline
Registered User
 
Join Date: Jul 2003
Location: Pensylvania - USA
Posts: 15
Auto Number Data Type?

Is there a data type like Access's auto number that will automatically assign a record a number? I transfered a database from Access 2000 to SQL 2000 and it did not preserve the autonumber datatype.
__________________
"Me only have one ambition, y'know. I only have one thing I really like to see happen. I like to see mankind live together - black, white, Chinese, everyone - that's all."
- Bob Marley
Reply With Quote
  #2 (permalink)  
Old 08-03-03, 00:53
Memnoch1207 Memnoch1207 is offline
Registered User
 
Join Date: Jan 2003
Location: Midwest
Posts: 138
Identity is the SQL Server equivalent to the Access autonumber.
Reply With Quote
  #3 (permalink)  
Old 08-04-03, 08:51
aaronshover aaronshover is offline
Registered User
 
Join Date: Jul 2003
Location: Pensylvania - USA
Posts: 15
When I open a table in design view and I change a datatype I do not see Identity in the list.
__________________
"Me only have one ambition, y'know. I only have one thing I really like to see happen. I like to see mankind live together - black, white, Chinese, everyone - that's all."
- Bob Marley
Reply With Quote
  #4 (permalink)  
Old 08-05-03, 13:13
dbadelphes dbadelphes is offline
Registered User
 
Join Date: Feb 2003
Location: Montreal, Canada
Posts: 117
Identity is property not a data type.
Chose a INT type for instance, then (in the bottom of the design screen - columns panel) specify if that's an identity column, the seed and increment eventually.

Quote:
Originally posted by aaronshover
When I open a table in design view and I change a datatype I do not see Identity in the list.
__________________
Steve
Reply With Quote
  #5 (permalink)  
Old 08-05-03, 13:19
aaronshover aaronshover is offline
Registered User
 
Join Date: Jul 2003
Location: Pensylvania - USA
Posts: 15
Thanks, that helped. I got it working now.
__________________
"Me only have one ambition, y'know. I only have one thing I really like to see happen. I like to see mankind live together - black, white, Chinese, everyone - that's all."
- Bob Marley
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On