📄 16203.html
字号:
<html>
<head>
<title>Re: 由 DBF 转入SQL Server 7.0 ,请帮忙,谢谢。</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>Re: 由 DBF 转入SQL Server 7.0 ,请帮忙,谢谢。</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by <a href="mailto:cthelios@ms21.hinet.net">C.T.Wang</a> on July 26, 1999 at 18:13:49:<p>
In Reply to: <a href="16137.html">由 DBF 转入SQL Server 7.0 ,请帮忙,谢谢。</a> posted by Rookie on July 25, 1999 at 14:50:59:<p>
<br> 1. 要转入大批资料进SQLserver的问题我也遇过.(由于SQLserver太"鸡婆", 会自动作log...)<br> 2. 把以前我试过最快的作法提供你参考:<br> - 程式先将资料整理/转换.写入text档.<br> - 如果旧的资料不要的话. don't "Delete", 将整个table "Drop"掉.(快n倍) 再用指令重建.<br> - 使用Bulk Insert将资料由text file转入SQL.(别忘了Bulk insert前要将transaction log off掉)<br> - 用SQL指令create index/Primary Key..<br> 3. 我因为要倒入1,000,000+笔资料所以不得不如此作.<br> 4. 你若不用Bulk insert(from text file). 至少也要辛苦一下组insert指令送给SQL.(最好用command object). 我想150,000笔资料可在3-30分钟内完成(depends on lots of things)<br> 5. 我不敢想像用recordset转万笔资料入SQLserver..(I don't have that kinds of GUTS)<p> P.S. 关掉transaction Log的SQL语法比较难查, 附给你参考.. <br>exec sp_dboption 'dbname', 'select into/bulkcopy', 'true'
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 16203-->
<!--top: 16210--><li><a href="16210.html">还是不太懂 ...</a> <b>Rookie</b> <i>20:40:01 7/26/99</i>
(<!--responses: 16210-->2)
<ul><!--insert: 16210-->
<!--top: 16216--><li><a href="16216.html">Re: 还是不太懂 ...</a> <b>C.T.Wang</b> <i>23:05:04 7/26/99</i>
(<!--responses: 16216-->1)
<ul><!--insert: 16216-->
<!--top: 16219--><li><a href="16219.html">谢谢,但是.txt的格式该怎么排?</a> <b>Rookie</b> <i>23:52:22 7/26/99</i>
(<!--responses: 16219-->0)
<ul><!--insert: 16219-->
</ul><!--end: 16219-->
</ul><!--end: 16216-->
</ul><!--end: 16210-->
</ul><!--end: 16203-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -