Query to delete

Newbie Spellweaver
Joined
Dec 15, 2018
Messages
17
Reaction score
2
Would anyone have a query that only accounts and characters ???:blush:
 
this is for wipe all db , less EventData


Ok, after using this sql query you have to reset the IDENTITY of account in database, for example if you last created account has UserNum 1000, if you only use this query to wipe, after wipe the next account created will start from 1001,1002,1003, etc.
So if you want to start form UserNum 1 use this query also.

Use all cabal online databases, not on EventData.

/*Reset Identity on tables with identity column*/
exec sp_MSforeachtable 'IF OBJECTPROPERTY(OBJECT_ID(''?''), ''TableHasIdentity'') = 1 BEGIN DBCC CHECKIDENT (''?'',RESEED,0) END'
 
Upvote 0
Back