Forum Replies Created

Viewing 15 posts - 1,726 through 1,740 (of 1,920 total)

  • RE: Problem with Database Mail in SQL Server 2005

    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

    ...

  • RE: Get email format

    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...

  • RE: Get email format

    removed the code as i dint get the requirement clearly..

  • RE: Indexing question

    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

    ...

  • RE: remove duplicate records, but keep most "current"

    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...

  • RE: remove duplicate records, but keep most "current"

    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...

  • RE: Pivoting name value pairs

    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 🙂

  • RE: Pivoting name value pairs

    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...

  • RE: Pivoting name value pairs

    Jeff Moden (4/19/2010)


    COldCoffee (4/19/2010)


    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...

  • RE: Pivoting name value pairs

    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,...

  • RE: works but getting error on sp_executesql

    lleemon13 (4/19/2010)


    That seems to be the trick.

    Here is the code with no errors. Should I still add the ISNULL check? I am not sure how you do...

  • RE: Pivoting name value pairs

    pYak (4/19/2010)


    Thanks COld

    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...

  • RE: Auto generating the id?

    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...

  • RE: works but getting error on sp_executesql

    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...

  • RE: Auto generating the id?

    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...

Viewing 15 posts - 1,726 through 1,740 (of 1,920 total)