Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links



How to connect my SQL server 2005 to VB 6.0

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 08-12-2009
Member
 
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.
Reply With Quote
  #2  
Old 08-12-2009
Reegan's Avatar
Member
 
Join Date: Oct 2005
Posts: 2,299
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.
Reply With Quote
  #3  
Old 08-12-2009
Praetor's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,937
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"
Reply With Quote
  #4  
Old 08-12-2009
Zecho's Avatar
Member
 
Join Date: May 2008
Posts: 2,267
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
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to connect my SQL server 2005 to VB 6.0"
Thread Thread Starter Forum Replies Last Post
SQL Server 2005 express Edition Service Pack 3 & SQL Ser5ver 2005 Dennis TR Windows Update 5 12-02-2009 12:48 AM
Windows Server 2008 with SQL Server 2005 - failover clustering with one node Carlos Felipe França da Fonseca Windows Server Help 1 19-09-2008 02:48 PM
Upgrade fails: SQL Server Express 2005 to SQL Server 2005 Niklas Jumlin Small Business Server 3 11-06-2008 08:37 PM
Cannot find Quorum disk in Server 2008 in Virtual Server 2005 R2 Felix_Jiang Windows Server Help 9 04-02-2008 04:31 PM
Stand-alone install of Project Server 2007 with SQL Server 2005 St JackQCY Microsoft Project 2 24-10-2007 10:59 AM


All times are GMT +5.5. The time now is 05:16 AM.