SHARE
TWEET

Untitled

Ortund Nov 8th, 2011 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DECLARE @i INT
  2. SET @i = 1
  3. while @i < 23
  4. BEGIN
  5.         IF @i = 23
  6.                 break
  7.         ELSE
  8.                 UPDATE Modules
  9.                 SET Presentation = 'Modules/Module' + CAST(CAST(@i AS INT) AS VARCHAR(2)) + '/Module' + CAST(CAST(@i AS INT) AS VARCHAR(2)) + '-' + (SELECT ModuleName FROM Modules WHERE ModuleID = @i) + '.ppt'
  10.                 WHERE ModuleID = @i
  11.                 SET @i = @i + 1
  12.         END
  13.  
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top