Viewing 15 posts - 3,676 through 3,690 (of 5,394 total)
You will have to take plan caching and parameter sniffing into account.
See this great guide by MVP Erland Sommarskog:
http://www.sommarskog.se/dyn-search.html
EDIT: I'm unable to spell "URL"...
November 4, 2010 at 2:00 am
Thanks for the feedback, very useful.
November 4, 2010 at 1:53 am
Kit G (11/3/2010)
November 3, 2010 at 8:32 am
November 3, 2010 at 8:17 am
Roy Ernest (11/3/2010)
November 3, 2010 at 7:29 am
From BOL:
BACKUP
BACKUP DATABASE and BACKUP LOG permissions default to members of the sysadmin fixed server role and the db_owner and db_backupoperator fixed database roles
RESTORE
If the database being restored does not...
November 3, 2010 at 7:18 am
I think they implemented the intellisense to work with any kind of collation, so that it sorts field names with "binary" sort instead of using database collation settings.
I don't think...
November 3, 2010 at 7:13 am
Here's a great guide on the subject:
http://sqlinthewild.co.za/index.php/2010/09/14/one-wide-index-or-multiple-narrow-indexes/
November 3, 2010 at 7:08 am
There's DATEDIFF for that kind of thing:
November 3, 2010 at 7:07 am
Agreed. Since I don't have the definition for that UDF I didn't include it in the rewrite.
I suggest comparing the exec plans with and without the UDFs.
November 3, 2010 at 7:05 am
Scalar UDFs generally speaking don't handle well this kind of situation.
Consider rewriting it as an ITVF or code the update directly in the calling SQL:
UPDATE R
SET DataSourceID =
CASE UPPER(dbo.fnGetValueAndType(R.AssetType_Code,...
November 3, 2010 at 6:59 am
GilaMonster (11/3/2010)
BrainDonor (11/3/2010)
I wouldn't say that. There's still a week of voting and the down votes make changes happen quick. Someone can vote up another guy and vote me down...
November 3, 2010 at 5:21 am
ALZDBA (11/3/2010)
And if things don't work like I would expect, in RDP to a dev box :Whistling:
I tend to use virtual machines to play with new things. At least until...
November 3, 2010 at 4:35 am
I wouldn't change things to cursors, I would find offending rows with a query instead.
It's not very difficult to find, for instance, non-numeric values stored in a column that has...
November 3, 2010 at 4:10 am
It's a paradigm I don't like very much.
It seems to me that could easily transform things into complete chaos.
Who's responible for the projects? Who's the business owner? Who steers the...
November 3, 2010 at 3:25 am
Viewing 15 posts - 3,676 through 3,690 (of 5,394 total)