
- 帖子
- 24
- 积分
- 36
- 威望
- 48
- 金钱
- 48
- 在线时间
- 0 小时
|
17楼
发表于 2008-7-21 00:19
| 只看该作者
读取内容
declare @o int, @f int, @t int, @ret int
declare @line varchar(8000)
exec sp_oacreate 'scripting.filesystemobject', @o out
exec sp_oamethod @o, 'opentextfile', @f out, 'c:\1.txt', 1
exec @ret = sp_oamethod @f, 'readline', @line out
while( @ret = 0 )
begin
print @line
exec @ret = sp_oamethod @f, 'readline', @line out
end
帖子19 精华0 积分19 阅读权限40 在线时间9 小时 注册时间2008-3-29 最后登录2008-6-21 查看详细资料引用 报告 回复 TOP
coolf4ce 
晶莹剔透§烈日灼然 |
|