Viewing 15 posts - 51,226 through 51,240 (of 59,072 total)
If it's temporary... (from Books Online)
SET IDENTITY_INSERT [ database_name . [ schema_name ] . ] table { ON | OFF }
If it's permanent removal you want, you'll need to define...
April 6, 2008 at 11:42 pm
My apologies... see the following URL for how to make a Tally table...
April 6, 2008 at 11:27 pm
This is the second time this same question has been asked... and just like I said on that identical post, directly updating system tables is a form of "Death by...
April 6, 2008 at 11:23 pm
We're getting there... in the example you just gave, should 1 2 3 be in a single column or 3 columns? If 3 columns, what shall be their names?
April 6, 2008 at 11:19 pm
{insert sounds of cheers and applause here}
Congrats one and all! Job well done!
April 6, 2008 at 11:17 pm
To further Jacob's suggestion... here's the test code...
--===== Do a couple of presets for appearance
SET NOCOUNT ON
SET ANSI_WARNINGS OFF
--===== Simulate a 2...
April 6, 2008 at 11:12 pm
You will never get an INDEX SEEK using SELECT *... only index scans.
April 6, 2008 at 10:48 pm
Not enough coffee, Sergiy... which method are you recommending to use?
April 6, 2008 at 10:45 pm
How many items can you have? Also, should they all be in separate columns or ???
April 6, 2008 at 10:41 pm
Bob Boursaw (4/6/2008)
With all due respect, I have read Ken's post about 200 times over this weekend and unfortunately, due to my lack of experience and knowledge with SQL,...
April 6, 2008 at 10:12 pm
If I need to insert constants, I use INSERT/SELECT... if I need to insert more than one row of constants, I use INSERT/SELECT/UNION ALL... I can't actually remember the last...
April 6, 2008 at 9:59 pm
Composite PK's are wonderful... but not for this problem. It would be so much easier if you had an IDENTITY column named RowNum because, like I said, this is...
April 6, 2008 at 9:56 pm
Jack Corbett (4/6/2008)
Essentially a unique clustered index is a primary key. A primary key defines uniqueness and, in SQL Server, when created defaults to a clustered index.
True... it also...
April 6, 2008 at 9:45 pm
Viewing 15 posts - 51,226 through 51,240 (of 59,072 total)