Viewing 15 posts - 5,926 through 5,940 (of 7,614 total)
I'd definitely restore and use the backup before I deleted the original files.
But rather than detach and delete the files yourself, just do a DROP DATABASE, which would be a...
July 23, 2014 at 10:42 am
It seems you do indeed have the proper clustering key.
Next I'd look at the missing index stats from SQL. You may be able to cover a large % of...
July 23, 2014 at 10:37 am
Admingod (7/22/2014)
That means we are just altering the file size with following command.
ALTER DATABASE tempdb MODIFY...
July 23, 2014 at 8:23 am
You can adjust the tempdb file(s) size using the following commands. The changes will be in effect the next time SQL Server starts.
--EXEC tempdb.sys.sp_helpfile --to list the logical file...
July 22, 2014 at 2:07 pm
Btw, for date/datetime, don't use "<=" on the end date, use "<".
In this case, instead of:
[DATE] <= (DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE()),0)))
do this:
[DATE] < (DATEADD(mm, DATEDIFF(m,0,GETDATE()),0))
July 22, 2014 at 11:08 am
I have also done some stuff to improve performance by creating appropriate indexes and by changing the way queries are written.
I think that's one of the most value-added and differentiated...
July 22, 2014 at 10:34 am
Best format for SQL Server is 'YYYYMMDD', which is always interpreted correctly. Therefore, for literal dates, always use that format, do NOT do a CONVERT to a date/datetime type...
July 21, 2014 at 1:54 pm
Would have to see your typical queries to be sure, but it's extremely likely the clustering keys are backwards, i.e., they should be ( timestamp, ident ) rather than...
July 21, 2014 at 11:35 am
It depends.
Do you want to check just the column(s) they are actually trying to UPDATE? If so, you can just re-read them and insure they haven't changed...
July 18, 2014 at 2:31 pm
MyDoggieJessie (7/18/2014)
July 18, 2014 at 2:27 pm
halifaxdal (7/18/2014)
ScottPletcher (7/18/2014)
July 18, 2014 at 12:59 pm
One very specific no-no that I still see all the time:
Never use ISNULL() or NULLIF() in a WHERE clause or JOIN.
You should avoid any functions against columns whenever possible (because...
July 18, 2014 at 12:04 pm
Look at:
IS_MEMBER ()
as well.
I think you would need authority to impersonate the user to test their group membership(s).
July 18, 2014 at 11:41 am
Read books, articles, etc., from/by Itzik Ben-Gan. Excellent!
July 18, 2014 at 11:36 am
I put a "\" (backslash) immediately followed by "n" in my previous comments, after the \r, but the site must remove it as some type of special editing character.
Try setting...
July 18, 2014 at 11:24 am
Viewing 15 posts - 5,926 through 5,940 (of 7,614 total)