×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Nokia Developer Expert
    Join Date
    Sep 2008
    Posts
    14

    Thumbs up Panic of DBMS 2 during the creation of table

    Hi,
    I am getting panic of DBMS 2, EDbUninitialised when I try to create the table as below:
    // Create a table definition
    CDbColSet* columns=CDbColSet::NewLC();

    // Add Columns
    TDbCol id(NCol1,EDbColInt32);

    // automatic indexing for items,it is our key field.
    id.iAttributes=id.EAutoIncrement;
    columns->AddL(id);

    columns->AddL(TDbCol(NCol2, EDbColInt32));
    columns->AddL(TDbCol(NCol3, EDbColInt32));
    columns->AddL(TDbCol(NCol4, EDbColText,50));

    // Create a table
    User::LeaveIfError( aDatabase.CreateTable(KtxtItemlist, *columns) );
    Please help me to go ahead.

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,347

    Re: Panic of DBMS 2 during the creation of table

    Quote Originally Posted by sri.appana View Post
    User::LeaveIfError( aDatabase.CreateTable(KtxtItemlist, *columns) );
    Have you really created database before calling CreateTable on it?

    Show your aDatabase creation code here.
    Nokia Developer Wiki Moderation team

  3. #3
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Re: Panic of DBMS 2 during the creation of table

    Hi,
    You could try aDatabase.Create(iFsSession, DBFileName)
    before you call the CreateTable. You can follow this link if you want to see the implementationhttp://wiki.forum.nokia.com/index.php/Database_Example

    For Dbms error codes you could refer http://www.newlc.com/DBMS-Panics.html
    Regards,
    Sriky

  4. #4
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Panic of DBMS 2 during the creation of table

    There is also a larger and more detailed document on forum nokia
    http://www.forum.nokia.com/info/sw.n..._0_en.pdf.html
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  5. #5
    Nokia Developer Expert
    Join Date
    Sep 2008
    Posts
    14

    Thumbs up Re: Panic of DBMS 2 during the creation of table

    The issue is solved as I have called the Create function before creating the table.

    iItemsDatabase.Create(iRdbSession, name.FullName(), KSecureDBMShostID );
    Thanks for your help.

Similar Threads

  1. Replies: 5
    Last Post: 2010-12-06, 11:26
  2. Using Bluetooth serial port in MIDlets (nokia 9500 issue)
    By orsteglasy in forum Mobile Java Networking & Messaging & Security
    Replies: 11
    Last Post: 2007-10-07, 21:49
  3. panic error DBMS 2
    By Tanya in forum Symbian User Interface
    Replies: 4
    Last Post: 2007-05-08, 12:23
  4. DBMS Panic Table 9 (EDbStreamOpen)
    By symbians60 in forum Symbian
    Replies: 2
    Last Post: 2007-04-25, 08:39
  5. Replies: 0
    Last Post: 2005-07-04, 11:08

Posting Permissions

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