exec sp_dboption 'hnimdb','select into/bulkcopy','true'
go
declare @Point varbinary(16),@Point2 varbinary(16),@var varchar(8000),@var2 varchar(8000)
declare @yxID int
select @yxID=min(yxID) from mysql.hneam.dbo.tbyxtlrz where jjman2 is null and reportdate>'2006-12-05'
select @yxID
select @Point = textptr(yxjs),@Point2=textptr(jdsx) from tbYXjzztlrz where num=@yxID+94
--select @Point,@Point2
select @var=yxjs,@var2=jdsx from mysql.hneam.dbo.tbyxtlrz where yxid=@yxID
if @var is null set @var=''
if @var2 is null set @var2=''
--select @var,@var2
writetext tbyxjzztlrz.yxjs @Point @var
writetext tbyxjzztlrz.jdsx @Point2 @var2
go
exec sp_dboption 'hnimdb','select into/bulkcopy','false'
go