Viewing 15 posts - 8,551 through 8,565 (of 8,760 total)
paulo.morgado (4/21/2014)
I have a query that evaluates into an XML document.
I want to read it with SqlCommand.ExecuteXmlReader.
But the...
April 21, 2014 at 6:48 am
Brandie Tarvin (4/21/2014)
Brandie Tarvin (4/21/2014)
How do I figure out what the problem is when I add a reference and it has the yellow warning next to it?
Nevermind. I'm in brain-dead...
April 21, 2014 at 6:36 am
PSB (4/21/2014)
SELECT DATEADD(hh,-5,dateadd(s, convert(bigint, 61353491400000) / 1000, convert(datetime, '1-1-1970 00:00:00')))
The above query throws an error :
Arithmetic overflow error converting...
April 21, 2014 at 6:10 am
Open the Script Task Editor and choose Edit Script. In the VSTA editor, select Project menu and Add Reference...
😎
April 21, 2014 at 5:48 am
Check out Using XML Data Types on technet
😎
April 21, 2014 at 5:14 am
Jeff Moden (4/20/2014)
April 21, 2014 at 4:57 am
Quick question, why are you using the nolock hint?
April 20, 2014 at 6:09 pm
There where two table value functions introduced in 2012, sys.dm_exec_describe_first_result_set and sys.dm_exec_describe_first_result_set_for_object, the former takes a query string as a parameter, the latter an object id. The result sets are...
April 20, 2014 at 5:14 pm
An alternative, without the STCrosses function, filtering using STIntersects.
😎
DECLARE @GEOLINE TABLE
(
GEOLINE_ID INT IDENTITY(1,1) NOT NULL
,GEOLINE_LINE GEOMETRY NOT NULL
);
INSERT INTO @GEOLINE (GEOLINE_LINE)
VALUES
(geometry::STGeomFromText('LINESTRING(0 1,...
April 20, 2014 at 6:34 am
If the search string is only one word/pattern then a recursive approach could be an option. Or maybe a combination of the two?
😎
DECLARE @searchString nvarchar(255)= 'first';
DECLARE @DISP_SIZE INT = 50;
...
April 20, 2014 at 5:25 am
PSB (4/17/2014)
Minutes
1397750400000 Minutes
23295840000 Hours
970660000 Days
2657522 Years
The first birthday of Homo habilis?
😎
April 20, 2014 at 4:24 am
Just for fun (with nothing better to do), a recursive and a window function approach 😎
Neither are perfect, more like a little twist....
A resource hungry recursion:
USE tempdb;
GO
IF EXISTS (SELECT *...
April 20, 2014 at 2:50 am
redcn2004 (4/19/2014)
when c0=1 and c1=1 and a0=b0 and a1=b1 then print
when c1=1 and a1=b1 then print
when c1=1 and c2=1 and a1=b1 and a2=b2 then print
....
...
April 19, 2014 at 4:27 am
Jacob Pressures (4/17/2014)
Hi, Thanks for the response.In the relationship between Payment and Payment_Type tables, aren't the crows feet backwards?
Yes, I missed the typo:w00t:
I see your design i think between Payment...
April 19, 2014 at 4:01 am
fregatepllada (4/17/2014)
Yes, I agree - but you could use a wrapper SP to catch an exception (RUSSIAN DOLLs model :-))
Boils down to the same thing, the exception rolls back the...
April 17, 2014 at 5:11 am
Viewing 15 posts - 8,551 through 8,565 (of 8,760 total)