DBdataset Dynamic file path

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2009
Posts: 4
Reputation: Ammar N is an unknown quantity at this point 
Solved Threads: 0
Ammar N's Avatar
Ammar N Ammar N is offline Offline
Newbie Poster

DBdataset Dynamic file path

 
0
  #1
Jul 5th, 2009
Hello all,
directly here is the issue:
i want to choose the path to my database file for my DBdataset in a VB .net project during the runtime in the first form, and then i want to use that file in some other forms.
the file could be on another connected PC through a lan or internet.

so what is the method of controlling the path for any DBdataset in the project before establishing the connection for its file?


Thanks in advance,
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,612
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 463
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven

Re: DBdataset Dynamic file path

 
0
  #2
Jul 6th, 2009
Use Configuration.ConfigurationSettings and app.config.
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 4
Reputation: Ammar N is an unknown quantity at this point 
Solved Threads: 0
Ammar N's Avatar
Ammar N Ammar N is offline Offline
Newbie Poster

Re: DBdataset Dynamic file path

 
0
  #3
Jul 6th, 2009
Originally Posted by adatapost View Post
Use Configuration.ConfigurationSettings and app.config.
would you please show me how is the whole instruction is build if i had a dataset with the name "DBdataset" and the database file name is "DB.mbd"?
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,612
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 463
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven

Re: DBdataset Dynamic file path

 
0
  #4
Jul 6th, 2009
My.MySettings.Default.dbassetsConnectionString

dbassetsConnectionString name is as per your app.config.
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC