http://www.csdn.net/Develop/read_article.asp?id=16437

解决方案 »

  1.   

    oleDbConnection1.ConnectionString = "Auto Translate=True;User ID="+AUserName+";Tag with column collation when possible=False;Data Source='.';Password="+AUserPWD+";Initial Catalog="+ADataBaseName+";Use Procedure for Prepare=1;Provider='SQLOLEDB.1';Persist Security Info=True;Use Encryption for Data=False;Packet Size=4096";
    oleDbConnection1.ConnectionString = "User ID="+AUserName+";Data Source='.';Password="+AUserPWD+";Initial Catalog="+ADataBaseName+";Provider='SQLOLEDB.1'";以上两语句在开发机上都能连接(非本机),但是把EXE文件COPY到SQLSERVER7.0服务机上就不能连接.