delphi5和sql2000 我用的是delphi5的ado和SQL2000连接,必须手动和服务器连接才能访问数据库 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 什么意思?直接用ADOConnection和 SQL2000数据库连接好不就可以了么? 你可以自已写connectionstring的联接connectionstring='Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=wz2002;Data Source=XUWEI ' 把代码贴出来吧。什么手动,用ADO可以很方便地在程序中连接的。 设定ADOConnection的Connectionstring,然后可在设计时或在程序中设其Connectioned为TRUE! 设定ADOConnection的Connectionstring就可以了吧! DataModule1.ADOConnection1.Connected:= false; try DataModule1.ADOConnection1.ConnectionString:= GetConnectionString; DataModule1.ADOConnection1.Connected:= true; except MessageBox(Application.Handle,'数据库初始化设置错误,请与系统管理员联系!','错误',MB_OK OR MB_ICONSTOP); Exit; end; Application.CreateForm(TMainform, Mainform); Application.Run; idhttp上传文件到asp失败 imagelist控件的编译问题 请教一个有点难度的关于label的问题!!! socket两个小问 delphi中编译的包在6中能否使用? GetWindow()函数出错? 软件启动问题! 菜鸟问题 如何用 Win32 SDK 写多线程的程序 关于用Delphi5编写的Web服务器应用程序的问题。 这样来调用一个OBJ文件呢--------------------- 关于进程之间的消息传递``
直接用ADOConnection和 SQL2000数据库连接好不就可以了么?
connectionstring='
Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=wz2002;Data Source=XUWEI '
try
DataModule1.ADOConnection1.ConnectionString:= GetConnectionString;
DataModule1.ADOConnection1.Connected:= true;
except
MessageBox(Application.Handle,'数据库初始化设置错误,请与系统管理员联系!','错误',MB_OK OR MB_ICONSTOP);
Exit;
end;
Application.CreateForm(TMainform, Mainform);
Application.Run;