|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
I am trying to create a desktop program in vb6 that gets its data from a database located on my webspace how do i connect to it.
I have never tried any remomte connections or ceating client/server software so this is new to me any help would be appreciated thanks |
|
#2
|
|||
|
|||
|
What type of database are you trying to connect to? Is it just a Microsoft Access Database file located on your personal space, or is it a remote SQL Server? Let me know which and I'll give you some code.
|
|
#3
|
|||
|
|||
|
thanks its ms access
its ms access on my personal webspace thanks for your help
|
|
#4
|
|||
|
|||
|
Hey,
when I am connecting to an MS ACCESS DB on my website, I create a file called "connection.asp" then when ever I need to connect to the DB, I simply call this page, with the code: Code:
<%
Set strConnect = Server.CreateObject("ADODB.Connection")
strConnect.Open "DBQ=" & Server.MapPath("folder/db_name.mdb") & ";Driver={Microsoft Access Driver (*.mdb)};"
%>
I think if you're accessing this from your desktop, you would simply upload the "connection.asp" page to your personal webspace, then call it with the full path name eg: include "http: // something.com/connection.asp" Hope that helps some...... |
|
#5
|
|||
|
|||
|
<%
Set myCxn = Server.CreateObject("ADODB.Connection") myCxn.ConnectionString = " Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("folder/db.mdb") & ";" myCxn.Open %> |
![]() |
| Viewing: Dev Articles Community Forums > Databases > Database Development > How can I connect to a database on the net |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|