Viewing 15 posts - 1,471 through 1,485 (of 5,504 total)
It most certainly can be converted into a set based query (maybe using the divide'n'conquer approach).
We'd need table def and sample data for all tables involved in a ready to...
May 30, 2011 at 7:38 am
Please provide table def and sample data in a ready to use format as described in the first link in my signature together with your expected result.
I'm confident there's a...
May 30, 2011 at 2:11 am
subrata.bauri-1051938 (5/29/2011)
May 30, 2011 at 1:38 am
Here's a rather meaningless example of an unpivoted table based on your equally vague original table def. As you may notice, there are no rows with NULL values allowed. This...
May 29, 2011 at 3:25 pm
First a thought on your current strategy in general:
If you store your hourly trans dumps on the same server, do you mean you're using the same physical drive(s) as used...
May 29, 2011 at 12:39 pm
Why not using a unpivoted versiion of the table and store the type of date in a separate column instead of adding a column per type? I there's a need...
May 29, 2011 at 12:07 pm
Did you try to email it as an attached html file?
It seems like it's an issue with the embedded html data of sp_send_dbmail.
At least we exluded the query being a...
May 29, 2011 at 12:04 pm
I'm curious what business case you're trying to implement.
Would you please provide more details? What is the purpose of the trigger?
At a first glance it sounds like a "semi-optimal" table...
May 29, 2011 at 10:53 am
I copied your result into a html file and it looked just fine. Based on the data I cannot verify the result you see.
What do you use to view the...
May 29, 2011 at 10:48 am
Please remove the xml sample since it obviously contains personal information (you crrectly obfuscated it in your original screenshot).
I don't think it's the output of the original statement except the...
May 29, 2011 at 4:19 am
Replace
Select SubGroupType from dbo.subgroup
with
Select ISNULL(SubGroupType,0) from dbo.subgroup
I hope it's a rather small database and performance is not important...
May 29, 2011 at 4:06 am
T oanswer your original question: use ISNULL(NAME2,'0').
Please note that you should use consistent data types (not an integer to replace a varchar value).
But the much more important issue you should...
May 29, 2011 at 3:45 am
set identity_insert <tablename> on basically means you're providing the identity value within your INSERT statement (making sure there are no duplicate or NULL values).
With set identity_insert <tablename> off you don't...
May 29, 2011 at 3:17 am
I've seen the html tag before. No reason to repost it. 😉
I don't think you had "the same" output with and without the html tag...
My question was: what is the...
May 29, 2011 at 3:12 am
check sys.sql_expression_dependencies.
Also, Aaron Bertrands blog is a good reference.
May 29, 2011 at 2:50 am
Viewing 15 posts - 1,471 through 1,485 (of 5,504 total)