Forum Replies Created

Viewing 15 posts - 61 through 75 (of 90 total)

  • RE: Function that returns table - user specific

    Thanks - yes please - if could point me in the right direction.

  • RE: SELECT *

    Thanks both of you.

    Jeremy - yes I know, I have a procedure which goes thru each subsequent view (very clumsily) and use sp_RefreshView

     

    but then if I wasn't using SELECT *...

  • RE: Update table

    Yes thats perfect! Its annoying the query builder didn't get me to there.

     

     

    THanks

  • RE: Trigger

    Excellent replies . Thankyou

  • RE: Trigger

    OK Thanks - I think I have the update part OK.

     

    But the insert bit -

     

    Another consideration is newly inserted records.  If you want to act on those records then the...

  • RE: Trigger

    Cheers James very helpful - just one think what is PK?

    i.pk = cn.pk?

     

    Thats the primary key for the record? and that join only brings out those in i and joins...

  • RE: Generate script for data

    Thanks here too!!

  • RE: Generate script for data

    Thanks Mr Junkie - thats perfect. Thanks Adrian fro helping clarify the problem.

  • RE: Generate script for data

    Almost -

    I want a script to generate the table as I have it here - data too.

     

    That script will then be used on the other dbs in other locations. (Once...

  • RE: Generate script for data

    Thanks for the answer -

     

    What I am trying to do is basically populate a lookup table data on multiple dbs in differant locations. (With data I have in a...

  • RE: Syntax update derived tables

    Thanks - that worked - so I just need to move my criteria outside of the derived table.
     
    Can I not get differant results by moving the criteria (I mean generally...
  • RE: Trigger update on the record added or updated.

    Its OK - The list of records inserted or updated is in the inserted table. So FRom here I can do the rest.
     
     
    Thanks
  • RE: Trigger update on the record added or updated.

    Basically I need the ID of the record(s) that was just inserted or updated (Trigger is for both).
     
    Is SELECT * FROM Inserted ,how to get the records just added?
     
    Similarly how...
  • RE: Delete all data

    Thanks both of you - I found this which seems to do the job -

     

    CREATE PROCEDURE procDeleteAll
     
    AS
     
    DECLARE @sql nvarchar(4000)

    SET @sql = ''

     
  • RE: sp to get parameters from tables records.

    Thankyou very much - that works perfectly.

Viewing 15 posts - 61 through 75 (of 90 total)