Viewing 15 posts - 6,676 through 6,690 (of 49,571 total)
umarrizwan (1/28/2015)
SELECT @dbid = DB_ID(DB_NAME())
SELECT OBJECTNAME = OBJECT_NAME(I.OBJECT_ID),
INDEXNAME = I.NAME,
I.INDEX_ID
FROM SYS.INDEXES I
JOIN SYS.OBJECTS O
ON I.OBJECT_ID = O.OBJECT_ID
WHERE OBJECTPROPERTY(O.OBJECT_ID,'IsUserTable') = 1
AND I.INDEX_ID NOT IN (
SELECT S.INDEX_ID
FROM SYS.DM_DB_INDEX_USAGE_STATS S
WHERE S.OBJECT_ID...
January 29, 2015 at 1:42 am
Should be in the default trace, but that's only 5 files of 20MB, it gets overwritten quickly.
January 28, 2015 at 8:38 am
venoym (1/28/2015)
January 28, 2015 at 6:25 am
ChrisM@Work (1/28/2015)
SELECT
n,
[AllZero] = n%1,
[(n-1)%2]...
January 28, 2015 at 5:06 am
Bhushan Kulkarni (1/28/2015)
Optimized one..
USE [AdventureWorks2008]
GO
SELECT P.*
FROM
Person.Person P
WHERE
P.BusinessEntityId & 1 = 0
That doesn't return alternate rows, it returns rows with odd even values of BusinessEntityID. There's a...
January 28, 2015 at 4:51 am
Chris-475469 (1/28/2015)
To be honest I'm not sure. I'd have to check with the developers regarding that as to whether there is a specific reason.
I'd bet you lunch that they won't...
January 28, 2015 at 2:49 am
Any reason why all but one of those connections are running in the Serializable isolation level? Is that intended? Do you need the isolation that serializable provides?
January 28, 2015 at 2:20 am
Well, that's a nice example of database abuse....
Yes, that'll have multiple effects.
First you've broken the log chain of the database and lost the ability to do point in time restore.
The...
January 28, 2015 at 2:15 am
JarJar (1/28/2015)
How many instances per server?
In my opinion, 1 unless you have a good reason.
The only advantages of multiple instances over multiple DBs on an instance are memory partitioning,...
January 28, 2015 at 2:11 am
Why not just change the column f2 to not be nullable?
January 27, 2015 at 2:27 am
Err, yes it is possible.
Query splits the sentences into words (look for a split function, Delimited8ksplit is fastest). If large, insert into temp tables, then use INTERSECT and EXCEPT to...
January 27, 2015 at 2:12 am
Table definitions please, some sample data and what is it supposed to do?
January 26, 2015 at 10:06 am
Grant Fritchey (1/26/2015)
What it's like, at this exact moment, everywhere in Massachusetts.
Summer, glorious summer.
Might swing past my parent's place tomorrow for a swim, it's going to be a hot...
January 26, 2015 at 9:58 am
Backups do not take locks. Full stop. End of story.
Yes, in my experience backups do usually have some impact on the system. To be honest that's pretty unavoidable. It is,...
January 26, 2015 at 9:48 am
Starting with the basics. Backups do not take locks, so the timeouts can't be from there.
Before looking for a solution, I'd suggest identify the problem. Why do queries time out?...
January 26, 2015 at 9:23 am
Viewing 15 posts - 6,676 through 6,690 (of 49,571 total)