Viewing 15 posts - 121 through 135 (of 192 total)
QA only stores the text of the query in the .sql file
December 12, 2006 at 10:08 am
ijaz raises a good point!
In case it's not what you're after (but it probably is and is a great solution), here is the answer to your question.
COALESCE(CAST(YourIntCol AS VARCHAR),'')...
December 12, 2006 at 9:47 am
I've come across this before and it was a surprising 'feature'
This is what I found on MSDN.
Whether SQL Server interprets an empty string as either a single space or as...
December 12, 2006 at 9:33 am
What if you formatted each output col like this:
COALESCE(yourCol, '') + ','
Or am I being overly simplistic? let me know
Thanks!
December 12, 2006 at 9:03 am
That's pretty likely, especially since you say it's using the index now.
December 12, 2006 at 9:00 am
My calc was a rough guess for 4.4M rows (I may have misread your earlier post).
Let me clarify this: when it was taking 4-8 seconds, how many rows was it...
December 11, 2006 at 5:33 pm
PS: Thank you for posting the DDL - All too often forgotten by posters
December 11, 2006 at 5:21 pm
4 to 8 seconds to return 4.4M rows isn't all that surprising (that's pretty fast, actually). Your query has to transfer huge amounts of data to the client (800-1100+MB if...
December 11, 2006 at 5:20 pm
Actually, that’s a good point Ronald. The original poster mentioned an acceptable range of numbers that is encapsulated in his UDF. It is possible—and therefore must be considered—that his...
December 11, 2006 at 5:07 pm
I’ll say this first:
I’ve reread the thread and, out of the three solutions, your solution actually seems to solve the problem by creating whole random numbers that are equally...
December 11, 2006 at 11:38 am
I agree that memory consideration is a very important ase are hundreds of other issues that must be considered when desiging a database or writing TSQL. Perhaps my statement was...
December 8, 2006 at 2:23 pm
It sounds like you're running SQL2005 Ninja. In 2005, I see pretty decent IO performance. Running the query in 2000 shows similar results, but scans go from 46 to 54...
December 8, 2006 at 1:07 pm
My bad PW. I missed your comment about using master. It might be worth editing your post to qualify your object names, in case anybody makes the same mistake I...
December 8, 2006 at 7:57 am
One more thought,
If you are cross joining system tables, as one poster suggested, rather than creating the values in memory then consider using the NOLOCK hint. Also be aware...
December 8, 2006 at 7:42 am
By chance, does your table have an identity column?
What is the schema of this table?
And, because people are going to ask, can you tell us a little more about this...
December 8, 2006 at 7:32 am
Viewing 15 posts - 121 through 135 (of 192 total)