Viewing 15 posts - 6,826 through 6,840 (of 18,926 total)
mister.magoo (4/13/2011)
Ninja's_RGR'us (4/13/2011)
I guess I wasn't clear. It takes both. Prepending alone is not enough, it takes EVERYTHING varchar. Even a single nchar in there screws it...
April 13, 2011 at 7:05 am
Posting final code... prepending with "correct" order of the tables...
DECLARE @Exec VARCHAR(MAX)
SELECT @Exec = ''
SELECT @Exec = 'UPDATE STATISTICS dbo.[' + CONVERT(VARCHAR(200),name) + '] WITH FULLSCAN ; ' +...
April 13, 2011 at 6:54 am
mister.magoo (4/13/2011)
Ninja's_RGR'us (4/13/2011)
mister.magoo (4/13/2011)
I...
April 13, 2011 at 6:49 am
mister.magoo (4/13/2011)
I am using...
April 13, 2011 at 6:41 am
Genius!!!
Exec size : 670535
SQL Server parse and compile time:
CPU time = 0 ms, elapsed time = 0 ms.
SQL Server Execution Times:
CPU time =...
April 13, 2011 at 6:33 am
Brandie Tarvin (4/13/2011)
Ninja's_RGR'us (4/13/2011)
This thread is not how can I make this work, it's about why the heck does this concat take so long.
Ninja, I only asked because I thought...
April 13, 2011 at 5:24 am
mister.magoo (4/12/2011)
April 13, 2011 at 5:23 am
This thread is not how can I make this work, it's about why the heck does this concat take so long.
So in that respect I think we can close it.
Thanks...
April 13, 2011 at 5:19 am
Just run the query that uses msdb... I think it'll work but I'm not sure and I can't test.
April 13, 2011 at 3:14 am
Oliiii (4/13/2011)
GilaMonster (4/13/2011)
File size includes free space in the DB. Backup size does not.
It's trivial to get the file size without free space.
You do need the free space to plan...
April 13, 2011 at 2:53 am
mister.magoo (4/13/2011)
Any reason why you don't use this?Exec sp_MSForEachTable 'Update Statistics ''?'' with FULLSCAN'
Never been my first choice since it's "unsupported". I like to make code that'll work...
April 13, 2011 at 2:49 am
mister.magoo (4/12/2011)
April 12, 2011 at 7:06 pm
Jeff Moden (4/12/2011)
Ninja's_RGR'us (4/12/2011)
All I know for sure at this...
April 12, 2011 at 5:41 pm
Thank you all. I'm off site and I'll have to wait tomorrow to test Jeff's version of the code. Since "my" for xml was running in 16 ms...
April 12, 2011 at 5:37 pm
Just for the sake of readability
DECLARE @SelectedEntity as int
DECLARE @Region AS nvarchar(4000)
DECLARE @Country AS nvarchar(4000)
set @Region = 'A4037F-1067-DF11-84EF-0017A4776866'
set @Country = '577A9867-1967-DF11-84EF-0017A4776866,577A9867-1967-DF11-84EF-0017A4776866'
SET @SelectedEntity = 1
DECLARE @SQLFields1 AS varchar(8000)
DECLARE @SQLFilter1 AS varchar(8000)
set...
April 12, 2011 at 11:59 am
Viewing 15 posts - 6,826 through 6,840 (of 18,926 total)