home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / dbmsg / sql / msdtc / tsql / updadr.sql < prev   
Encoding:
Text File  |  1996-04-03  |  277 b   |  10 lines

  1. if exists (select * from sysobjects where id = object_id('dbo.update_addr') and sysstat & 0xf = 4)
  2.     drop procedure dbo.update_addr
  3. GO
  4.  
  5. CREATE PROCEDURE update_addr(@au_id varchar(11), @addr varchar(40)) AS
  6.     update authors set address = @addr where au_id = @au_id
  7.  
  8. GO
  9.  
  10.