| | |
SQL SERVER 7.0 and VB6 Connections
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Apr 2009
Posts: 5
Reputation:
Solved Threads: 0
Hi to our community!
Just want to get some idea regarding the connection setup of SQL Server 7.0, I've been doing an application written in VB6 and I used SQL Server 7.0 as a storage of my database. On my local pc I can successfully connected to SQL and manipulate all the data in database.
The problem is, how can I set up the connection to become a remote server so that another PC can connect to my database(SQL Server 7.0) and use the application I've created in real time? I've been searching the net and I can't find a good answers.
Hope you guys can help me...Thanks in advance...
Just want to get some idea regarding the connection setup of SQL Server 7.0, I've been doing an application written in VB6 and I used SQL Server 7.0 as a storage of my database. On my local pc I can successfully connected to SQL and manipulate all the data in database.
The problem is, how can I set up the connection to become a remote server so that another PC can connect to my database(SQL Server 7.0) and use the application I've created in real time? I've been searching the net and I can't find a good answers.
Hope you guys can help me...Thanks in advance...
•
•
Join Date: Mar 2009
Posts: 860
Reputation:
Solved Threads: 157
Couple of ways. Are you using an ODBC DSN or are you going DSN Less?
DSN Less see http://www.connectionstrings.com
Good Luck
DSN Less see http://www.connectionstrings.com
Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.
Thanks
Thanks
•
•
Join Date: Apr 2009
Posts: 5
Reputation:
Solved Threads: 0
I used the Connection string via an IP address (see the code below) and successfully connected...
But when I run the application in another computer I got this error:
Run-time error'-2147467259(80004005)': SQL Server does not exist or access is denied.
I also used the OLE db Provider Connection String but same error encountered...
Thanks for the assistance.
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
cnnLGUREFERENCE.ConnectionString = "Provider=SQLOLEDB;SERVER=192.168.0.46;Database=LGUREFERENCE;UID=sa;PWD=password;Persist Security Info=True" cnnLGUREFERENCE.Open
But when I run the application in another computer I got this error:
Run-time error'-2147467259(80004005)': SQL Server does not exist or access is denied.
I also used the OLE db Provider Connection String but same error encountered...
Thanks for the assistance.
•
•
Join Date: Mar 2009
Posts: 860
Reputation:
Solved Threads: 157
Check the settings of your server and OS and I think you need to specify the port of 1433...
see...
http://www.connectionstrings.com/sql-server#6
then scroll down a bit for internet connection
Good Luck
see...
http://www.connectionstrings.com/sql-server#6
then scroll down a bit for internet connection
Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.
Thanks
Thanks
•
•
Join Date: Mar 2009
Posts: 860
Reputation:
Solved Threads: 157
Normally, on a MS network that uses TCP/IP, the named pipes protocal is also installed and is used as a secondary protocal. Now, SQL server is very use to this protocal and normally when you create an ODBC DSN it is via named pipes but you can specify other protocals when you create it.
So, first off, I would suggest just as an experiment, to see if you can create an ODBC DSN from one computer to the server. Don't forget to test the connection to make sure it works.
Then if the ODBC DSN does work then yes you do have to tweak your connection string some...
Search the web for vb6 connection string builder
and this is a vb6 add-in someone made
http://www.vbforums.com/showthread.p...string+builder
There are a couple more out there also...
Good Luck
So, first off, I would suggest just as an experiment, to see if you can create an ODBC DSN from one computer to the server. Don't forget to test the connection to make sure it works.
Then if the ODBC DSN does work then yes you do have to tweak your connection string some...
Search the web for vb6 connection string builder
and this is a vb6 add-in someone made
http://www.vbforums.com/showthread.p...string+builder
There are a couple more out there also...
Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.
Thanks
Thanks
![]() |
Similar Threads
- SQL Server Developer, Manchester, UK (Software Development Job Offers)
- loading images from sql server using vb6 (Visual Basic 4 / 5 / 6)
- ASP.NET SQL Server Setup Wizard: Failure (ASP.NET)
- re loading image from sql server using vb6 (Visual Basic 4 / 5 / 6)
- re loading image from sql server using vb6 (Visual Basic 4 / 5 / 6)
- Connect VB6 with SQL Server 2k by DSN and DBQ, logging screen, dbase loc, uid and pwd (Visual Basic 4 / 5 / 6)
- Error in SQL Server 2005 (MS SQL)
- SQL Server DBA - " Hot " (Software Development Job Offers)
- SQL Server DBA (Software Development Job Offers)
- SQL Server not running. (VB.NET)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Vb6 help! explain this..
- Next Thread: Draw graph using vb6 taking data from database
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





