Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有人有任何关于转储 SQL Server 数据库样本的提示?还是最好的方法?
我正在使用具有许多表的数据库,并且只想对其进行抽样。
您可以使用命令行 bcp 及其 -L(最后一行)开关。从数据库元数据编写类似这样的脚本,例如:
SET NOCOUNT ON SELECT 'bcp "yourDatabase.' + SCHEMA_NAME(schema_id) + '.' + name + '" out c:\temp\' + SCHEMA_NAME(schema_id) + '.' + name + '.bcp -SyourServer -T -n -L 500' FROM sys.tables
然后在命令行上运行输出。
可能重复: <?= 是什么意思? Reference php × 1429865 c/c++ × 756500 nginx × 49975 mongodb × 159057 mybatis × 3233 anaconda × 13410 pycharm × 14671 python × 1902243 vscode × 56040 docker × 110988 github × 49000 flask × 49129 ffmpeg × 24037 jmeter × 16910 matplotlib × 63493 bootstrap × 54641