|
| |||||||||
| Tags: database connection, sql server, sql server 2005, vb 60 |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| 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
| ||||
| ||||
| 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.
__________________ Grand Theft Auto 4 PC Video Game |
|
#3
| ||||
| ||||
| 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
| ||||
| ||||
| 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 |
![]() |
|
| Thread Tools | Search this Thread |
| |
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 |