Skip to main content

AutoNumber Reset in SQL 2005

This post is pretty much just a note for myself, but it might help someone too.  When appending rows from an Access Database table to a SQL Server table of the same structure, sometimes SQL will not retain the ID's for AutoNumber fields.  This can be a big problem for our ParaPlan application.  In Access you can compact and repair to reset your autonumber fields back to 0 or 1 obviously.  However, I never really figured out how to do that in SQL 05 until now.

To clear a table's records and reset the autonumber in SQL 05, just use the following syntax in a query on SQL db:

"truncate table dbo.drivers"

Comments

Popular posts from this blog

The Ole Village Greens Golf Course

Peez took me out to one of our old college favorites 2 weekends ago.  The course is called THE VILLAGE GREENS and it resides in lovely Ozawkie, KS near Perry Lake.  We played this course quite a bit in our later days in college because it was cheap and fun.  All we had was Alvamar when we were at KU and she’s a little pricey for college kids.  Anyway, it was humid and hot but good times.  After, we stopped in Oskaloosa to watch the final round of the PGA at some local ‘downtown’ bar called Angie’s?

File Sharing Lock Count Exceeded

When processing large transactions within a Microsoft 'split-database' application, you may receive the above error.  The MS 'split-db' in Access is not a true client-server solution, it is a file-server solution that can lead to this error/issue. To avoid this issue you need to manually change a registry setting for MS Jet 4.0.  Set the value to at least 1,000,000,000 and follow the Method 1 instructions linked to here:  http://support.microsoft.com/kb/815281

Google Play (Music) Keyboard Shortcuts

Space bar : play or pause music. Right/left arrows : next/previous songs. Shift+ right/left arrows : seek forward and backward S In the current song. /  :  search box Delete : delete track. p : create a new playlist. i -:make an instant mix from the current song. = : Increase the player volume. - : Decrease the player volume. Alt+= : thumbs up. Alt+- : thumbs down. s : Toggle shuffle on or off. r : Toggle repeat between off, all, and one. e : Edits the currently selected songs.