This topic has been archived. It cannot be replied.
-
枫下家园 / 电脑用户 / 黄金骑士在不在? 问你一个COMMAND OBJECT的问题
-zhihaoxx(热爱FB的LOSER 甲);
2002-9-16
(#750393@0)
-
在,问吧...如果你要是问了一个让我答不出来而丢脸的问题,以后我就不理你了...
-decentboy(黄金重装甲骑士);
2002-9-16
(#750398@0)
-
没关系啦, 微软都搞不定的问题, 还说 "This behavior is by design." $%!@#$
-zhihaoxx(热爱FB的LOSER 甲);
2002-9-16
{284}
(#750412@0)
-
想法1. 使用stored procedure应该可以解决这个问题吧....
-decentboy(黄金重装甲骑士);
2002-9-16
(#750419@0)
-
想法2, 如果使用SQL Server 2000, 把子查询部分换成SQL Server Function应该可以吧...
-decentboy(黄金重装甲骑士);
2002-9-16
(#750423@0)
-
想法3. 使用JOIN而不是SUB-QUERY能不能避开你的问题? 不确定....
-decentboy(黄金重装甲骑士);
2002-9-16
(#750430@0)
-
想法4.不使用 Prepared 不就行了吗? 要真是需要反复调用这段 SQL statement 的话, 使用Stored Procedure好吧....
-decentboy(黄金重装甲骑士);
2002-9-16
(#750439@0)
-
问题是那两个? 是从其他文件过来的, 难道在STORE PROC里面打开EXCLE或者XML文件?
-zhihaoxx(热爱FB的LOSER 甲);
2002-9-16
(#750448@0)
-
明白了...使用DTS吧,效果最好,
-decentboy(黄金重装甲骑士);
2002-9-16
(#750450@0)
-
DTS可以在Server段按照Scedule读取文件, Parse文件, 不需要Client端的编程; 或者,可以在Client端编程调用DTS Package.....应该很适合你的问题的...
-decentboy(黄金重装甲骑士);
2002-9-16
(#750459@0)
-
试试看, 谢谢!
-zhihaoxx(热爱FB的LOSER 甲);
2002-9-16
(#750466@0)
-
可能有点看错了, 不过DTS仍然是一个可以考虑的方案. 如果参数从文件中取得. 1. Client 端用程序 Parse文件,取的参数 2.调用DB端的Stored Procedure, 使用Command Object 传递参数给SP,
-decentboy(黄金重装甲骑士);
2002-9-16
(#750465@0)
-
My Idea1.create temp table tempTB which is identical with TB1
2.insert tempTB select * from TB1,TB2 where TB1.ID=TB2.ID
3.Delete * from TB1
4. insert TB1 select * from tempDB
-nice2002(floater);
2002-9-16
{171}
(#750503@0)