CREATE PROCEDURE [Sample].[@CopyTableFrom] 
AS RETURN -- schützt Template vor versehentlichem Aufruf
BEGIN
TRUNCATE TABLE [@1].[@2]
INSERT INTO [@1].[@2]
SELECT * FROM [@3].[@1].[@2]
END
written with WLW

Last edited Jan 20, 2011 at 9:34 PM by HenrikBauer, version 2

Comments

No comments yet.