Viewing 15 posts - 50,791 through 50,805 (of 59,091 total)
Yes there is... you will need to build a BCP Format File, but it's worth it for the sheer speed of Bulk Insert...
The format file would look something like this...
8.0
4
1...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2008 at 11:20 pm
Hi Bill,
I'm a little confused by the data you've posted. Take a look at the URL I carry in my signature line... providing data and table info in that...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2008 at 8:43 pm
Simon_L (5/1/2008)
Jeff Moden (5/1/2008)
Ok... thanks... just trying to figure it all out... I think that's the last piece. I'll see what I can do tonight.thanks Jeff appreciated 🙂
Sorry, Simon......
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2008 at 8:41 pm
Not with 60 points in 79 visits, you haven't 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2008 at 8:37 pm
Sorry, my mistake... you don't need a CASE at all...
DECLARE @DemoTable TABLE (Amount VARCHAR(15))
INSERT INTO @DemoTable (Amount)
SELECT '$102.50' UNION ALL
SELECT '-$57.75'
SELECT REPLACE(STR(ABS(CAST(Amount AS MONEY)*100.0),8),' ','0')
...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2008 at 8:20 pm
Don't need a case statement to figure the zero's...
DECLARE @DemoTable TABLE (Amount VARCHAR(15))
INSERT INTO @DemoTable (Amount)
SELECT '$102.50' UNION ALL
SELECT '-$57.75'
SELECT REPLACE(STR(ABS(CAST(Amount AS MONEY)*100.0),8),' ','0')
...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2008 at 8:16 pm
You want projects to practice on? Why go anywhere else... stay on this forum and start answering questions. You won't find a better or more diverse set of...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2008 at 7:55 pm
So, turn it on... end of proc trace takes no overhead and beats the heck out of modifying 300+ procs 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2008 at 7:16 pm
Matt Miller (5/2/2008)
Grant Fritchey (5/2/2008)
I have to ask though, what's drowning breath exercise? While we do incorporate a lot...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2008 at 7:14 pm
DFalso, if you get hit by a bus tomorrow and your boss can't figure out your code, then you're proving exactly what I said... your code is not production quality...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2008 at 7:07 pm
poornima.s_pdi (5/1/2008)
Hi Jeff,Thanks a lot for ur reply.I learnt more from ur sites.very good snd useful forum...
Thank you for the feed back, Poornima... are you all set now?
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2008 at 6:54 pm
Funny, they work fine for me... they take me right to the post I wanted.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2008 at 6:52 pm
ebarsamian (5/2/2008)
CREATE TABLE #trustgoals
(ID int IDENTITY,
Trust varchar(100),
InitialReview varchar(100),
ReReview varchar(100),
TotalReview...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2008 at 6:49 pm
By the way, MDevore, very nice formatting you did on your code. Makes for a really easy read. Nicely done!
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2008 at 6:43 pm
mdevore (5/2/2008)
HOLY CRAP! :w00t::w00t::w00t::w00t: I rewrote the query based on Jeff's Running Total post, and it went from 8 hours to 6 seconds! Jeff, I bow down before you! THANKS!!!!!!!
Heh......
--Jeff Moden
Change is inevitable... Change for the better is not.
May 2, 2008 at 2:52 pm
Viewing 15 posts - 50,791 through 50,805 (of 59,091 total)