×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    6

    Rdbs (database session or client-server database access) - Feature Not Supported

    Hi,

    I cut and paste from the Symbian white paper for Database access:

    http://www.symbian.com/developer/tec...dex%2Dold.html


    The following code shows an example of how to open a database for client-server access.

    RDbs dbSession;
    1. User::LeaveIfError(dbSession.Connect());
    CleanupClosePushL(dbSession);
    RDbNamedDatabase database;
    2. User::LeaveIfError(database.Open(dbSession, KDatabaseName));
    CleanupClosePushL(database);
    ... //Use database
    CleanupStack::Pop(); // database
    CleanupStack::Pop(); // dbSession
    3. database.Close();
    4. dbSession.Close();


    At #2, I got a "Feature Not Supported" displayed in a popup in the emulator and on my phone.

    Is Rdbs supported in Series 60?

    Thanks.

    --John

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166
    Hi

    Dunno really, since I have always opened the database by using normal RFs like this:

    Database.Open(CCoeEnv::Static()->FsSession(),KDatabaseName)

    In case you don't really need to share the db, you could use this method.

    yucca

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    6
    Hi, Yucca,

    Thanks. Yes, I the FS way works for me, too. But, I wanted to try the RDbs way, because the Symbian white paper suggested that it was 'preferred', and I like the Client-Server concept.

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    21
    Hi jjesus,
    I know this is very later reply to your query. Anyway it may be helpful for others.

    First you need to create db with RDbNamedDatabase by using RFs. then close it.

    After creation of DB, you can open the DB in Client/server mode(shared mode with RDbs) and client mode(exclusive mode with RFs).

    Thanks
    Irfan

  5. #5
    Registered User
    Join Date
    Nov 2008
    Location
    Beijing China.
    Posts
    28

    Re: Rdbs (database session or client-server database access) - Feature Not Supported

    Quote Originally Posted by sai_irfan View Post
    Hi jjesus,
    I know this is very later reply to your query. Anyway it may be helpful for others.

    First you need to create db with RDbNamedDatabase by using RFs. then close it.

    After creation of DB, you can open the DB in Client/server mode(shared mode with RDbs) and client mode(exclusive mode with RFs).

    Thanks
    Irfan
    Not late for me,You really do me a huge favor.
    Thanks a lot!
    Single, that's all.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×