Viewing 15 posts - 21,796 through 21,810 (of 49,552 total)
Sorry, no time today to sit and work on this. It's not a quick thing to work out.
We have to delete the orphaned rows, delete the wrong ones and stuff...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 9, 2011 at 2:15 pm
Kiara (12/9/2011)
GilaMonster (12/9/2011)
It seemed to be, becauseSurname BETWEEN @Letter + '%' ...
and
Surname BETWEEN CAST(@Letter AS Varchar(50)) + '%' ...
produced different results. Didn't spend weeks investigating though...
Hm... that would imply...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 9, 2011 at 9:11 am
It seemed to be, because
Surname BETWEEN @Letter + '%' ...
and
Surname BETWEEN CAST(@Letter AS Varchar(50)) + '%' ...
produced different results. Didn't spend weeks investigating though...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 9, 2011 at 9:07 am
Cadavre (12/9/2011)
Shows that Kiara's assessment is correct, so is there another reason it fails?
CHAR(1). Concatenate '%' to a char(1) that holds 'A' and it gets silently dropped. So that resulted...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 9, 2011 at 8:57 am
In the key != guaranteed a seek. You can only seek on a left-based subset of the index key.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 9, 2011 at 8:39 am
You are, I assume, aware that shrinking TempDB without completely and totally quiescing the server can cause corruption that will require a restart to fix?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 9, 2011 at 8:35 am
Ninja's_RGR'us (12/9/2011)
SELECT * FROM #t WHERE a = 1 AND b = 2 AND c = 3--Ix Seek
Seek and secondary filter. It can't just seek.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 9, 2011 at 8:34 am
chauchs (12/9/2011)
Arfff !!! :doze:Thx, but this is not the answer that I was hoping
Sorry, but it's how it is
Does the value after the '_' represents something (in the name in...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 9, 2011 at 8:18 am
Kiara (12/9/2011)
Oh, I dunno... Maybe the fact that Zyl sorts *after* Z%? 😛 Been there, written that, laughed at myself afterwards... 🙂
No, that's actually not it...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 9, 2011 at 8:17 am
rmechaber (12/9/2011)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 9, 2011 at 8:02 am
Not directly.
You can see how much tempDB space is used by each connection via sys.dm_db_session_space_usage, but you can't like a temp table name back to a session_id.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 9, 2011 at 8:00 am
Steve Jones - SSC Editor (12/9/2011)
IceDread (12/9/2011)
This year however, my boss told me he was thinking about having me take...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 9, 2011 at 7:51 am
Brandie Tarvin (12/9/2011)
DUH!Code
Example:...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 9, 2011 at 7:45 am
prashant-507002 (12/9/2011)
I think there are some hidden command in sql server which Microsoft not make it public.
There are lots of hidden commands in SQL Server that Microsoft doesn't make public....
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 9, 2011 at 7:41 am
Cadavre (12/9/2011)
prashant-507002 (12/9/2011)
I think i have to post support ticket to microsoft for the same.
Who will tell you that you need to restore your database somewhere, then copy the data...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 9, 2011 at 7:28 am
Viewing 15 posts - 21,796 through 21,810 (of 49,552 total)