Regd Query

  • By the way, the execution time on that query, including creating the table variable with the tally numbers, was less than 1 second.

    Steve

    (aka smunson)

    :):):)

    Steve (aka sgmunson) 🙂 🙂 🙂
    Rent Servers for Income (picks and shovels strategy)

  • I just copied the code you posted and ran it and got the expected results. Are you getting any errors?

    Can you run the following and verify the results:

    SELECT COUNT(*) FROM dbo.Tally;

    Jeffrey Williams
    “We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”

    ― Charles R. Swindoll

    How to post questions to get better answers faster
    Managing Transaction Logs

  • I HAVENT GOT ANY ERROR BUT IAM NOT GETTING ANY OUTPUT IT JUST SHOWS NULL NOTHING AND WHEN I RUN COUNT(*) I GOT AS 0

    Thanks,
    Chinna

    Its the Journey which gives you Happiness not the Destination-- Dan Millman

  • STEVE ---IS N HERE THE CHARACTER COUNT IN THAT STRING--

    SELECT SUBSTRING(@Parameter,N+1,CHARINDEX(',',@Parameter,N+1)-N-1)

    FROM @TALLY

    Thanks,
    Chinna

    Its the Journey which gives you Happiness not the Destination-- Dan Millman

  • Sounds like you haven't populated your tally table. Try my code using the table variable and see if that helps you. You can adapt it to populate dbo.Tally.

    Steve

    (aka smunson)

    :):):)

    Steve (aka sgmunson) 🙂 🙂 🙂
    Rent Servers for Income (picks and shovels strategy)

  • YES YOU WERE RIGHT I HAVENT POPULATED THE TABLE...GOT IT THKZ STEVE...

    Thanks,
    Chinna

    Its the Journey which gives you Happiness not the Destination-- Dan Millman

Viewing 6 posts - 16 through 20 (of 20 total)

You must be logged in to reply to this topic. Login to reply