Viewing 15 posts - 17,806 through 17,820 (of 49,552 total)
chaithu559 (7/4/2012)
Thank you very much for your reply. One more thing i wanted to know...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 5, 2012 at 4:39 am
christophe.bernard 47659 (7/5/2012)
the reason that they don't like the test IF in a stored procedure is due to the performance
Edit: Yes, they can in some cases (well, not the IF,...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 5, 2012 at 4:37 am
Probably nothing.
That view (which is deprecated) just shows the total CPU used by running processes.
Is there a problem?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 4, 2012 at 2:26 pm
Why don't you test it and find out? Likely you'll remember it far better than if someone just gives you the answer.
CREATE FUNCTION TestingDataTypes (@Blah INT)
RETURNS INT
AS
BEGIN
RETURN @Blah
END
GO
SELECT dbo.TestingDataTypes(1.1)
GO
SELECT...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 4, 2012 at 2:20 pm
What exactly do you mean?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 4, 2012 at 2:16 pm
SQL doesn't have parameterised views. Closest would be an inline table-valued function.
If it did exist, it would be a view to which you can pass parameters:
CREATE VIEW ParameterisedView
AS
SELECT * FROM...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 4, 2012 at 2:16 pm
Maybe take a read through these.
http://www.sqlservercentral.com/articles/Indexing/68439/
http://www.sqlservercentral.com/articles/Indexing/68563/
http://www.sqlservercentral.com/articles/Indexing/68636/
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 4, 2012 at 2:15 pm
And if you do need to take ad-hoc full backups, take them WITH COPY_ONLY, that way they don't mess with the differential backups
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 4, 2012 at 1:12 pm
codebyo (7/4/2012)
Shouldn't this be:"Take either a full AND differential backup and then a log backup"?
No. You;ve switched the DB to simple recovery and back to full. Unless there has never...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 4, 2012 at 11:30 am
Look up UPDATE STATISTICS in Books Online.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 4, 2012 at 10:41 am
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 4, 2012 at 9:28 am
SQL doesn't have incremental backups, it has differential (yes, they are different)
Main use would be to speed up restores when you can't take full backups every day (due to available...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 4, 2012 at 9:21 am
Any form of monitoring adds load. Unless you pull huge numbers of events or very large actions, extended events are very light weight. Trace is also a fairly low overhead...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 4, 2012 at 8:55 am
christophe.bernard 47659 (7/4/2012)
Ok tanks for your reply but my colleague don't like the test if on stored procedure they prefere AND / OR 🙂
I've done this :
declare @tbl table...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 4, 2012 at 8:45 am
Won't help. It's a logical error (page with garbage on it), so the garbage will be included in the backup and restored on the other server.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 4, 2012 at 8:43 am
Viewing 15 posts - 17,806 through 17,820 (of 49,552 total)