Viewing 15 posts - 5,566 through 5,580 (of 7,616 total)
Yes, you need separate physical drives.
Smaller, cheaper drives very often work better than a single, more expensive drive. For I/O, the number of spindles is more critical than the...
December 16, 2014 at 10:33 am
Yes, UNION in "A", "B", "C", ..., "Z" to the source table and then sort it, something like this:
SELECT name
FROM table_name
UNION ALL
SELECT v.letter
FROM (VALUES('A'),('B'),('C')) AS v(letter)
ORDER BY name
December 16, 2014 at 10:31 am
Is there any easy way to determine what FKs are "hanging" on the PK?
Yes, using view "sys.foreign_keys", and, if needed, "sys.foreign_key_columns" as well.
December 16, 2014 at 10:26 am
FYI:
WHERE sp.data_compression > 0
is more sargable then "<> 0"; avoid <> unless you have to use it.
December 15, 2014 at 5:03 pm
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
Viewing 15 posts - 5,566 through 5,580 (of 7,616 total)