Viewing 15 posts - 3,481 through 3,495 (of 5,393 total)
The compiler doesn't like the doubel parenthesis around your @sql string:
DECLARE @CID BIGINT,@SQL NVARCHAR(2000),@Val CHAR(8),@ID INT,@SQL1 NVARCHAR(800),@C INT,
@Column_Val_R VARCHAR(200)
SET @CID = 123
SET @C = 2
SET @ID = 2
SET @sql =...
-- Gianluca Sartori
February 7, 2011 at 2:17 am
Glad I could help.
Thanks for the fun in coding it. 🙂
-- Gianluca Sartori
February 4, 2011 at 6:38 am
You're welcome.
Glad I could help.
-- Gianluca Sartori
February 4, 2011 at 3:08 am
Usually, when the optimizer decides to pick a parallel plan it's because it could not find something "smarter" to do.
Operators that fit well in a parallel plan are hash joins,...
-- Gianluca Sartori
February 4, 2011 at 2:17 am
Your question was really interesting, so I coded another solution that works with a more efficient plan, using UNPIVOT:
;WITH Incident_Events AS (
-- Create an event sequence...
-- Gianluca Sartori
February 4, 2011 at 2:04 am
jamessdba (2/3/2011)
please update
Sure! Just don't be so impatient... We are all volunteers on these forums and we answer questions during our free time.
To set the collation during setup, you...
-- Gianluca Sartori
February 4, 2011 at 1:37 am
jamesmario (2/3/2011)
-- Gianluca Sartori
February 4, 2011 at 12:58 am
OK, I think I got it.
I hope this is not overcomplicating the initial problem...
;WITH Incident_Events (Project, Event_Time, Event_Type, SumAs)
AS (
-- Create an event sequence
...
-- Gianluca Sartori
February 3, 2011 at 10:32 am
DBA_Dom (2/3/2011)
-- Gianluca Sartori
February 3, 2011 at 10:11 am
When posting a question such as this one, you should provide:
1) A script to create a test table to hold sample data
2) A script to insert some sample data in...
-- Gianluca Sartori
February 3, 2011 at 4:11 am
Unfortunately there's no built-in "last updated" property for table data, you will have to calculate it from table data itself.
You could create a dynamic sql to check all the tables...
-- Gianluca Sartori
February 3, 2011 at 2:46 am
Yet another troll. If you don't feed them, they starve and disappear.
-- Gianluca Sartori
February 3, 2011 at 1:04 am
It could definiely be a different case, but this is the issue we were experiencing:
http://support.microsoft.com/kb/973667/en-us
I hope this helps in your scenario as well.
Gianluca
-- Gianluca Sartori
February 2, 2011 at 2:05 am
GilaMonster (2/2/2011)
Google terms - Fire_Triggers...
-- Gianluca Sartori
February 2, 2011 at 2:01 am
Viewing 15 posts - 3,481 through 3,495 (of 5,393 total)