Viewing 15 posts - 5,551 through 5,565 (of 7,597 total)
Maybe you could DISABLE the indexes if they are truly never used?
December 15, 2014 at 5:01 pm
If the server has only 2GB, then you'll have to limit SQL to 1.5GB. Otherwise it will use it all, causing serious memory problems. Yes, you almost certainly...
December 15, 2014 at 4:57 pm
If you want to load variables, then as below. If you just want to list each month, remove the "@Jan = " and put " AS Jan" after the...
December 15, 2014 at 4:49 pm
You can give them separate permissions in msdb to deal with jobs.
I can't imagine why you would want people arbitrarily creating maintenance plans, but you should be able to add...
December 15, 2014 at 10:12 am
Brandie Tarvin (12/12/2014)
ramana3327 (12/11/2014)
SA account is already disabled. so I need to give public server role and map as dbowner for remaining databases right?
Yes. That will prevent them from accessing...
December 12, 2014 at 8:29 am
Jeff Moden (12/12/2014)
ramana3327 (12/11/2014)
If database current size is about 350GB and growth is about 70GB/month. How do you calcaulate the D:/Drive free space and L:/Drive free...
December 12, 2014 at 8:27 am
Evil Kraig F (12/11/2014)
SELECT CASE
WHEN @optional_letter = ' ' AND EXISTS(SELECT 1 FROM dbo.Test WHERE letter...
December 12, 2014 at 8:21 am
Emil Bialobrzeski (12/12/2014)
ScottPletcher (12/11/2014)
SELECT CASE
WHEN @optional_letter = ' ' AND EXISTS(SELECT 1 FROM dbo.Test WHERE letter =...
December 12, 2014 at 8:21 am
EXEC sp_helpdb '<your_db_name>'
December 11, 2014 at 4:03 pm
Evil Kraig F (12/11/2014)
@scott: You missed a space in the first condition, near the end. Otherwise, that's a form of how I've done this in the past. However,...
December 11, 2014 at 4:01 pm
Here's a simplified function with sample testing data and results:
IF OBJECT_ID('dbo.Test') IS NOT NULL
DROP TABLE dbo.Test
CREATE TABLE dbo.Test (letter char(1), number int, optional_letter char(1))
GO
IF OBJECT_ID('dbo.Test__FN_optional_letter') IS...
December 11, 2014 at 3:11 pm
Your initial query was impossible:
WHERE (table.FID IN (359890) OR
(table.FID IN (N'19508e3b-0595-41cf-88f2-c13141e0bc40')
but the query plan cleared it up: the second column is a different column from the first one.
December 11, 2014 at 2:50 pm
Don't forget the other side of the issue.
Have you compressed large indexes when useful?
Have you reviewed that you have the best clustered index on each table? After that, have...
December 11, 2014 at 2:44 pm
ramana3327 (12/11/2014)
We have a team working as DBA (Offshore). We have 5 user databases. One database has the secure data and doesn't to reveal the data...
December 11, 2014 at 2:41 pm
You could build a concatenated string containing all the executions, then EXEC() that string. The issue would be if errors occurred during processing.
December 8, 2014 at 2:39 pm
Viewing 15 posts - 5,551 through 5,565 (of 7,597 total)