存储过程-----adovbs.inc 怎么办?

每次我在使用存储过程的时候总要在页面中包含adovbs.inc文件

adovbs.inc文件有10KB,有点大,所以尝试不在页面中包含adovbs.inc文件,而只嵌入如下代码:
'---- CommandTypeEnum Values ----
Const adCmdUnknown = &H0008
Const adCmdText = &H0001
Const adCmdTable = &H0002
Const adCmdStoredProc = &H0004
Const adCmdFile = &H0100
Const adCmdTableDirect = &H0200
但是我的存储过程却无法使用了。
请问大侠,我改怎么做呢?到底应该嵌入那些代码呢?
---------------------------------------------------------------

add this line to the top of your global.asa:

---------------------------------------------------------------

我的意見是就用include可以省很多功夫缺點就如你所說﹐如果不想這樣做﹐可就你需要的變量把它copy到你要的頁面﹐或者參數直接用變量的值﹐不過這樣不利于閱讀

Published At
Categories with Web编程
Tagged with
comments powered by Disqus