Results 1 to 4 of 4
  1. #1
    Join Date
    May 2004
    Location
    bangalore
    Posts
    270

    Unanswered: SQL SERVER 2005 Data Insert

    Hi,
    I have 2 tables. MASTER table as M and TRAN table as T. I need to insert 1 row in table M and with the foreign key need to insert multiple rows in the table T. SQL SERVER used is 2005. Application is in .NET 1.x

    I am able to insert one record in the table in M but how do i insert the multiple records in table T?


    Help....



    Thanks,
    Rahul Jha

  2. #2
    Join Date
    May 2004
    Location
    bangalore
    Posts
    270
    One of the soluntion i can see is using INSERT-EXEC option.


    Can any one suggest me any better one?



    Rahul jha

  3. #3
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322
    are you looking for SCOPE_IDENTITY
    Brett
    8-)

    It's a Great Day for America everybody!

    dbforums Yak CorralRadio 'Rita
    dbForums Member List
    I'm Good Once as I ever was

    The physical order of data in a database has no meaning.

  4. #4
    Join Date
    May 2004
    Location
    bangalore
    Posts
    270

    Trigger - Microsoft SQL Server Management Studio

    Hi,
    How to create Trigger in "SQL SERVER 2005 - Microsoft SQL Server Management Studio"? This is my 1st interaction with SQL SERVER 2005.



    Thanks,
    Rahul Jha

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •