ALTER PROCEDURE [dbo].[A_DBManageList_ADD] @UserName varchar(20), @PassWrod varchar(20), @tableName varchar(20), @CreateTime datetime AS declare @newTable varchar(20) BEGIN SET XACT_ABORT ON BEGIN tran INSERT INTO A_DBManageList(UserName,PassWrod,IsActive,CreateTime)VALUES(@UserName,@PassWrod,1,@CreateTime) insert into @tableName.dbo.S_SysUser([UserName],[Password],IsActive)select a.UserName,a.PassWrod,a.IsActive from DB_TFDB.dbo.A_DBManageList a COMMIT tran end
这个是库 是动态的库 由我的程序提供 请问这个怎么写啊