home bbs files messages ]

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,525 of 19,505   
   Bob Barrows to Pab   
   Re: how to insert values in two table wi   
   24 Nov 11 10:37:26   
   
   fc76f487   
   From: reb01501@NOSPAMyahoo.com   
      
   Pab wrote:   
   > 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   
   >   
   > thanks,   
   > -pab   
      
   ... and ....   
   What happens when you try to run it??   
      
   --- 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