Viewing 15 posts - 48,256 through 48,270 (of 59,099 total)
If the data is on a SAN, the SAN comes with software to make it easy to do this. Once it's setup (read the documentation that came with the...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 18, 2008 at 2:15 pm
Without a bit more info about the table and the reason for the update, best I can say is...
SET ROWCOUNT 100000
SELECT 1
WHILE @@ROWCOUNT > 0
BEGIN
.... do your update
END
SET ROWCOUNT 0
--Jeff Moden
Change is inevitable... Change for the better is not.
September 18, 2008 at 2:11 pm
Matt Miller (9/18/2008)
Jeff Moden (9/17/2008)
Mark (9/17/2008)
DECLARE @S VARCHAR(30)SET @S='99202 10060 99000 A6402'
SELECT LEN(@S)-LEN(REPLACE(@S,' ','')) AS NumberOfSpaces
THAT's the way to do it... no RBAR, no join! 🙂
Except...It will return the wrong...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 18, 2008 at 1:12 pm
Thanks!
--Jeff Moden
Change is inevitable... Change for the better is not.
September 17, 2008 at 9:51 pm
Heh... Got it. Thanks. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
September 17, 2008 at 9:50 pm
Yeaup... still RBAR... but the Tally table get's cached... While loop doesn't. 'Course, you knew that.
If you don't like the Thorn character (used it mostly for visual), Tab character...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 17, 2008 at 9:45 pm
The problem is the Cross-Apply's... they resolve to a single row in the execution plan. Query may run ok when running from QA because of cache and stats... likely...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 17, 2008 at 9:07 pm
karthikeyan (9/17/2008)
I hope i have explained enough. Inputs are welcome !
Also i wanted to know whether the way which i...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 17, 2008 at 8:58 pm
A bit more info is required... please see the link in my signature for faster, better, tested answers....
--Jeff Moden
Change is inevitable... Change for the better is not.
September 17, 2008 at 8:52 pm
Dunnor if it works in Integration Services, but I Use STUFF to quickly add a couple of dashes.
--===== Setup a simple test.
-- This is NOT...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 17, 2008 at 8:49 pm
When "rebuilding" and index, the index is NOT available for use. That is also true when using DBCC DBReIndex. They are, however, available if you use DBCC IndexDefrag.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 17, 2008 at 8:43 pm
What a cool thing to say, James. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
September 17, 2008 at 8:24 pm
Ummm... what are you calling "high consumption"? How big is the MDF and the LDF file for TempDB right now?
--Jeff Moden
Change is inevitable... Change for the better is not.
September 17, 2008 at 8:18 pm
See the following... it's a long article, but it's worth it.
Passing Parameters as (almost) 1, 2, and 3 Dimensional Arrays
http://www.sqlservercentral.com/articles/T-SQL/63003/
--Jeff Moden
Change is inevitable... Change for the better is not.
September 17, 2008 at 8:16 pm
Mark (9/17/2008)
DECLARE @S VARCHAR(30)SET @S='99202 10060 99000 A6402'
SELECT LEN(@S)-LEN(REPLACE(@S,' ','')) AS NumberOfSpaces
THAT's the way to do it... no RBAR, no join! 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
September 17, 2008 at 8:07 pm
Viewing 15 posts - 48,256 through 48,270 (of 59,099 total)