Viewing 15 posts - 46,651 through 46,665 (of 59,062 total)
Be very careful... There is nothing there that will keep 2 or more simultaneous calls to the same code from returning the same number.
December 11, 2008 at 5:02 am
Sure, but as others have already stated, a table source for this is the best way to go. The following code will solve the problem without a table, though....
December 10, 2008 at 9:42 pm
Post the OSQL command, please.
December 10, 2008 at 9:24 pm
EAV won't be a slow as you think. It'll process about 12 million rows in about 7 seconds.
December 10, 2008 at 9:05 pm
halifaxdal (12/10/2008)
Here is my task:
I have couple records marked as integrity = 1 or 2 or 3 or 4
I need to write a query to pull out all...
December 10, 2008 at 8:58 pm
Heh... I hate it when impatient people pull this crap... this is a double post... please, no more answers on this thread... go to the following, instead...
http://www.sqlservercentral.com/Forums/Post.aspx?SessionID=gjq2tn3letp4qj554vsxeizy
December 10, 2008 at 8:55 pm
mmiruru (12/10/2008)
This function worked perfectly for what I needed to do. Thank you very much for your help.
First, it's not nice to double post.
Second, the function may work perfectly for...
December 10, 2008 at 8:51 pm
Heh... to heck with all that... start answering posts on this forum with code! 😉
December 10, 2008 at 8:44 pm
I don't know how you'd do it in SSIS, but here's the T-SQL solution...
--===== Create a place to hold test data and populate it.
-- Note...
December 10, 2008 at 8:38 pm
Zeev Kazhdan (12/10/2008)
Instead of group by, you might think of OVER (PARTITION BY...)
Why?
December 10, 2008 at 8:24 pm
... and let me know if you still need a variable for the date...
And, never use INT for such a conversion because it rounds up to the next day for...
December 10, 2008 at 8:03 pm
Heh... "We don need no stinkin' cursors"... 😛 ... especially in SQL Server 2005. Look at all the difficulties you're having making one do the things you want....
December 10, 2008 at 7:57 pm
Ron, just an FYI... the code came through with no carriage returns.
And thanks for the awesome compliment! :blush:
December 10, 2008 at 6:48 pm
Yeah, but why do you want to format the code is SQL? Unless you're formatting to write to a file, then you should let the formatting be done in...
December 10, 2008 at 6:21 pm
Viewing 15 posts - 46,651 through 46,665 (of 59,062 total)