Viewing 15 posts - 50,776 through 50,790 (of 59,078 total)
No, the order is predictable especially if you supress parallelism with MAXDOP... please see the following article...
http://www.sqlservercentral.com/articles/Advanced+Querying/61716/
... and just say "NO" to cursors 😛
May 3, 2008 at 12:17 am
Heh... yeech... you can use a cursor, if you like... here's your's with the fix...
DECLARE @MyCmd VARCHAR(100)
declare @database nvarchar(128)
declare mycursor CURSOR LOCAL
FOR select name from master.dbo.sysdatabases where dbid>5
OPEN mycursor
fetch...
May 3, 2008 at 12:01 am
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...
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...
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......
May 2, 2008 at 8:41 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')
...
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')
...
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...
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 🙂
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...
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...
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?
May 2, 2008 at 6:54 pm
Funny, they work fine for me... they take me right to the post I wanted.
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...
May 2, 2008 at 6:49 pm
Viewing 15 posts - 50,776 through 50,790 (of 59,078 total)