Results 1 to 4 of 4

Thread: How to connect my SQL server 2005 to VB 6.0

  1. #1
    Join Date
    Dec 2009
    Posts
    36

    How to connect my SQL server 2005 to VB 6.0

    I want to connect Sql server 2005 to VB 6.0 for my programming. Can it possible because my client have used sql server 2005. Please suggest as soon as possible.Thank you.

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    Re: How to connect my SQL server 2005 to VB 6.0

    Yes, You can connect SQL server 2005 to VB 6.0. In SQL server 2005 ,the OLEDB provider is "SQLNCLI" which is SQL native client. So Please change provider name from SQLOLEDB to SQLNCLI and connect through same procedure as last version you had installed.

  3. #3
    Join Date
    Apr 2008
    Posts
    1,948

    Re: How to connect my SQL server 2005 to VB 6.0

    You also choose this way to conect VB 6.0 to SQL server 2005 from this code :
    ConnectionString = "Data Source=" & m_Server & "; " & _"Initial Catalog =" & m_Database & "; User Id = " & m_DbUser & " ; Password = " & m_DbPassw & "; Pooling=False"

  4. #4
    Join Date
    May 2008
    Posts
    2,297

    Re: How to connect my SQL server 2005 to VB 6.0

    As i am testing on my system it will runs so please try on page load event.


    Form_Load Event()

    dim conString as string=nothing
    conString = "Provider="sqldb" ; user id=; password=; database=;"
    dim connect as new ADODB.Connection(conString)
    connect.open()
    'Put a message box to ")
    connect.close()
    end Form_Load Event

Similar Threads

  1. How to connect multiple PCs to sql 2005 database
    By Operatorr in forum Networking & Security
    Replies: 5
    Last Post: 03-01-2011, 07:48 PM
  2. SQL Server 2008 vs SQL Server 2005
    By technika in forum Windows Software
    Replies: 5
    Last Post: 30-12-2009, 12:50 PM
  3. SQL Server 2005 and IIS 7
    By Ximen in forum Software Development
    Replies: 2
    Last Post: 01-06-2009, 01:54 PM
  4. Upgrade fails: SQL Server Express 2005 to SQL Server 2005
    By Steve BB in forum Small Business Server
    Replies: 3
    Last Post: 11-06-2008, 07:37 PM
  5. Installing SQL Report Server 2005 on Server 2008
    By Marcos Benites in forum Windows Server Help
    Replies: 1
    Last Post: 25-04-2008, 05:54 PM

Tags for this Thread

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
  •  
Page generated in 1,751,751,199.03138 seconds with 16 queries