| | |
Database Connection Help
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2007
Posts: 140
Reputation:
Solved Threads: 15
Is it a MySQL database?
First you'd need to make sure your host allows connections from outside of their network (I mean this as in my friend's host SQL server only allows internal connections from his webspace or PHPMySQL Admin page - he can't use MySQL admin tools or anything on his PC)
You would need to check out http://www.connectionstrings.com when you know what SQL database system it is using (MSSQL, Oracle, MySQL etc)
First you'd need to make sure your host allows connections from outside of their network (I mean this as in my friend's host SQL server only allows internal connections from his webspace or PHPMySQL Admin page - he can't use MySQL admin tools or anything on his PC)
You would need to check out http://www.connectionstrings.com when you know what SQL database system it is using (MSSQL, Oracle, MySQL etc)
•
•
Join Date: Apr 2009
Posts: 2
Reputation:
Solved Threads: 0
It's a MySQL database. I'm not sure I'm using the right code.
vb Syntax (Toggle Plain Text)
Imports System.Data.SqlClient Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim sqlConn As New SqlConnection("server=serverAddress;uid=username;pwd=password;database=database;") sqlConn.Open() sqlConn.Close() End Sub End Class
Last edited by olabaz; Apr 24th, 2009 at 5:07 pm.
![]() |
Similar Threads
- DataBase connection in Jsp to MS-Access (JSP)
- external database connection (MySQL)
- database connection(select ,insert query) within javascript function (JSP)
- database connection (PHP)
- Problem with database connection (JSP)
- Visual C++, Database connection, please help (C++)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: System stated overflow.
- Next Thread: Execute a file when a particular folder is opened.
| 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





