Viewing 15 posts - 16 through 30 (of 65 total)
Ok Thanks Alan. I do get the error when I comment out Recompile.
September 11, 2015 at 3:59 pm
I ran the code from Eirikur on 2014 instance and did not receive an error.
September 11, 2015 at 3:32 pm
Nice article. I tried it out for 2 puzzle. 1 "extreme" puzzle and looks like SQL has bug. Or I messed up the numbers but looked over it...
June 12, 2015 at 2:53 pm
This is good stuff! Thanks Luis for sharing.
March 26, 2015 at 8:13 pm
Hey Jeff,
I created a script that will store statistics of a stored procedure which has a parameter. This parameter has 9k distinct values that can be used.
So...
February 12, 2015 at 8:00 pm
Thank you Luis and Scott!
February 9, 2015 at 1:45 pm
What if you filter the records first before CROSS APPLY?
select
stockNew.stock_nbr_ky as stock_nbr_ky_new,
stockOld.stock_nbr AS from_stock_nbr,
stockOld.item_desc AS from_stock_desc,
stockOld.unit_price / stockOld.ui_conversion_factor AS from_stocking_ui_price,
stockNew.stock_nbr AS to_stock_nbr,
stockNew.item_desc AS to_stock_desc,
stockNew.unit_price / stockNew.ui_conversion_factor AS to_stocking_ui_price,
stockNew.pgm_id,
stockNew.lst_tran_dt_tm AS as_of_dt_tm,
stockNew.lst_updtd_by...
February 5, 2015 at 1:47 pm
Yes all these triggers does make it hard to debug. Change Data Capture could be worth looking into.
Also I noticed in the instead of trigger, the code is on/off...
October 8, 2014 at 1:06 pm
I think the output clause might work for you.
http://msdn.microsoft.com/en-us/library/ms177564.aspx"> http://msdn.microsoft.com/en-us/library/ms177564.aspx
Triggers
Columns returned from OUTPUT reflect the data as it is after the INSERT, UPDATE, or DELETE statement has...
October 7, 2014 at 9:46 pm
This might help get you started. I am no expert at XQuery and there are probably better ways to do this.
declare @xml xml
set @xml =
'<EventOne ID="55" >
<EventDate>09/22/1984</EventDate>
<PartyID2 InternalPartyID="2">90</PartyID2>
<PartyID2 InternalPartyID="4">100</PartyID2>
<PartyID...
October 3, 2014 at 8:50 pm
freddyism00 (9/12/2014)
I read part of the whitepaper, it said the data columns are stored...
September 12, 2014 at 6:47 pm
Sean Lange (8/27/2014)
GilaMonster (8/27/2014)
sqldriver (8/27/2014)
I used to use this. Not perfect by any stretch but got most of the junk out.Does it flag this as invalid?
http://gmailblog.blogspot.com/2008/03/2-hidden-ways-to-get-more-from-your.html
That is pretty...
August 27, 2014 at 8:24 pm
Yes actually that is behavior I have seen as well when an aggregate is used in the query.
In order to eliminate the NULL values you will need to group the...
August 26, 2014 at 7:55 pm
Not sure if this is what you are looking for. This is assuming OrderID is the correct order you want.
SELECT TaskID
,TaskDate
...
August 22, 2014 at 2:25 pm
You also might want to try casting every column in the query as VARCHAR. Then insert into a temp table/physical table to see if any value in a column...
July 22, 2014 at 11:06 pm
Viewing 15 posts - 16 through 30 (of 65 total)