Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.ms-sqlserver    |    Notorious Rube Goldberg contraption    |    19,505 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 18,526 of 19,505    |
|    Erland Sommarskog to Pab    |
|    Re: how to insert values in two table wi    |
|    24 Nov 11 23:35:09    |
   
   fc76f487   
   From: esquel@sommarskog.se   
      
   Pab (prabu.net88@gmail.com) writes:   
   > sorry,   
   > this is the query   
   >   
   > BEGIN TRANSACTION   
   > DECLARE @salid int   
   > Insert into sal_products   
   > (upc,store_area,shelf_number,aisle_no,section_aisle,location) values   
   > ('123asd','N/A','N/A','N/A','N/A',100)   
   > select @salid = scope_identity()   
   > insert into sal_product_locations (sal_product_id,side,position)   
   > values (@salid,'N/A','N/A')   
   > commit   
      
   And the problem is?   
      
   --   
   Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se   
      
   Links for SQL Server Books Online:   
   SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx   
   SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca