|
-
Aug 26th, 2005, 07:46 PM
#1
Thread Starter
New Member
-
Aug 26th, 2005, 07:47 PM
#2
Thread Starter
New Member
Re: Connection String Database on Net
-
Aug 26th, 2005, 07:50 PM
#3
Re: Connection String Database on Net
Welcome to the forums.
What kind of database is it? Access? SQL Server, or MySQL?
It is possible with each (although Access is not your best choice)
Each connection string would be different, though.
-
Aug 26th, 2005, 07:55 PM
#4
Re: Connection String Database on Net
For MS Access check link in my sig.
-
Aug 26th, 2005, 08:00 PM
#5
Thread Starter
New Member
Re: Connection String Database on Net
Thanks for the quick reply My database is MYSQL
Last edited by khawarqadri; Aug 26th, 2005 at 08:19 PM.
Spirit
Potential
Ability
-
Aug 26th, 2005, 09:18 PM
#6
Re: Connection String for Database on Internet
The answer to all your connection problems.
http://www.connectionstrings.com/
-
Aug 26th, 2005, 09:24 PM
#7
Re: Connection String for Database on Internet
Who is the host? You may want to check with them first to see if they even allow remoting to the database. I know that my host doesn't allow me to. Which is good and bad... it's bad becauseI can't sue my loacl phpMyAdmin to login to it, but good because it forced me to upload phpMyAdmin so now I can get to it anywhere.
Also, your host may have the necessary info you'll need to connect to it remotely if they allow it.
Tg
-
Aug 26th, 2005, 09:24 PM
#8
Re: Connection String for Database on Internet
Here is a sample connection string that I use to connect to a MySQL DB accross our network, I am sure that you should be able to convert it for your needs:
VB Code:
Private Function ConnectString() As String
Dim strServerName as String
Dim strDatabaseName as string
Dim strUserName as string
Dim strPassword as string
'Change to IP Address if not on local machine
'Make sure that you give permission to log into the
'server from this address
'See Adding New User Accounts to MySQL
'Make sure that you d/l and install the MySQL Connector/ODBC 3.51 Driver
strServerName = "192.168.xxx.xxx"
strDatabaseName = "DatabaseName"
strUserName = "UserName"
strPassword ="Password"
ConnectString = "DRIVER={MySQL ODBC 3.51 Driver};" & _
"SERVER=" & strServerName & _
";DATABASE=" & strDatabaseName & ";" & _
"USER=" & strUserName & _
";PASSWORD=" & strPassword & _
";OPTION=3;"
End Function
See this link
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Aug 28th, 2005, 06:18 AM
#9
Thread Starter
New Member
Re: Connection String for Database on Internet
Thanks for all the replies. Today is sunday and holiday. I will check with my host and will come back for further assistance if needed.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|