Results 1 to 2 of 2

Thread: Where can I find instructions on odbc ConnectionStrings?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2009
    Posts
    22
    Thanks
    8
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Where can I find instructions on odbc ConnectionStrings?

    Windows + qt 4.6.0 for opensource+ nmake

    when i using ADO connection string, field.
    eg:
    Provider=SQLOLEDB.1;User ID=sa;Password=123456;Initial Catalog=NorthWind;Data Source=127.0.0.1
    But use this connectionstring (come form qt help document),successful .
    eg:
    DRIVER={SQL Server};SERVER=127.0.0.1;UID=sa;PWD=12345;DATABASE =NorthWind
    code:
    Qt Code:
    1. QSqlDatabase db = QSqlDatabase::addDatabase("QODBC");
    2. db.setDatabaseName("connectionstring");
    To copy to clipboard, switch view to plain text mode 

    Who can tell me the difference between them ,or Where can i find the instructions on the connectionstrings?
    Last edited by rainspider; 13th November 2009 at 05:10.

Similar Threads

  1. Qt and VC++ instalation problem
    By gui.br in forum Installation and Deployment
    Replies: 6
    Last Post: 21st July 2009, 07:13
  2. problems installing Qt opensource with msvc2008 support
    By odin1985 in forum Installation and Deployment
    Replies: 6
    Last Post: 24th May 2008, 09:06

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
  •  
Qt is a trademark of The Qt Company.