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 2005 Forums
 Transact-SQL (2005)
 convert to bigint

Author  Topic 

inbs
Aged Yak Warrior

860 Posts

Posted - 2009-08-23 : 04:57:40
how can i make this to bigint or other type of number?

SELECT 1 + Convert(bigint,'9223372036854775807')

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2009-08-23 : 07:06:26
bigint not big enough ?

SELECT 1 + Convert(decimal(38),'9223372036854775807')


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

Go to Top of Page

inbs
Aged Yak Warrior

860 Posts

Posted - 2009-08-23 : 09:12:22
thanks
quote:
Originally posted by khtan

bigint not big enough ?

SELECT 1 + Convert(decimal(38),'9223372036854775807')


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



Go to Top of Page
   

- Advertisement -