要将一个数据库的所有表格使用批通信程序取出(BCP OUT),有何较快的方法?
摘要: select 'bcp pubs..'+name+' out'+' d:\test\'+name+'.txt -c -Stechnology1 -Usa -P' from sysobjects where type = 'U'
阅读全文
posted @
2005-11-06 01:13 轻舞flash 阅读(220) |
评论 (0) 编辑
null
摘要: FETCH NEXT FROM @tables_cursor INTO @tablename
15WHILE (@@fetch_status <> -1)
16BEGIN
17EXEC ('Select ' + @quote+'Rows in ' + @tablename + ' = '+ @quote + ', count(*) from '+ @tablename)
18FETCH NEXT FROM @tables_cursor INTO @tablename
19END
阅读全文
posted @
2005-11-06 01:08 轻舞flash 阅读(50) |
评论 (1) 编辑