Viewing 15 posts - 3,721 through 3,735 (of 5,588 total)
In this case, all you need to do is reindex the clustered index - this will force the nonclustered indexes to be reindexed, since they depend on that.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 4, 2010 at 7:27 am
Just remember that using a function on a field in the left-hand side of an expression will mean that you can't utilize an index to do a seek....
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 4, 2010 at 7:15 am
ColdCoffee (8/3/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 4, 2010 at 7:10 am
ColdCoffee (8/3/2010)
WayneS (8/3/2010)
ColdCoffee (8/2/2010)
Also i remember a thread...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 3, 2010 at 8:45 pm
Matthew,
Realize that a function like this is going to be called for every record in the result set. It would probably be better to add a column to the output...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 3, 2010 at 8:36 pm
Do the multiple updates without the cursor.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 3, 2010 at 8:30 pm
I think you're close. You might want to consider this...
Create a small table of the month # and starting/ending dates:
IF OBJECT_ID('tempdb..#TestTable') IS NOT NULL DROP TABLE #TestTable;
CREATE TABLE #TestTable (MonthNbr...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 3, 2010 at 8:19 pm
bt, this looks promising. I don't really care about the speed - it's a one-off thing.
I just need to identify all the code with dynamic sql.
I'll try it out tomorrow,...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 3, 2010 at 5:29 pm
Well, since Steve asked for opinions on one topic, let me broach another topic.
What do you'll think about this[/url]? Is there a valid point? Are the people screaming about it...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 3, 2010 at 11:21 am
Grant Fritchey (8/3/2010)
Greg Edwards-268690 (8/3/2010)
So totally off topic -Hope those in the northern regions have clear skies for the possilbe light show tonight.
Greg E
Ditto. We'll be out at a Scout...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 3, 2010 at 11:19 am
Stefan Krzywicki (8/3/2010)
WayneS (8/3/2010)
Steve Jones - Editor (8/3/2010)
Since this is the water cooler, any comments?http://abcnews.go.com/US/ground-mosque-plan-stirs-controversy/story?id=10670631
There's a quote in this article that sums up my feelings:
"On the one hand, stopping...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 3, 2010 at 9:18 am
Steve Jones - Editor (8/3/2010)
Since this is the water cooler, any comments?http://abcnews.go.com/US/ground-mosque-plan-stirs-controversy/story?id=10670631
There's a quote in this article that sums up my feelings:
"On the one hand, stopping a mosque from...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 3, 2010 at 8:38 am
It's could be data loaded in from an excel spreadsheet. Tabs in excel need to be referenced with a trailing $.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 3, 2010 at 8:29 am
Ian,
The SQL Logs show each time that SQL started - you could parse that. And assuming a normal shutdown, that also is recorded, so you could parse the logs for...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 3, 2010 at 7:08 am
tom 29037 (8/2/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 3, 2010 at 6:58 am
Viewing 15 posts - 3,721 through 3,735 (of 5,588 total)