Forum Replies Created

Viewing 15 posts - 991 through 1,005 (of 3,666 total)

  • RE: generate dynamic update statement

    oops



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Stored Procedure error need help

    Might be no column name for:

    A.EndDate' + @SELECTFINAL

    in:

    SET @SQLCMD = 'SELECT SUM(A.AmountGiven) AS AmountGiven , A.year(startdate), A.EndDate' + @SELECTFINAL + ' FROM (' + @SQLCMD + ') A...



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Combine data from historical table

    I'm not an expert in using CTEs, but I don't see how they would help here.



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Combine data from historical table

    mqbk (8/13/2014)


    I was hoping I could avoid a union but I guess it is unavoidable. Would a CTE be more effective?[/quote

    How would you use a CTE to accomplish this?



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Combine data from historical table

    What about:

    [Code]

    SELECT .... FROM Active_Table WHERE ......

    UNION ALL

    SELECT .... FROM Archive_Table WHERE ......

    [/Code]



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: select from 2 tables

    I think I found a way to make it work, but if you ask me, you seem to have a poor database design and a poor understanding of how the...



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: select from 2 tables

    Am I missing something here? There's only 1 record in ST that matches the value in the where clause so you will only get 1 value for Stock.

    The query...



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: select from 2 tables

    djj (8/13/2014)


    Sample table data would be of help

    Not much more we can do without the sample data and the query with query results for that sample data.



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: select from 2 tables

    carlos cachulo-318532 (8/13/2014)


    thanks for the quick reply, unfortenly the query you sent don´t return any result

    Did you replace the x's in the WHERE clause with a proper value?



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: How to consolidate all error messages to one email from a send email task?

    Great. Now hope it never generates an email. 🙂



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: How to consolidate all error messages to one email from a send email task?

    As I expected.

    Change Dts.Variables["CareAlertLoadError"].Value = Dts.Variables["ErrorDescription"];

    to Dts.Variables["CareAlertLoadError"].Value = Dts.Variables["ErrorDescription"].value;

    You're trying to pass the whole variable object instead of just its value.



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: How to consolidate all error messages to one email from a send email task?

    Can you show me the code that attempts to assign the message to the variable?



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Index creation

    SQLRNNR (8/7/2014)


    Not sure which application you are referring to, but...

    If you were to be using an application such as Dynamix AX from MS, you either create the indexes from within...



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Are the posted questions getting worse?

    SQLRNNR (8/7/2014)


    GilaMonster (8/7/2014)


    Ok, good, I'm not the only one who would think 'blocking' long before thinking 'let me post this impossible situation on the forums'

    Oh blocking, yeah that must have...



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: How to consolidate all error messages to one email from a send email task?

    You can set restrictions on when it executes. What I've done before is check the length of the combined error messages. If the length was zero, then don't...



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

Viewing 15 posts - 991 through 1,005 (of 3,666 total)