X
xuhongxinghome
Unregistered / Unconfirmed
GUEST, unregistred user!
给别人做了一个特快专递打印程序,在 sql 2000 下运行正常,但使用者必须安装大型数据库,不够方便,想安一个免费的SQL 2005 桌面数据库,但总也连不上,请高手指点,谢谢已经用下面的片断解决:PROCEDURE TFORM1.FORMSHOW(SENDER: TOBJECT);CONST ADO_CONNECT_STR='Provider=SQLNCLI.1;Integrated Security=SSPI;Persist Security Info=False;';VAR COMPUTER_NAME:STRING;BEGIN COMPUTER_NAME:='MYCOMPUTER'; ADOConnection1.ConnectionString:=ADO_CONNECT_STR+'Data Source='+COMPUTER_NAME+'/SQLEXPRESS'; ADOConnection1.ConnectED:=TRUE;END;谢谢朋友们的关注,分已散