Re: How start identity field at 100

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Set the seed to 100. If you are using the SQL Manager, you can alter there,
but be careful with live databases using this method.

With scripting, the method is:

CREATE TABLE TableWithIdentityColumn
(
MyID int IDENTITY(100,1) PRIMARY KEY
, SomeData varchar(2000) NOT NULL
)

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
"Cirene" <test@xxxxxxxx> wrote in message
news:e3mKixIIIHA.5328@xxxxxxxxxxxxxxxxxxxxxxx
I have a table with the PK field defined as an identity field with the
increment of 1. How do I START the calculations at 100, rather than 1?



.



Relevant Pages

  • Re: virtual practical jokes
    ... there a way to play .wav sounds though scripting? ... Always be careful with practical jokes. ... let's call that a learning experience for the workstation support people! ...
    (microsoft.public.scripting.vbscript)
  • Re: [PATCH] fadvise(2) system call
    ... On Wednesday, November 09, 2011 6:44:15 pm Bruce Cran wrote: ... allow users to alter their behavior in specific use cases when it ... (FADV_NOREUSE effectively forces ... the application should be very careful to only read full ...
    (freebsd-arch)
  • Re: Article on The Register
    ... >Has anybody seen any examples of the phishing attempt noted in the following ... In my experience, even if scripting is ... Dave "Crash" Dummy - A weapon of mass destruction ... crash@gpick.com?subject=Techtalk (Do not alter!) ...
    (alt.computer.security)
  • how do i change the pop3 and smtp settings for 80-100 users via s.
    ... Does anyone know how to alter the pop3 and smtp in outlook2000 via scripting ...
    (microsoft.public.outlook.program_vba)
  • Re: Incrementing File Names
    ... At the moment all I can do is alter each one manually. ... sub-folders as well): http://www.1-4a.com/rename/ ... torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter/default.mspx. ...
    (microsoft.public.win2000.general)