how to reseed in pymssql

230 views Asked by At

I wish to reseed the userprofile table from python code. I have done as below

stmt =  "DBCC CHECKIDENT ('UserProfile', RESEED,52)"
cursr.execute(stmt)

But it is not getting set. I checked with

DBCC CHECKIDENT('UserProfile',NORESEED) in sql server 

Any help will be appreciated

0

There are 0 answers