但是加密后的存储过程导不过来动网论坛的部分存储过程: SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS OFF GOCREATE PROCEDURE [dbo].[dv_list] @boardid int=1, @pagenow int=1, --当前页数 @pagesize int=1, --定义每页面帖子数目 @tl int=0, --按时间段查询 @topicmode int=0, --专题 @totalrec int output AS set nocount on declare @int_topnum int declare @int_timenum int declare @var_times varchar(5000) if @pagenow>1 if @topicmode>0 begin select @int_timenum=(@pagen我用新建存储过程建报错:必须声明变量 '@boardID'
select @int_timenum=(@pagenow-1)*@pagesize set rowcount @int_timenum select @var_times=lastposttime from Dv_Topic where boardID=@boardID and istop = 0 and mode=@topicmode ORDER BY lastposttime desc set rowcount @pagesize select TopicID,boardid,title,postusername,postuserid,dateandtime,child,hits,votetotal,lastpost,lastposttime,istop,isvote,isbest,locktop这是后半部分
1.生成数据库脚本
sql200企业管理器
--右键要导出到的数据库
--所有任务
--生成SQL脚本
--常规里选择生成全部对象脚本
--设置格式里,将"包含扩展属性"选上
--选项中,将"编写数据库脚本"及"表脚本选项"中的内容全部选择上
--其他所有的选项保持默认值,或根据你的需要设置
--然后确定,将其保存成一个.sql文件然后将.sql文件用记事本打开,用查找/替换,将排序规则替换为你需要的排序规则
执行上面的语句创建一个新库.然后导数据
sql200企业管理器
--右键要导出的数据库
--所有任务
--导出数据
--目标数据库,选择上面的新建的数据库
--然后选择"在两个SQL数据库之间复制数据和对象"
--将"创建目的对象"的选择取消,"排序规则"的那个不要选上,其他根据需要设置
--最后完成.
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS OFF
GOCREATE PROCEDURE [dbo].[dv_list]
@boardid int=1,
@pagenow int=1, --当前页数
@pagesize int=1, --定义每页面帖子数目
@tl int=0, --按时间段查询
@topicmode int=0, --专题
@totalrec int output
AS
set nocount on
declare @int_topnum int
declare @int_timenum int
declare @var_times varchar(5000)
if @pagenow>1
if @topicmode>0
begin
select @int_timenum=(@pagen我用新建存储过程建报错:必须声明变量 '@boardID'
set rowcount @int_timenum
select @var_times=lastposttime from Dv_Topic where boardID=@boardID and istop = 0 and mode=@topicmode ORDER BY lastposttime desc set rowcount @pagesize
select TopicID,boardid,title,postusername,postuserid,dateandtime,child,hits,votetotal,lastpost,lastposttime,istop,isvote,isbest,locktop这是后半部分