Forum Replies Created

Viewing 15 posts - 1,306 through 1,320 (of 1,472 total)

  • RE: DATEADD FUNCTION WITH TALLY TABLE GIVE OVERFLOW ERROR WITH MONTH

    john.steinbeck (10/22/2008)


    that is my exact code... running in a query... but it is a function where the begin and end dates will be passed in...

    Aha. That's the piece of...

  • RE: t-sql help/examples

    I'm not following what your question is then. Are you just looking for an example of how to do an insert with Dynamic SQL? Any chance you could...

  • RE: DATEADD FUNCTION WITH TALLY TABLE GIVE OVERFLOW ERROR WITH MONTH

    Is that exact code failing on your server, or is that a representation of what you're trying to do?

  • RE: DATEADD FUNCTION WITH TALLY TABLE GIVE OVERFLOW ERROR WITH MONTH

    That code executes properly on my box. It also executes without the where for all 30,000 lines of my current Tally Table. (Up to year 4508)

  • RE: t-sql help/examples

    You shouldn't need dynamic SQL to accomplish this goal.

    Take a look at the following:

    INSERT INTO NewTable(A,B,C,D,E,F,G,Total)

    SELECT A,B,C,D,E,F,G,SUM(A+C)

    FROM OldTable

    WHERE B = Something -- Optional Where clause

    GROUP BY A,B,C,D,E,F,G

  • RE: SQL COMPLEX QUERY - Urgent

    Can you copy the code directly from your stored procedure as you have it and paste it here? I get your expected result when I run my code against...

  • RE: Queries

    Your best approach would begin with posting sample table structure / data and showing us what you're trying to do(by posting your code), and explaining why it's not working and...

  • RE: SQL COMPLEX QUERY - Urgent

    But its failing for this cond

    e.x @language ='ru'

    Select 1,’TEST’,’English Testing’,’EN’ UNION ALL

    Select 2,’Science’,’Science Testing’,’EN’ UNION ALL

    Select 3,’History’,’History Testing’,’EN’ UNION ALL

    If you're running that against your "test" data......

  • RE: Need help on performance and integrity

    Dan Segalles (10/22/2008)


    But if you think you have time to fix the solution you have then that would be great.

    Unfortunately, I've hit a dead wall with the method I...

  • RE: Nested Select?

    Have you tried Lynn's solution?

  • RE: Trigger that checks another record

    At this point it would help to have some DDL and sample data for these tables. We are only going to be able to throw theory / keywords at...

  • RE: Need help on performance and integrity

    Sorry for not getting back with you Dan. Lost the primary hard drive in my dev machine yesterday, so it was an all day affair getting the thing back...

  • RE: Get Missing Data with Tally Table

    I went back and forth on even posting this as is, but maybe it will help you. This solution would build an all encompassing table that covered all currency...

  • RE: Nulls

    This is how I normally do it. I would probably do some additional checks on the data before performing a delete of this nature, but the concept is the...

  • RE: Urgent, this script runs in a view and takes too long ,

    Gonna need more information.

    How much data is "very large amount of data"? How many rows in each of the 4 tables you are working with?

    How long is "sholdnt take...

Viewing 15 posts - 1,306 through 1,320 (of 1,472 total)