Forum Replies Created

Viewing 15 posts - 3,991 through 4,005 (of 5,502 total)

  • RE: Business Constraints

    If you need to figure out where you have different results in your two tables then just use the great sample code Paul provided, join it to your invoice header...



    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: Temp tables

    I'm not sure if I'm missing the point but to me it seems more like the question is:

    Why is the DROP TABLE statement not recognized?

    As far as I know 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: please help me to develop this query

    Why do you have MAY 2nd in your list instead of May 1st?

    What data format is your dt column?

    Please help us help 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: Manipulate Date Output

    Please see BOL (BooksOnline, the SQL Server help system usually installed toegther with SQL Server) section "CONVERT".



    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: Stored Procedure Problem Help!

    Like I wrote before:

    UPDATE targetTable

    Set Col=value

    FROM SourceTable

    INNER JOIN TargetTable ON JoinCondition.

    You don't need to go for each bottle separately... 😉

    So, forget about using a cursor for this task. It's not...



    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: Stored Procedure Problem Help!

    scott.atkins (3/12/2010)


    Hi Lowell,

    Regarding what i have just wrote, im trying to piece together a Cursor that allows me to retrieve information from one Table and update another table below 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: DBA Won't Allow Alter Table for Identity Insert

    Elliott W (3/12/2010)


    Also, I would really have to think about allowing users to run SSIS packages as themselves in a production environment. I'd have to see a heck of...



    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: DBA Won't Allow Alter Table for Identity Insert

    One option would be to set up a staging table you could use for your bulk load task and add a stored proc to insert those data into the final...



    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: Insert multiple values into table from IN

    You're welcome! 😀

    Going back to the picture you used:

    Sometimes it's faster to just cut the tree rather than just barking up... 😉



    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: Custom Message Queue or Service Broker

    I guess the answer is "it depends".

    But there's one thing I wouldn't do: using sp_send_dbmail directly within a trigger, since the mail sending process would become part of the insert...



    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: Insert multiple values into table from IN

    Don't think about a specific user. Do it set based:

    INSERT INTO [db].[dbo].[ProfileUsers]

    ([PROFILE],

    ...



    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: How to get all the months between 2 dates

    I'd rather use an inline table-valued function (ITVF)...

    CREATE FUNCTION [dbo].[GetMonths](@StartDate DATETIME, @EndDate DATETIME)

    RETURNS TABLE

    AS

    RETURN

    (

    SELECT DATEADD(mm,number,@StartDate) AS MonthValue

    FROM master.dbo.spt_values

    WHERE TYPE ='P'

    AND number<=DATEDIFF(mm,@StartDate,@EndDate)

    );



    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: Need better Query !!!!!!!!

    i have around 3000 "or cb.emailaddress1 like" filters on it

    It's not really a good design to hardcode all those or conditions. Create a separate table holding those values and join...



    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: Error with dynamic SQL

    Please see my answer posted on your parallel thread.

    ...

    http://www.sqlservercentral.com/Forums/FindPost881675.aspx



    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: Need help to insert XML Data into 2 tables

    Once you captured the id values from the first insert you need to join it to the secon xml statement. Something like the following:

    ;WITH cte AS

    (

    SELECT

    a.b.value('routeh[1]','smallint') troutehidx,

    ...



    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 - 3,991 through 4,005 (of 5,502 total)