Viewing 15 posts - 301 through 315 (of 516 total)
Nils Gustav Stråbø (10/9/2012)
Lokesh Vij (10/9/2012)Here you go:
Won't work. Only one table at the time can have IDENTITY_INSERT OFF
It will certainly work. Execute the query - this will generate a...
October 9, 2012 at 3:03 am
vahid.arr (10/9/2012)
NO friendI want To Set Identity Off for All Tables not drop table.
Here you go:
SELECT DISTINCT 'SET IDENTITY_INSERT '
...
October 9, 2012 at 2:55 am
These are temporary tables. Single and Double hash defines the scope of these tables. Refer the link below where it tempory tables are very nicely explained.
http://www.simple-talk.com/sql/t-sql-programming/temporary-tables-in-sql-server/
October 9, 2012 at 2:53 am
Here is the query to get the list of all "User" tables have identity column:
SELECT DISTINCT Object_name(t.object_id)
FROM sys.all_columns c
INNER JOIN sys.tables...
October 9, 2012 at 2:47 am
Thanks Ron for this great question today as well. It required a little bit of reading before attempting it.
Happy that I got it correct in the end 🙂
October 8, 2012 at 10:52 pm
L' Eomot Inversé (10/6/2012)
October 7, 2012 at 10:50 pm
L' Eomot Inversé (10/6/2012)
October 7, 2012 at 10:43 pm
jdelorino (10/5/2012)
Thank you for your reply,your help is greatly appreciated, more power.
Please post the correct solution and which query worked for you. This might help us.
October 5, 2012 at 4:25 am
Jason-299789 (10/5/2012)
Lokesh Vij (10/5/2012)
SELECT ERRORCODE, ERRORDESC,
Terminal_1 = MAX(CASE WHEN TERMINALID = 'Terminal_1' THEN TOTALCOUNT ELSE 0 END),
Terminal_2 = MAX(CASE WHEN TERMINALID =...
October 5, 2012 at 3:48 am
Here is the modified version with totalcount values:
SELECT ERRORCODE, ERRORDESC,
Terminal_1 = MAX(CASE WHEN TERMINALID = 'Terminal_1' THEN TOTALCOUNT ELSE 0 END),
Terminal_2 = MAX(CASE WHEN TERMINALID = 'Terminal_2' THEN TOTALCOUNT...
October 5, 2012 at 2:55 am
mccork (10/4/2012)
Lokesh Vij (10/4/2012)
sam.dahl (10/4/2012)
October 4, 2012 at 11:42 pm
Abhilash_A (10/4/2012)
Hi,Thanks for the reply.
This is what i was searching for.Thanks a lot.:-D
You are welcome Abhilash 🙂
October 4, 2012 at 11:39 pm
sam.dahl (10/4/2012)
I recognised the attempt to insert null and hence picked 2,0 because that's what the two select statements return: 2 and 0. It's the insert statement that fails.
+1
I also...
October 4, 2012 at 9:40 pm
I don't think there should be a problem. Here is the sample code which executed perfectly
CREATE TABLE dftBIT
(
id INT,
...
October 4, 2012 at 5:54 am
Viewing 15 posts - 301 through 315 (of 516 total)