Forum Replies Created

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

  • RE: Error Deploying Package to Server

    I finally got this error figured out. After searching, posting and Tweeting I solved the problem by uninstalling SQL 2005. I know this is not an option for some but...

  • RE: How to find the default database location

    Hummm. In my haste of trying to figure this out I missed the tree in spite of the forest. I forgot about that.

    I think this will be the better solution....

  • RE: How to find the default database location

    Thanks. I'll look into that.

  • RE: How to find the default database location

    Thanks.

    But it seems I was not clear.

    I need (want) to do this auto-magically based on the different users/server configurations.

    I know how/where to find in SSMS.

    It is...

  • RE: Building a Security Philosophy

    I have been tasked with writing and applying security to our Dev, Test, UAT databases. Our company is growing and the number of developers is increasing. Can you advise of...

  • RE: Super Quick Table Meta Data

    Thanks for the article. Nice little snippet to add to my bag of tricks.

    I usually create an ERD before creating the tables and keep that updated as things change.

    But this...

  • RE: Duel Insert?

    I see some of your points but not all.

    The reason I am declaring and setting variables is because not all the data for the reports is in the first table....

  • RE: Duel Insert?

    Not sure how this helps me do separate inserts....

    Peso (12/22/2008)


    Or use the new OUTPUT operator?

    CREATE TRIGGER TR_YOURTABLE_STATUSCHANGED

    ON YOURTABLE

    AFTER UPDATE

    AS

    INSERT SomeStatusTable

    (

    STATUS,

    FORMID,

    DATECOMPLETED

    )

    OUTPUT i.INVOICEID,

    i.FORMID,

    GETDATE()

    INTO ShippingQueue

    (

    INVOICEID,

    FORMID,

    DATEQUEUED

    )

    SELECT i.STATUS,

    i.FORMID,

    GETDATE()

    FROM INSERTED AS i

    WHERE i.STATUS = 3

    AND i.FORIMID = 6

  • RE: Duel Insert?

    I am doing similar but the second insert is the only one inserting into the table.

  • RE: Duel Insert?

    Pseudo code

    SET NoCount ON

    If Exists(Select ... From Inserted where StatusID = 3 )

    Begin

    --Declare the variables

    @FormID int...

    Select

    variables...

    From Inserted

    ------------------------------------------------------------------------------

    -- Settngs for other forms

    Depending on the formid re-setting varibles to different...

  • RE: problems with subquery counts

    I can't post all the code, I tried to clean it and it appears I messed it up more for the post. Oh well.

    Thanks for the help.

  • RE: Trouble setting recrodset to variable

    Never mind all I figured it out.

  • RE: Alter Trigger Assistance

    Point taken.

    Respectfully

  • RE: Alter Trigger Assistance

    Aaron,

    Thanks for your comment about the tables/trigger names.

    But I posted my code for assistance NOT negative comments.

    You would be more helpful to leave them out.

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