Viewing 15 posts - 5,566 through 5,580 (of 7,608 total)
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
can I created a snapshot of the prod database on the same server and run DBCC CHECKDB on the Snapshot DB?
Yes. It's easy, just like it sounds: create the...
December 8, 2014 at 2:38 pm
Please list all indexes on [BuildTable].
Also, shouldn't the SecondApply query have a condition based on FirstApply value, something like:
WHERE [BuildTable].[rownum] > [FirstApply].[rownum]
?
Edit: Added "WHERE" for clarity.
December 8, 2014 at 1:50 pm
My approach below. I added a phone_id to the phone#s in the tables so I could join and show the expected output in the same query as the original...
December 8, 2014 at 1:43 pm
chulheekim (12/4/2014)[/b
I don't understand why TLog backup file is so big and keeps growing. I thought it will gets smaller every time TLog backup is done.
Not necessarily. It depends...
December 4, 2014 at 3:37 pm
Viewing 15 posts - 5,566 through 5,580 (of 7,608 total)