Re: resetting seed
- From: "Russell Fields" <russellfields@xxxxxxxxxx>
- Date: Thu, 29 Mar 2007 14:44:20 -0400
vvf,
It depends on what the error was.
For example, if it was a constraint error, then you need to eliminate the
constraints. Read about constraints in the BOL.
Here is a BOL code snippet on resetting the seed:
CREATE TABLE MyCustomers (CustID INTEGER IDENTITY (100,1) PRIMARY KEY,
CompanyName NvarChar (50))
INSERT INTO MyCustomers (CompanyName) VALUES ('A. Datum Corporation')
ALTER TABLE MyCustomers ALTER COLUMN CustId IDENTITY (200, 2)I do not have
SQL Server CE running, so this is all untested logic.RLF"vvf"
<novvfspam@xxxxxxxxxxx> wrote in message
news:%23%23e5ldfcHHA.3632@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I have to reset the identity seed on one of my SQL Server CE (2.0) tables.
As far as I read, only TRUNCATE TABLE is my option. However, when I try to
use truncate in Query Analyzer, I get an error. So, how do I correctly
reset
the seed? Ideally, I would be able to reset it to a certain number
(instead
of just 1) but if that cannot be done, I can work around it.
Thanks.
.
- Follow-Ups:
- Re: resetting seed
- From: vvf
- Re: resetting seed
- References:
- resetting seed
- From: vvf
- resetting seed
- Prev by Date: resetting seed
- Next by Date: connect sql mobil to "main sql server"
- Previous by thread: resetting seed
- Next by thread: Re: resetting seed
- Index(es):
Relevant Pages
|