Forum Replies Created

Viewing 15 posts - 11,206 through 11,220 (of 15,376 total)

  • RE: BEGIN TRY/CATCH in a MERGE Statment with OUTPUT to capture Record Counts

    Welsh Corgi (7/25/2012)


    GSquared (7/25/2012)


    Modify your error proc (usp_GetErrorInfo) so that it inserts into a table, then you're good to go.

    I did that and it worked fine.

    I have a very basic...

  • RE: trigger

    All this work and effort to store a piece of data that should be retrieved real time using a view instead. 😛

    I would comment on the table structure a little...

  • RE: Delete and insert Sproc

    That assumption is entirely to generic to have any basis on fact. Why would a delete and an insert cause a recompile? There is nothing about having two statements in...

  • RE: Script generation

    byecoliz (7/25/2012)


    Hi Sean,

    The tool is a modeling tool that gives DDL scripts as a result. so apparently it gives the DDL of one platform.

    with T-SQL you can develop...

  • RE: how long it takes to retrieve top 10000 records

    Phil Parkin (7/25/2012)


    Nice article - thanks for the link. When I read absolutes (like 'meaningless') my brain subconsciously challenges them. I still think it was the wrong word 🙂

    Maybe it...

  • RE: Script generation

    byecoliz (7/25/2012)


    I am working with a tool that generates DDL structures for tables,procedures,functions. Apparently these are generated based on one platform MS SQL 2005. My task is to change the...

  • RE: trigger

    ScottPletcher (7/25/2012)


    I think the code below should at least be close to what you need (hopefully very close :-)):

    ALTER TRIGGER UPDate_PONumber

    ON dbo.PurchaseOrderDetail

    AFTER INSERT, UPDATE, DELETE

    AS

    UPDATE PON

    SET SubTotal = PO_Total.SubTotal

    FROM dbo.PONumber...

  • RE: trigger

    edward_hall76 (7/25/2012)


    He is the information in the database.

    On a view will it update the PONumber table everytime something is updated or added to the PurhcaseOrderDetail

    I don't understand your response here....

  • RE: CASE STATEMENT in WHERE CLAUSE

    This post is over 3 years old and the OP has not logged into SSC since they created the original post. Move along...nothing to see here.

  • RE: Are the posted questions getting worse?

    Stefan Krzywicki (7/25/2012)


    Lynn Pettis (7/25/2012)


    Jeff Moden (7/25/2012)


    Stefan Krzywicki (7/25/2012)


    I didn't because I didn't want to pile on and distract from the OP's question. Enough that a few people are doing...

  • RE: trigger

    edward_hall76 (7/24/2012)


    Here is the script for the database.

    Holy cow. We don't need the entire database just the stuff relevant to your issue. In the future it would probably be in...

  • RE: Calculate Past Due Principal and Past Due Interest Based on Due Dates

    OK so you tried to post some code but you missed the mark. The code you posted is full of syntax errors and variables not declared. There are columns referenced...

  • RE: Rename column

    Nice straight forward question. Keep them coming Pradeep.

  • RE: How to find out total number of immediate children of a parent in HierarchyID

    You are welcome. Glad you were able to figure out a solution.

  • RE: BEGIN TRY/CATCH in a MERGE Statment with OUTPUT to capture Record Counts

    Matt Miller (#4) (7/24/2012)


    Sean Lange (7/24/2012)


    True and good reminder. You could however do something like this:

    update blah

    set mycol='SomeNewValue'

    output @@rowcount

    (snipped for brevity)

    Neat idea, but unfortunately it...

Viewing 15 posts - 11,206 through 11,220 (of 15,376 total)