Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 start integer column from -2,147,483,648

Author  Topic 

wkm1925
Posting Yak Master

207 Posts

Posted - 2011-08-08 : 04:12:09
(-2,147,483,648

I've a column with a int datatype as following,

idx int identity

from the reading int start from -2,147,483,648

how to make sure my idx can start from -2,147,483,648?

Lumbago
Norsk Yak Master

3271 Posts

Posted - 2011-08-08 : 04:17:14
ALTER TABLE ADD ID int NOT NULL IDENTITY(-2147483648, 1)

- Lumbago
My blog-> http://thefirstsql.com/2011/07/08/how-to-find-gaps-in-identity-columns-at-the-speed-of-light/
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2011-08-08 : 04:17:38
[code]
create table yourtable
(
id int identity (-2147483648, 1)
. . .
)
[/code]


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2011-08-08 : 04:18:03



KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

wkm1925
Posting Yak Master

207 Posts

Posted - 2011-08-08 : 04:30:39
tq sir
Go to Top of Page
   

- Advertisement -