M
mill666
Unregistered / Unconfirmed
GUEST, unregistred user!
我在xp下,用delphi 7开发一个东东,通过odbc连接sql server 2000;<br>然后我在form1上放置一个 TAdoConnection,一个TAdoTable,设置Tadoconnectio的connectionstring为:(当然我是通过build出来的connectionstring)<br>
<br>然后设置Tadotable的connection为ADOConnection1,其active为true,ADOConnection1的connected为true;<br><br>就这么简单的一个程序,然后运行,出现异常:里面有一句是<br>could not convert variant of type(null) into type(string)<br><br>就这么简单的一个程序,都搞不定,真是郁闷啊,哪位大侠救命啊。
代码:
<br> Provider=MSDASQL.1;Persist Security Info=False;UserID=sa;DataSource=test;Extended Properties="DSN=test;UID=sa;APP=Enterprise;WSID=MRBILL;DATABASE=test;Network=DBMSSOCN"<br>