Results 1 to 3 of 3

Thread: QSqlQuery

  1. #1
    Join Date
    Jul 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default QSqlQuery

    Hi,
    I'm working with SQL Server 2008 and update my application from version QT 4.4.3 to QT 4.6.3.
    I send inputs to store procedure by:
    query.bindValue(":INPUT1", (const QVarinant) myInput);
    and I send outputs by:
    query.bindValue(:OUTPUT1", MyString, QSql::Out);
    I recieve the data after query.exec() by:
    MyString = query.boundValue(":OUTPUT1").toString();

    I get in MyString the value that I send as input...
    Before the updating version everything works O.K.

    Thanks,
    Yehudit

  2. #2
    Join Date
    Jul 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QSqlQuery

    Help me please!!!

  3. #3
    Join Date
    Jun 2010
    Location
    Salatiga, Indonesia
    Posts
    160
    Thanks
    11
    Thanked 32 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    1

    Default Re: QSqlQuery

    After
    Qt Code:
    1. query.exec();
    To copy to clipboard, switch view to plain text mode 
    can you add
    Qt Code:
    1. qDebug() << query.lastError().text();
    To copy to clipboard, switch view to plain text mode 
    and post the output from qDebug()?
    Last edited by saa7_go; 23rd July 2010 at 14:31. Reason: spelling corrections

Similar Threads

  1. QSqlquery
    By codeman in forum Qt Programming
    Replies: 10
    Last Post: 4th June 2009, 12:57
  2. qsqlquery interactive?
    By lamera in forum Newbie
    Replies: 2
    Last Post: 7th September 2008, 10:09
  3. QSqlQuery and QLineEdit
    By GuL in forum Newbie
    Replies: 25
    Last Post: 15th August 2008, 13:40
  4. what is going on a QSqlQuery?
    By mismael85 in forum Qt Programming
    Replies: 2
    Last Post: 26th June 2008, 13:35
  5. QSqlQuery problem
    By MarkoSan in forum Qt Programming
    Replies: 11
    Last Post: 18th December 2007, 13:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.