Viewing 15 posts - 1,246 through 1,260 (of 1,957 total)
Any chance the plan xml is more than the limit on xml data in the grid results (default is 2MB i think)?
The other way I can get that behaviour is...
August 20, 2011 at 4:00 pm
terryshamir (8/18/2011)
One thing I did notice; I issued an update that...
August 18, 2011 at 6:10 am
Micah Ritchie (8/17/2011)
Awesome, that worked. I had already started down that route, but had left out the<DeviceInfo></DeviceInfo>
tags in the config section.
Excellent, and good to hear confirmation that...
August 18, 2011 at 4:47 am
No, as far as I know, it is still part of the transaction, so can be rolled back.
It certainly works for me anyway.
August 18, 2011 at 4:45 am
Those extra characters are the "Byte Order Mark" or "BOM" which Windows helpfully adds to a UTF-8 file even though it is not required and loads of applications can't handle...
August 17, 2011 at 5:03 pm
I wonder couldn't you use an AFTER trigger with a rollback? something like this:
CREATE trigger ForceOneRow on MyTable
AFTER INSERT
AS
-- Check for multiple rows, but only for a specific user
IF...
August 17, 2011 at 4:45 pm
ALTER trigger tr_UpdDtTime_spiffy
On My_Totally_Spiffy_Table
AFTER UPDATE
as
If (Update(Column1) OR
Update(Column2) OR
Update(Column3) OR
Update(Column4) )
UPDATE mtst
SET Update_DateTime = sysdatetime()
FROM My_Totally_Spiffy_Table AS mtst
JOIN inserted AS ins
ON ins.primary_key_column = mtst.primary_key_column
Replace "primary_key_column" with your primary key column name(s)...
July 28, 2011 at 5:13 pm
Try this:
select convert(datetime,stuff(stuff('201106101245',9,0,' '),12,0,':'),112)
July 28, 2011 at 4:55 pm
Here Doggy! Fetch!
use the "inserted" table to find the rows to update.
July 28, 2011 at 4:44 pm
yeah that was just to check you were testing! :hehe:
SELECT CEILING(@Value / 0.05)*0.05
July 27, 2011 at 5:53 pm
Just to be pedantic, if you have an index on that column, you would be better like this:
WHERE whenreceived < CONVERT(VARCHAR(8),DATEADD(DAY,-30,getdate()),112)
July 27, 2011 at 5:47 pm
select (1+CONVERT(INT,@number / 0.05))*0.05
July 27, 2011 at 5:37 pm
It really depends on the actual XML structure whether you can do what you want with FLWOR.
As I said, this is a simple example, you can do more complicated work...
July 26, 2011 at 5:07 am
jonegerton (7/25/2011)
I think the answer you propose is the best I've seen so far.
I like the suggestion of using FLWOR for this - may not be nicer but an interested...
July 25, 2011 at 4:35 pm
MuchLearnSoLittleTime (7/23/2011)
July 23, 2011 at 5:18 pm
Viewing 15 posts - 1,246 through 1,260 (of 1,957 total)