请教高手:应用程序服务器如何动态连接数据库服务器?
应用程序服务器如何动态连接数据库服务器?
我用SQL Server
在Form上用了三个Edit分别输入数据库服务器名、用户名、密码
RDMServer->ADOConnection1->ConnectionString="Provider=SQLOLEDB.1;Password=";
RDMServer->ADOConnection1->ConnectionString+=Edit3->Text;
RDMServer->ADOConnection1->ConnectionString+=";Persist Security Info=True;User ID=";
RDMServer->ADOConnection1->ConnectionString+=Edit2->Text;
RDMServer->ADOConnection1->ConnectionString+=";Initial Catalog=ggssoft;Data Source=";
RDMServer->ADOConnection1->ConnectionString+=Edit1->Text;
RDMServer->ADOConnection1->Connected=true;
出现Access violation at address 00408305 in module"Project1.exe" Read of
Address 00000078