Viewing 15 posts - 3,676 through 3,690 (of 5,393 total)
Thanks for the feedback, very useful.
-- Gianluca Sartori
November 4, 2010 at 1:53 am
Kit G (11/3/2010)
-- Gianluca Sartori
November 3, 2010 at 8:32 am
Chris Morris-439714 (11/3/2010)
See here.
:-D:hehe:
LOL! I'm sure DATEDIFF can do nothing with them!
-- Gianluca Sartori
November 3, 2010 at 8:17 am
Roy Ernest (11/3/2010)
-- Gianluca Sartori
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...
-- Gianluca Sartori
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...
-- Gianluca Sartori
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/
-- Gianluca Sartori
November 3, 2010 at 7:08 am
There's DATEDIFF for that kind of thing:
http://msdn.microsoft.com/it-it/library/ms189794.aspx
-- Gianluca Sartori
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.
-- Gianluca Sartori
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,...
-- Gianluca Sartori
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...
-- Gianluca Sartori
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...
-- Gianluca Sartori
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...
-- Gianluca Sartori
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...
-- Gianluca Sartori
November 3, 2010 at 3:25 am
If you have the right permissions, you could create a temporary table on the target server, populate it with all the data you want to update and the use a...
-- Gianluca Sartori
November 3, 2010 at 3:09 am
Viewing 15 posts - 3,676 through 3,690 (of 5,393 total)