摘要:
select 'bcp pubs..'+name+' out'+' d:\test\'+name+'.txt -c -Stechnology1 -Usa -P' from sysobjects where type = 'U' 阅读全文
摘要:
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
阅读全文