Forum Replies Created

Viewing 15 posts - 556 through 570 (of 5,502 total)

  • RE: sp_send_dbmail and passing in a variable so that I can use HTML for body or attachment

    Please remove the last line

    @database_name = N'master', @flags = 0

    and the preceeding comma.

    I accidentally copied the last two parameter of the sp_add_jobstep parameter. I'm sorry.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: sp_send_dbmail and passing in a variable so that I can use HTML for body or attachment

    Ok, here's a first draft that might help you to get started.

    After a closer look to the code you've posted I don't think there's a need to use a parameter...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Are the posted questions getting worse?

    jcrawf02 (2/27/2012)


    Ah yes, those Detroit cacti are a real pain...

    I guess you're not referring to those on the ground, are you? 😀



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: sp_send_dbmail and passing in a variable so that I can use HTML for body or attachment

    Are you familiar with writing stored procedures?

    I would break the sproc into three parts:

    1) get the html table and assign it to @tableHTML

    2) depending on an input parameter create [TJC_Custom].[dbo].[tblDailyJobStatus]...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Are the posted questions getting worse?

    Evil Kraig F (2/27/2012)


    Jeff Moden (2/25/2012)


    It'll be so close that I can ride my unicycle to work without having to powder for chaffing. 😀

    This is a YouTube video just...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: sp_send_dbmail and passing in a variable so that I can use HTML for body or attachment

    Wouldn't it be easier to use a stored procedure that would create the html formatted table as a nvarchar(max) variable and call that sproc with @command?

    I, personally, wouldn't put that...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Pivot/Unpivot

    Did you try to use UNPIVOT with tab1 to get a table with whatever_symbol, whatever_description and whatever_value that can be used in a join on with your current query (or,...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Are the posted questions getting worse?

    So, is SaraGate a new name for RedGate? :unsure:

    And, thank you, Brandie. Now I know there's a key required. So the area seems to be locked. I'll keep asking questions...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Are the posted questions getting worse?

    Koen Verbeeck (2/27/2012)


    ..

    This one obviously is (on another site):

    interview questions

    ...

    I wonder how he managed to get so many questions. If he doesn't know any answer after 5 questions, I would've...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Help needed

    Your requirement looks like a wildcard search:

    WHERE (((CABWO_WO_DETAILS.TITLE) Like "*" & [Please Enter WO Title] &"*"));



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: CSV Parameter in proc

    @r.P.Rozema:

    I absolutely agree. Completely missed the fact that we have a "known scenario" for step 2.

    I'd go for the CHARINDEX approach then. Thank you for the correction!



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: CSV Parameter in proc

    Let me quote from my previous post:

    Step1: use the DelimitedSplit8K function referenced in my signature with delimiter ','

    Step2: using the result set, apply the DelimitedSplit8K function with delimiter '='



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Help in writing stored procedure

    Hi Richu,

    I'm not sure if this is what you're looking for (especially in terms of the SED nodes), but here's something to start with:

    SELECT

    '@name' = n.Name,

    '@desc' = n.Descr,

    'Address/@name'...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: SQL - Summarising data at different levels

    Did you try using SUM() OVER()?

    SUM(Num) OVER (PARTITION BY Age) AS Ga

    SUM(Num) OVER (PARTITION BY Age, D1) AS GaD1

    SUM(Num) OVER (PARTITION BY Age, D1, D2) AS GaD1D2



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: subquery returning multiple results

    Guessing again, it seems like the OP is quite happy with the answer received at msdn



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

Viewing 15 posts - 556 through 570 (of 5,502 total)