Redian新闻
>
CO-ASK Re: 请教个sql query问题: sql7
avatar
CO-ASK Re: 请教个sql query问题: sql7# Database - 数据库
j*t
1
or it is the way Access primary key goes?
avatar
m*m
2
If you are using autonumber in Access or identity in MS SQL Server, then it
works this way. Nothing was wrong. The number is not reset when you delete
records. To reset the autonumber to a certain value, you need to use
DBCC CHECKIDENT to reseed the column at certain value
in sql server 7. Please google its usage and examples.

【在 j******t 的大作中提到】
: or it is the way Access primary key goes?
avatar
j*t
3
thanks again! //BOW
just found out that one "stupid" way to solve the problem is to delete the key
and insert it to the table again. then everything works out well.:)

【在 m**********m 的大作中提到】
: If you are using autonumber in Access or identity in MS SQL Server, then it
: works this way. Nothing was wrong. The number is not reset when you delete
: records. To reset the autonumber to a certain value, you need to use
: DBCC CHECKIDENT to reseed the column at certain value
: in sql server 7. Please google its usage and examples.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。