Viewing 15 posts - 2,416 through 2,430 (of 2,610 total)
Thought it might be worth adding some bulk test data:
-- You'll need Jeff Moden's Tally table for this http://www.sqlservercentral.com/articles/T-SQL/62867/
TRUNCATE TABLE [dbo].[OfficeCounty]
DELETE [dbo].[County]
DELETE [dbo].[Office]
-- Generate 26*26*10 counties (10 counties...
June 30, 2015 at 9:47 am
Lynn Pettis (6/4/2015)
Jonathan AC Roberts (6/4/2015)
June 4, 2015 at 2:45 pm
The reason a semicolon is required before the WITH in a CTE as that WITH has two uses, it can be used for hints e.g.
SELECT * FROM MyTable WITH...
June 4, 2015 at 10:27 am
asushil (5/15/2015)
some expert gentlemen on MSDN...
May 15, 2015 at 10:21 am
rob.lobbe-964963 (4/30/2015)
To use a system function that already does what you have coded.
But it doesn't do the same thing. The function I wrote displays the value of an int in...
April 30, 2015 at 6:32 pm
rob.lobbe-964963 (4/29/2015)
try master.sys.fn_varbintohexstr( cast(int-value as varbinary(max)) )
To do what?
April 30, 2015 at 4:44 am
Mark D Powell (4/28/2015)
April 28, 2015 at 3:08 pm
Well it probably is bit of an obscure/esoteric thing to do but one of the most efficient ways of storing items that are switched is in a bit string within...
April 28, 2015 at 8:48 am
Michael Meierruth (4/28/2015)
Jonathan AC Roberts (4/28/2015)
It's used so the right-most bit, which is set to...
April 28, 2015 at 2:58 am
~ is the T-SQL's bitwise NOT operator. It inverts all the bits in an integer.
It's used so the right-most bit, which is set to 1 two's compliment signed integer...
April 28, 2015 at 1:49 am
There might be the odd special situation where this is a good idea and will work but from what I can see you need to rely on there being a...
April 20, 2015 at 6:35 am
If you make all the FK's ON DELETE CASCADE you can just delete small batches of rows from the Sample table. You would need indexes on the SampleID columns on...
July 8, 2014 at 11:31 am
Normally when an example is given using values A, B and C they should be taken as algebraic variables who's contents can change. More like this example:
DECLARE @a...
June 12, 2014 at 9:40 am
Alexander-449406 (6/6/2014)
June 6, 2014 at 8:45 am
This script may be ok to use on some occasions but if the entry of the parameters is from an external input, e.g. a web page, then it could be...
May 15, 2014 at 4:32 am
Viewing 15 posts - 2,416 through 2,430 (of 2,610 total)