By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,959 Members | 1,136 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,959 IT Pros & Developers. It's quick & easy.

connection string !!

P: 3
hi everyone !!
have a looke on my VB.NET code

Expand|Select|Wrap|Line Numbers
  1. connPatient As OleDbConnection
  2.  connPatient = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="http://myServer/ServerStorage/myDB.mdb")
  3. connPatient.Open()
i am trying to connect to Access database which on the server , but i am getting error.
is this the correct way to connect way database on the server

thanks
Shital
Apr 21 '07 #1
Share this Question
Share on Google+
2 Replies


100+
P: 129
Database connection is simple with vb.net because it provides oledb connection object to access the connection string from the server.or where you put the db. so try to access through it.


toolbox>>> data tab>>oledbconnection


retry it now
Apr 21 '07 #2

P: 3
hi !!

I am trying to access database from Clickonce application (on clien machine)
and database is on the server
virtual directory of batabase is ex: http://myServer/ServerStorage/myDB.mdb

and virtual dir of clickonce application is http://myServer/myClickAppl/


is there any solution for my prob

thanks
shital
Apr 21 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.