borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (VB6 with ODBC to SQL)Next Topic (ListBox) New Topic New Poll Post Reply
AndreaVB Forum : Database : HELP! need a connection string
Poster Message
w32crazydev
Level: Guest


icon HELP! need a connection string

i need to connect to a remote database on another server in a network. Because i am developing software at home i cant be sure if this works!
I use the following connection string



ConnectionString = "driver={Microsoft Access Driver (*.mdb)};" & _
      "server=andreavb.ipowermysql.com;uid=admin;pwd=;DBQ=C:program filesMicrosoft Visual StudioVB98nwind.mdb"


on my machine it works fine and i can see the database records! if i change the server variable in the previous string to match the server that has the database will it work?
I dont want to use DSN names

PLEASE HELP
      

04-08-2002 at 10:23 PM
| Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon Re: HELP! need a connection string

Hi,

As far as I know, the Server attribute doesn't work on Jet, you will need to use the UNC path to the access database (ie. myservermypathmymdb.mdb), the mdb will need to reside in a directory that is shared on the remote machine.

Hope this helps,

Kieron


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

10-09-2002 at 12:01 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Database : HELP! need a connection string
Previous Topic (VB6 with ODBC to SQL)Next Topic (ListBox) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder