Viewing 15 posts - 5,011 through 5,025 (of 5,588 total)
Gianluca Sartori (7/17/2009)
WayneS (7/16/2009)
I find this theory interesting, since the columns that are in the where clause are not in the tables that are producing scans.
It doesn't matter, the optimizer...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 17, 2009 at 2:19 am
You've given us almost no information with which to help you. What is the error message? What are the scripts? How are you trying to call them from sqlcmd? Since...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 17, 2009 at 2:15 am
Out of curiousity, what was your solution?
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 16, 2009 at 9:15 pm
Lamprey13 (7/16/2009)
On Instructor try...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 16, 2009 at 6:35 pm
Jack Corbett (7/16/2009)
I wonder if you might be better off breaking it down into some steps using temp tables.
Jack, I see we're thinking alike here...
You reference the transaction_update...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 16, 2009 at 8:48 am
Gianluca Sartori (7/16/2009)
The scan is due to the OR to include NULL values for processed_flag and reviewed. Using ISNULL or...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 16, 2009 at 8:30 am
info (7/13/2009)
Thank you for your help.I will try what you mentioned.
When you say "your text file", would that be my table name?
No, that means some text file...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 15, 2009 at 2:55 pm
Actually, it will number the existing rows in physical order starting at the seed, which you have specified to be 1.
Try this out for an example:
CREATE TABLE #tmp (TextData varchar(max))
BULK...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 13, 2009 at 9:02 pm
GSquared (7/13/2009)
Table variables are always estimated as if they were going to only have 1 row in them. That will give you a very false low on the cost,...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 13, 2009 at 5:59 pm
meo2 (7/13/2009)
I am trying to execute a paramtrized stored procedure, it works fine when @IncludeDeleted = 1
but it gives an error message when it is set to 0
"Msg 137,...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 13, 2009 at 5:41 pm
I ran across this.. maybe it applies?
http://support.microsoft.com/kb/933097
See bug# 50000874
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 11, 2009 at 10:14 pm
why weren't they destroyed when the stored proc completed on the 2nd July. Even if the proc bombed out with an error I would have thought the local temp table...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 11, 2009 at 7:08 pm
Lowell (7/11/2009)
stick in the master database, and because it starts with "sp_" and uses the catibility views, it will be...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 11, 2009 at 6:59 pm
text
Variable-length non-Unicode data in the code page of the server and with a maximum length of 2^31-1 (2,147,483,647) characters. When the server code page uses double-byte characters, the storage...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 10, 2009 at 9:19 pm
I'm curious as to the business case for doing this. It sounds to me like you need to have your data normalized better.;-)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 10, 2009 at 5:37 am
Viewing 15 posts - 5,011 through 5,025 (of 5,588 total)