Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor prathi's Avatar
    Join Date
    Nov 2009
    Posts
    371
    Quote Originally Posted by skumar_rao View Post
    you should understand that it is very hard to guess the problem without seeing one line of code . so can we see what you have written.
    Hi,
    I had already created one data base.ANd now i want to add one more column for that.But i am getting error as DBMS Table 0 as error.Can u tel how to add the column for data base

  2. #2
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    Quote Originally Posted by prathi View Post
    Hi,
    I had already created one data base.ANd now i want to add one more column for that.But i am getting error as DBMS Table 0 as error.Can u tel how to add the column for data base
    as it is not related to your original post. try creating a new thread with this DBMS problem

  3. #3
    Regular Contributor prathi's Avatar
    Join Date
    Nov 2009
    Posts
    371
    Hi,
    I had already created one data base.ANd now i want to add one more column for that.But i am getting error as DBMS Table 0 as error.Can u tel how to add the column for data base

  4. #4
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    Quote Originally Posted by prathi View Post
    Hi,
    I had already created one data base.ANd now i want to add one more column for that.But i am getting error as DBMS Table 0 as error.Can u tel how to add the column for data base
    can you show how you are opening the database file. mostly your path / file did not found by your application.

  5. #5
    Nokia Developer Champion kiran10182's Avatar
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,240
    You can try with ALTER TABLE DDL. Search for it anywhere about how to use ALTER DDL.

    PS: I have moved your post in a new thread. So as said, please create a new thread for completely new problem.
    Nokia Developer Wiki Moderation team

  6. #6
    Regular Contributor prathi's Avatar
    Join Date
    Nov 2009
    Posts
    371
    Quote Originally Posted by kiran10182 View Post
    You can try with ALTER TABLE DDL. Search for it anywhere about how to use ALTER DDL.

    PS: I have moved your post in a new thread. So as said, please create a new thread for completely new problem.
    ok,Please can u tel how to use that.my code is TInt CAddFeedDB::InsertAddFeedDBRecord(TAddFeedDB& aAddFeedDBItem)
    {
    LOGENTER;
    Open ();
    TQueryBuffer QueryBuffer;
    // SELECT * FROM AddFeedDB
    _LIT(KSelect,"SELECT * FROM ");

    //TQueryBuffer QueryBuffer;
    QueryBuffer.Copy (KSelect);
    QueryBuffer.Append (KAddFeed);

    iDatabase.Begin ();
    RDbView MyView;
    User::LeaveIfError(MyView.Prepare (iDatabase, TDbQuery (QueryBuffer,EDbCompareNormal)));
    User::LeaveIfError( MyView.EvaluateAll() );

    CleanupClosePushL (MyView);

    MyView.InsertL ();

    MyView.SetColL (1, aAddFeedDBItem.iphoneNo);
    MyView.SetColL (2, aAddFeedDBItem.iemail);
    LOGTXT("Set the Ph no to col");
    MyView.SetColL (3, aAddFeedDBItem.isincoming);
    MyView.SetColL (4, aAddFeedDBItem.ifeedtype);
    LOGTXT("Set the feedType to col");
    MyView.SetColL (5, aAddFeedDBItem.isubject);
    LOGTXT("Set the Subject to col");
    MyView.SetColL (6, aAddFeedDBItem.imessage);
    LOGTXT("Set the message to col");
    MyView.SetColL (7, aAddFeedDBItem.iattachment);
    LOGTXT("Set the attachment to col");
    MyView.SetColL (8, aAddFeedDBItem.itoken);
    LOGTXT("Set the token to col");
    MyView.SetColL (9, aAddFeedDBItem.itimedur);//where i added my column and giving error.... how to create this column
    LOGTXT("Set the timedur to col");


    LOGTXT("PUT Start.");

    MyView.PutL ();
    LOGTXT("PUT Finished.");

    CleanupStack::PopAndDestroy (1); // Myview
    MyView.Close();
    LOGTXT("Clean and closed myView.");
    iDatabase.Commit ();
    LOGTXT("Database comitted");
    Close ();
    LOGTXT("Close called.");
    LOGEXIT;
    return KErrNone;
    }

  7. #7
    Nokia Developer Champion kiran10182's Avatar
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,240
    Quote Originally Posted by prathi View Post
    ok,Please can u tel how to use that.
    Did you really give it a try to search for ALTER anywhere? Do you know what is that magic word? Please read it in the SDK help. If you cannot get anything then search it on internet. Then try your findings in your code and if nothing works then ask here.

    All the best.
    Nokia Developer Wiki Moderation team

Similar Threads

  1. How to create a contact item in 7650 SDK?
    By mparkkon in forum Symbian C++
    Replies: 15
    Last Post: 2008-09-02, 07:39
  2. database problem
    By sridhar_ratna in forum Symbian C++
    Replies: 1
    Last Post: 2003-04-18, 09:07
  3. Create My Own DataBase
    By DanMic1973Ephrat in forum Symbian C++
    Replies: 1
    Last Post: 2002-11-07, 00:07
  4. How to create 2 column list box?
    By Marw_Work in forum Symbian User Interface
    Replies: 2
    Last Post: 2002-08-21, 08:13
  5. Creating and Delete databases
    By -kevbo- in forum Symbian C++
    Replies: 1
    Last Post: 2001-12-13, 12:54

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved