Viewing 15 posts - 48,541 through 48,555 (of 59,099 total)
Heh... do you think that 150,000,000,000 is gonna fit in an INT in SQL Server? 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
August 30, 2008 at 4:14 pm
Does the Oracle table have the same number of rows in test and prod? Does the Oracle table in test and prod have the same indexes? When you...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 30, 2008 at 4:11 pm
Just a thought... why not keep the alpha and numeric portions separate and combine them only in a calculated column??? Then you wouldn't have to mess with all of...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 30, 2008 at 4:05 pm
Mike Mullen (8/29/2008)
Here is another solution that builds on the previous suggestions. This one handles a few more variations of the text data and the number to be added.
Yes, it...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 30, 2008 at 4:03 pm
sqluser (8/29/2008)
Hi,try the below one.
DECLARE @Text VARCHAR(16)
SET @Text = 'ABC222'
SELECT SUBSTRING(@Text,PATINDEX('%[0-9]%',@Text),LEN(@Text)) + 100
---
Doesn't return the "ABC" part... 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
August 30, 2008 at 3:54 pm
Here's the times on my box
P5 1.8 GHZ, twin 80GB IDE hard drives, 1GB Ram
208 Update
629 Cursor
--Jeff Moden
Change is inevitable... Change for the better is not.
August 30, 2008 at 3:23 pm
rbarryyoung (8/30/2008)
balbirsinghsodhi (8/29/2008)
String or binary data would be truncated.
but when I create...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 30, 2008 at 1:57 pm
raym (8/29/2008)
I've attached the the spreadsheet with the tables I want to bcp out
Your largest table contains 1.2 BILLION rows... the average output for BCP in the native format is...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 30, 2008 at 1:52 pm
I've gotta go with Gus on this one... even the seemingly unsurmountable task of doing a running total can be done at extremely high speeds, even in SQL Server 2000,...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 30, 2008 at 9:54 am
I gotto go with Jack on this one... use a Tally table instead of a While loop. In fact, here's an article on what a Tally table is and...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 30, 2008 at 9:48 am
Damned smiley faces... 🙂
Ok... here it is again without the smiley faces... it's not as "pretty", but it'll do...
/**********************************************************************************************************************
Purpose:
Returns a single result set similar to sp_Space used for...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 30, 2008 at 9:04 am
balbirsinghsodhi (8/29/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 30, 2008 at 8:56 am
You're parsing 200 million rows of data in 0.4 seconds or less? Gotta see that one... would you mind posting the code?
--Jeff Moden
Change is inevitable... Change for the better is not.
August 29, 2008 at 1:36 pm
All of the methods used where a correlated sub-query uses the < or <= relationship is doomed to performance failure. If you want a very high speed (1 million...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 29, 2008 at 10:59 am
Heh... if you're already working 10 or 12 hour days, a 4 day work week would be very welcome! 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
August 29, 2008 at 10:50 am
Viewing 15 posts - 48,541 through 48,555 (of 59,099 total)