Viewing 15 posts - 1,726 through 1,740 (of 1,920 total)
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
Bhuvnesh (4/19/2010)
Location id i generated by cursor...
this should have been mentioned earlier.i was only working with "state" column
Thats the problem when the requirement is unclear with no DDL...
April 19, 2010 at 7:36 am
Also i got a doubt here; Are there any values in the p_code, p_name columns that dont comply to the Rules of Identifiers?? [For rules of identifiers CLICK HERE...
April 19, 2010 at 6:50 am
Had u posted the necessary DDL, sample data and desired output, people would have replied and fixed your problem just at the wink of your eyes..:-)
Anyways, happy to have helped...
April 19, 2010 at 6:11 am
Viewing 15 posts - 1,726 through 1,740 (of 1,920 total)