Microsoft
Software
Hardware
Network
Question : SQL Query
Hei guys,
i have an sql query
SELECT IDENT_CURRENT('Products') + IDENT_INCR('Products');
i want to get the next increment on a table but it returns 2 if they is no values entered,
it does work fine if they is information enter in the table, but does not return 1 if the table is empty,
how can i return 1 if the next increment is 1?
Answer : SQL Query
HERE YOU GO...
SELECT ISNULL(IDENT_CURRENT('Prod
ucts') ,0) +1
Random Solutions
Is it possible to automatically copy data from AS/400 to Excel (or Lotus 1-2-3) without external apps?
Win RAR
Opening an Access form with allowadditions property set to false and no records found
Select an element Jquery.
Creation of RAID device fails
How to make Crystal Report not require SQL Server login, prompt
how do i/can setup backup DC on an existing 2008 AD.
Macbook air connects to skype, but not on the internet
Read all data from a datagridview and copy it to a public array or something like that...
windows permissioning