Results 1 to 2 of 2

Thread: Where can I find instructions on odbc ConnectionStrings?

  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.

  2. #2
    Join Date
    Mar 2009
    Location
    California, USA
    Posts
    31
    Thanks
    2
    Thanked 7 Times in 6 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Where can I find instructions on odbc ConnectionStrings?

    The purpose of this reply is to provide some answers to the question regarding "Where can i find the instructions on the connectionstrings?" contained in your posts.

    First, check the topic on Google. There are a bunch of links to information on connection strings.

    Second, this site seems to contain a lot of information:

    http://www.connectionstrings.com/

    And finally, explore some of the other links. There is a lot of information available on the Web regarding connection strings.

    Gary

  3. The following 2 users say thank you to Chisum for this useful post:

    rainspider (15th November 2009), Tanuki-no Torigava (23rd November 2009)

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.