Hi
I'm new to ADO. So please be patient !
I am using Delphi 7 and Oracle 8.1.6.
I used BDE TDatabase and connect during runtime. I get the username and password and dbname from the registry, and use that to connect.
Now I also want to connect with ADO during runtime. Wel, I am doing it, my connectstring looks like this :
Provider=MSDAORA.1;Password=grmssys;User ID=grmssys;Data Source=grms.world;Persist Security Info=True
And it word fine. Problem is that it does not work on another pc. I am using Windows 2000 and the other pc is using XP. Coult that make a difference or must I look at something else ?
My code :
GRMSConnection.ConnectionString := ADODBInfo;
DatabaseMain.Params.Assign(ParamList);
try
SessionMain.Open;
DatabaseMain.Open;
GRMSConnection.open;
Result := True;
except
end;
GRMSConnection is the adoconnection;
DatabaseMain is the bde connection;
ADODBInfo is the connectstring.
Regards
Karen
I'm new to ADO. So please be patient !
I am using Delphi 7 and Oracle 8.1.6.
I used BDE TDatabase and connect during runtime. I get the username and password and dbname from the registry, and use that to connect.
Now I also want to connect with ADO during runtime. Wel, I am doing it, my connectstring looks like this :
Provider=MSDAORA.1;Password=grmssys;User ID=grmssys;Data Source=grms.world;Persist Security Info=True
And it word fine. Problem is that it does not work on another pc. I am using Windows 2000 and the other pc is using XP. Coult that make a difference or must I look at something else ?
My code :
GRMSConnection.ConnectionString := ADODBInfo;
DatabaseMain.Params.Assign(ParamList);
try
SessionMain.Open;
DatabaseMain.Open;
GRMSConnection.open;
Result := True;
except
end;
GRMSConnection is the adoconnection;
DatabaseMain is the bde connection;
ADODBInfo is the connectstring.
Regards
Karen