Viewing 15 posts - 14,401 through 14,415 (of 49,552 total)
If you use the detailed option, index physical stats shows you all levels of the indexes, so that'll be leaf and non-leaf (root if there's only 2). You can see...
February 6, 2013 at 1:02 am
That one is trivial to fix fortunately
Take the DB into single user mode and run DBCC CheckDB with the repair_rebuild option.
Drive failure, probably not. Something wrong somewhere in the IO...
February 6, 2013 at 1:01 am
You can't switch to simple recovery with active database mirroring. You'll need to completely drop the database mirroring setup, then you can change recovery models. Recreating the mirror will require...
February 6, 2013 at 12:31 am
opc.three (2/5/2013)
SQLRNNR (2/5/2013)
sqlfriends (2/5/2013)
I read a tutorial and recommend this option should be enabled for all instances. Read and still a little confusing about when I should enable or...
February 6, 2013 at 12:02 am
nick.mcdermaid (2/5/2013)
February 6, 2013 at 12:01 am
ALTER TABLE <table name> DROP CONSTRAINT <primary key name>
ALTER TABLE <table name> ALTER COLUMN <column name> <new data types>
ALTER TABLE <table name> ADD CONSTRAINT <primary key name> PRIMARY KEY (<columns...
February 5, 2013 at 11:59 pm
Do Not Shrink your log file to 1MB.
If you insist on shrinking, shrink to a sensible size.
As to whether that's an acceptable option, what's the data loss allowance on that...
February 5, 2013 at 2:37 pm
Cause Lynn left out some brackets
WITH BaseData AS (
SELECT
rn = ROW_NUMBER() OVER (PARTITION BY EMPLOYEE_ID ORDER BY ADMISSION_DTE DESC),
CONVERT (VARCHAR(9), EMPLOYEE_ID) AS...
February 5, 2013 at 1:54 pm
Replication has no dependency at all on recovery models.
February 5, 2013 at 1:51 pm
SQLRNNR (2/5/2013)
GilaMonster (2/5/2013)
SQLRNNR (2/5/2013)
February 5, 2013 at 1:50 pm
masoudk1990 (2/5/2013)
February 5, 2013 at 1:47 pm
SQLRNNR (2/5/2013)
February 5, 2013 at 12:54 pm
Is google down again?
http://msdn.microsoft.com/en-us/library/cc645587.aspx
http://blogs.msdn.com/b/timchapman/archive/2012/09/10/optimizing-ad-hoc-workloads.aspx
http://www.sqlskills.com/blogs/kimberly/plan-cache-and-optimizing-for-adhoc-workloads/
http://www.bradmcgehee.com/2011/04/do-you-enable-optimize-for-ad-hoc-workloads/
4 of the top 5 results from a google search for "optimize for ad-hoc workloads"
February 5, 2013 at 12:45 pm
In this particular case, since you want the two counts...
SELECT q1, q2 FROM
(SELECT Count(a.PK) as q1 FROM Table1 as a) t1,
(SELECT Count(b.PK) as q2 FROM Table2 as b) t2
Only...
February 5, 2013 at 12:41 pm
Distinct just removes complete duplicate rows (rows where all the columns you select are exactly the same)
What is that query supposed to return?
February 5, 2013 at 11:39 am
Viewing 15 posts - 14,401 through 14,415 (of 49,552 total)