Viewing 15 posts - 8,101 through 8,115 (of 8,760 total)
Quick thought, think FOR XML PATH with TYPE is better suited for this than EXPLICIT.
😎
June 3, 2014 at 1:04 pm
muthyala_51 (6/3/2014)
Eirikur Eiriksson (6/3/2014)
muthyala_51 (6/3/2014)
-- This security patch is released on Feb 2012 before of the SQL Server 2008 R2 SP2(june 2012). DO i...
June 3, 2014 at 12:31 pm
muthyala_51 (6/3/2014)
-- This security patch is released on Feb 2012 before of the SQL Server 2008 R2 SP2(june 2012). DO i need to still...
June 3, 2014 at 11:32 am
Lynn Pettis (6/3/2014)
Eirikur Eiriksson (5/30/2014)
😎
create table #sampledata
(
userId int,
BaseYear int,
...
June 3, 2014 at 10:57 am
gbritton1 (6/3/2014)
;with xmlnamespaces(DEFAULT 'http://tempuri.org/Ultimate')
select ex.xml.query('
for $x in /Entity
where $x/Person/Last_Name = "Hillier"
...
June 3, 2014 at 7:31 am
FunkyDexter (6/3/2014)
June 3, 2014 at 1:56 am
tlrsekar 23727 (6/3/2014)
As of now order is not my concern, it can be of any order
You could use modulus/remainder of the number
😎
;WITH TN(N) AS (SELECT N FROM (VALUES (NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL)) AS...
June 3, 2014 at 1:08 am
Tania Mofflin (6/3/2014)
Msg 8114, Level 16, State 5, Line 1
Error converting data type varchar to numeric.
Seems to be an issue with how...
June 3, 2014 at 1:02 am
Jeff Moden (6/2/2014)
Unless this was an accidental duplication of data, there's no way that I'd do this. You're destroying historical data.
Second that but then again that's pondering on the...
June 3, 2014 at 12:43 am
Thank you Andy for a good question.
Quite certain I checked the right answer but still came as wrong. Either a bug or lack of industrial strength tanker sized espresso in...
June 2, 2014 at 11:13 pm
This should get you started. In order to produce a complete answer, a order must be specified for the set, as it is, it is not possible. A hint for...
June 2, 2014 at 10:06 pm
The Dixie Flatline (6/2/2014)
Eirikur Eiriksson (5/29/2014)
I have found that one should generally (as much as I dislike generalization) avoid AUTO_GRID.😎
Would you care to elaborate why?
Using the automatic settings for the...
June 2, 2014 at 9:33 pm
Not without dissecting the code as only CLR procedure parameter defaults are listed in sys.parameters. More can be found here http://connect.microsoft.com/SQL/feedback/ViewFeedback.aspx?FeedbackID=234143%5B/b].
😎
June 2, 2014 at 9:08 pm
vasuarjula (6/2/2014)
I have a procedure (a) where i call another procedure (b) passing @message as a parameter to procedure B.
Ex:
Create procedure a
as
Begin
declare @prevyear
exec b @message = 'avvasdva' + cast(@prevyear as...
June 2, 2014 at 1:05 pm
Is something like this what you are looking for?
😎
USE tempdb;
GO
;WITH XMLNAMESPACES (DEFAULT 'http://tempuri.org/Ultimate')
,XML_DATA AS
(
SELECT
EX.ID
...
June 2, 2014 at 12:22 pm
Viewing 15 posts - 8,101 through 8,115 (of 8,760 total)