BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Authentication and Commit questions

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (InterBase Express)
View previous topic :: View next topic  
Author Message
pcerdaz
Guest





PostPosted: Tue Feb 06, 2007 9:10 am    Post subject: Authentication and Commit questions Reply with quote



Hi, I'm migrating from Paradox to InterBase and there is a lot
of advance, however I have two questions:
1. Why my application is not asking me for Commit to made
changes over tables? I need to modify the adecuate property to
manage both Commit and Roolback; these are two importante
characteristics that like me to change to InterBase.
2. Any time when I start my application I must to authenticate
with valid username and password to Interbase. How can I step
over this authentication process?

Thank you,
pcerdaz
Back to top
Antonio Felix
Guest





PostPosted: Tue Feb 06, 2007 3:38 pm    Post subject: Re: Authentication and Commit questions Reply with quote



"pcerdaz" <pcerdaz (AT) manquehue (DOT) net> wrote:
Quote:

Hi, I'm migrating from Paradox to InterBase and there is a lot
of advance, however I have two questions:
1. Why my application is not asking me for Commit to made
changes over tables? I need to modify the adecuate property to
manage both Commit and Roolback; these are two importante
characteristics that like me to change to InterBase.
2. Any time when I start my application I must to authenticate
with valid username and password to Interbase. How can I step
over this authentication process?

Thank you,
pcerdaz

Hi,

1. Use the TIBTransaction component to control the actions,
Commit or Rollback. This is something that you need to control
yourself.

2. You may use the TIBDatabase Params property to feed in
the Login Information:

....
TIBDatabase *IBDb;
....
IBDb->Params->Add("user_name=YourUSer");
IBDb->Params->Add("password=YourPw");
IBDb->Params->Add("lc_ctype=ISO8859_1");
IBDb->DatabaseName = "Your Database Name;
IBDb->Open();
.....

Also set the LoginPrompt of TIBDatabase to false

HTH
Antonio
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (InterBase Express) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.