Viewing 15 posts - 1,726 through 1,740 (of 1,923 total)
Jeff Moden (4/20/2010)
COldCoffee (4/20/2010)
April 21, 2010 at 5:41 am
Hi buddy.. you need to use Dynamic SQL for this requirement, IF YOU DONT WANT TO USE GIANLUCA'S IDEA..
I have coded a piece here that might help you with this...
April 21, 2010 at 2:29 am
Lester Vincent (4/21/2010)
I think you are, Mr. Cold Coffee!
WOW, THANKS ! :hehe:
And for details about the mails, you will have to play around with the msdb.dbo.sysmail_ tables mate..I...
April 21, 2010 at 1:51 am
Hey buddy, kind souls? 😀
Fine here is how u can do it capture the mail
Declare @MailItemID INT
EXEC @RetCode = msdb.dbo.sp_send_dbmail
...
April 21, 2010 at 12:37 am
Shilpa, this is such a biiiiiiiiggggg requirement i would say...:-D
but nonetheless not hard.. i had come up with a piece of code that might work for u.. kindly inform us...
April 21, 2010 at 12:12 am
removed the code as i dint get the requirement clearly..
April 20, 2010 at 10:56 pm
You can also Information_Schema.Column View to get information about all the columns in a database..
sample query
SELECT
TABLE_NAME
,COLUMN_NAME
,DATA_TYPE
,CHARACTER_MAXIMUM_LENGTH
,NUMERIC_PRECISION
,NUMERIC_SCALE
...
April 20, 2010 at 10:24 pm
CirquedeSQLeil (4/20/2010)
COldCoffee (4/20/2010)
CirquedeSQLeil (4/20/2010)
COldCoffee (4/17/2010)
Cheers!!C'est Pras!
ColdCoffee - in your sig line, Je ne suis pas au currant avec le mot 'Pras,' qu'est-ce que cela veut dire?
Jason, Il est la...
April 20, 2010 at 10:13 pm
CirquedeSQLeil (4/20/2010)
COldCoffee (4/17/2010)
Cheers!!C'est Pras!
ColdCoffee - in your sig line, Je ne suis pas au currant avec le mot 'Pras,' qu'est-ce que cela veut dire?
Jason, Il est la forme abrégée...
April 20, 2010 at 7:43 pm
Jeff, you really are a wonderful character.. and for paul and karthik, thanks for providing new views and test results.. u guys are simply great.. thanks all 🙂
April 20, 2010 at 10:10 am
Paul, i initially coded both pivot-join and nested-pivot solution which is exactly similar to yours, but i feared tat 2 pivots and a join willl over-load the cpu and i...
April 20, 2010 at 5:48 am
Jeff Moden (4/19/2010)
COldCoffee (4/19/2010)
April 19, 2010 at 11:17 am
Yes Karthik, i could also see a slight change in the execution plan, but that extra component dint cost the query.. so i guess the query performs equally with Jeff's,...
April 19, 2010 at 8:09 am
lleemon13 (4/19/2010)
Here is the code with no errors. Should I still add the ISNULL check? I am not sure how you do...
April 19, 2010 at 7:45 am
pYak (4/19/2010)
I love seeing how the same problem can be approached from different angles.
To tell the truth I tried to use the pivot operator with the data set
but couldn't...
April 19, 2010 at 7:37 am
Viewing 15 posts - 1,726 through 1,740 (of 1,923 total)