Forum Replies Created

Viewing 15 posts - 31 through 45 (of 51 total)

  • RE: Copy from a table then delete

    What about setting up a trigger to perform the delete on a one by one basis?  It would be transparent and would perform well...

    Also...I know that most people avoid using...

  • RE: converting to datetime data type

    Farrell... there is a 2 steps solution... i think this will work fine... at least it worked with my configuration...

    But I suggest that...

  • RE: Can this be done without using cursor?

    If # of items would vary in time, you'd never get it running with a single select statement.

    I think concatenation would be the rigth approach. Even if you need...

  • RE: why is the diference between a select and print output?

    Another adition...

    You can use SELECT statement in place of a PRINT statement to get some readable output OR in place of a SET statement to set variable values...

    The diferences are...

  • RE: about sysdepends...

    Thanks you both...

    Creation in order, is not impossible, but almost is... i'm not migrating a couple of stored procs... there are several hundreds stored and functions... not all of them...

  • RE: referential integrity for two foreign key based on same primary key

    Hi

    Would you post the error message??

    In advance, it's not a recommended idea to use cascaded deletes... it's better if you implement something like this using triggers...

    And... supose the next case:

    t01              ...

  • RE: How do I delete the corresponding row?

    Paula

    I think you can re arrange your SP to produce a temp table with records marked to delete, instead of deleting them directly (changinf DELETE... for a INSERT INTO #TempTable...

  • RE: Declaring a List

    Bryan

    If you read the precedent comments and besides them you still insist on hardcoding our list, since it is length variable you can use a temp. table to store its...

  • RE: Problem with DEFAULT in #TempTable

    Hi

    In your example, you are forcing srt1 and srt1nm to be NULL

    SELECT 12345 AS award_id, 0.95 AS sumpro, NULL AS srt1, NULL AS srt1nm, NULL AS srt2, NULL AS...

  • RE: Checksum & SProc

    This is very obvious I think, but you'll need to maintain an historic for each result set retrieved...

  • RE: Checksum & SProc

    Hi again...

    As i can see you recover just a few fields from each table in your stored proc... so... where are this values going?? I mean, what are you doing...

  • RE: Checksum & SProc

    I think the fields CreateDT and UpdateDt you've created are datetime, no?

    Why are them not reliable? Where do you update those fields?

    You will need just a bit field...

  • RE: URGENT... Help needed with xp_cmdShell

    Thanks.

    Changing option in EM/Mgmnt/server Agent/JobSystem worked ok!

     

     

     

  • RE: Selecting second to last record

    Just for tracing purposes...

    !!!

     

  • RE: Selecting second to last record

    Hi! Helen, Jim...

    Jim's solution will work (once rewrited in a correct way) but if you have more tha a few applicants, would be very expensive...(see below)

    try this... it would work...

Viewing 15 posts - 31 through 45 (of 51 total)