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
Iphone Can't get Exchange mail on LAN but ok on 3G.
Dell M6300 Will Not Boot Even With 130W Power Supply
Running RMI on Tomcat Servlet - How do I set up RMISecurityManager?
Vb 2008 and Microsoft.Office.Interop.E
xcel error
Why don't Lotus Notes document links work when sent to MS Outlook emails.
Replacing SAN-added UCC SSL Cert
Link to PDF files from DVD Menu
SBS 2008 strange issue
How do I read an unsigned character in C#?
Returning 0 from a template member function when instantiated with aggregate types