I have searched but can not find the answer to this. When I drag the
OleDbDataAdapter onto a form, I tell it where to find the database. When the
application is then deployed on the user machine won't it try to find the
database using the folder from my development environment? Do I have to be
concerned about this or does VB.NET automatically modify the database path
during the installation process? 8 914
If you are deploying an application with its own database then you need to
modify the connect string to point to where you are installing it to. Or you
can store the setting for the string outside the code in the app.config file
as a value/key pair.
--
OHM ( Terry Burns ) * Use the following to email me *
Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"Debbie Carter" <dc*********@sbcglobal.net> wrote in message
news:Qs*****************@newssvr17.news.prodigy.co m... I have searched but can not find the answer to this. When I drag the OleDbDataAdapter onto a form, I tell it where to find the database. When the application is then deployed on the user machine won't it try to find the database using the folder from my development environment? Do I have to be concerned about this or does VB.NET automatically modify the database path during the installation process?
Debbie,
It does not do it automatic and I have myself longtime searched for this
while the answer is very easy.
You can set in the form load event the connection string from the connection
you made with the designer. Do not change anything else, because than you
can get strange behaviour.
Therefore in the load event
OleDbConnection1.connectionstring = "myconnectionstring, whereever you have
placed that"
(assuming OleDbConnection1 is the name you use) http://www.connectionstrings.com/ http://www.able-consulting.com/ADO_Conn.htm
I hope this helps?
Cor
"Debbie Carter" <dc*********@sbcglobal.net> I have searched but can not find the answer to this. When I drag the OleDbDataAdapter onto a form, I tell it where to find the database. When the application is then deployed on the user machine won't it try to find the database using the folder from my development environment? Do I have to be concerned about this or does VB.NET automatically modify the database path during the installation process?
Thank you for your help Terry
Debbie
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:uO**************@TK2MSFTNGP09.phx.gbl... If you are deploying an application with its own database then you need to modify the connect string to point to where you are installing it to. Or you can store the setting for the string outside the code in the app.config file as a value/key pair.
-- OHM ( Terry Burns ) * Use the following to email me *
Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray() For i As Int32 = 0 To ch.Length - 1 ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1) Next Process.Start("mailto:" & New String(ch)) --
"Debbie Carter" <dc*********@sbcglobal.net> wrote in message news:Qs*****************@newssvr17.news.prodigy.co m...I have searched but can not find the answer to this. When I drag the OleDbDataAdapter onto a form, I tell it where to find the database. When the application is then deployed on the user machine won't it try to find the database using the folder from my development environment? Do I have to be concerned about this or does VB.NET automatically modify the database path during the installation process?
Cor...are you saying to modify the connection string line that VB.NET
generates for me when I add the DataAdapter?
Thank you for your help.
Debbie
"Cor Ligthert" <no************@planet.nl> wrote in message
news:Oc**************@TK2MSFTNGP09.phx.gbl... Debbie,
It does not do it automatic and I have myself longtime searched for this while the answer is very easy.
You can set in the form load event the connection string from the connection you made with the designer. Do not change anything else, because than you can get strange behaviour.
Therefore in the load event OleDbConnection1.connectionstring = "myconnectionstring, whereever you have placed that"
(assuming OleDbConnection1 is the name you use)
http://www.connectionstrings.com/
http://www.able-consulting.com/ADO_Conn.htm
I hope this helps?
Cor
"Debbie Carter" <dc*********@sbcglobal.net>
I have searched but can not find the answer to this. When I drag the OleDbDataAdapter onto a form, I tell it where to find the database. When the application is then deployed on the user machine won't it try to find the database using the folder from my development environment? Do I have to be concerned about this or does VB.NET automatically modify the database path during the installation process?
Debbie,
That you should not do, do it in code in the Load event of the form.
Just put there the right connectionstring, which has not to contain all
those things the generated string contains.
Cor
"Debbie Carter" Cor...are you saying to modify the connection string line that VB.NET generates for me when I add the DataAdapter?
Thank you for your help.
Debbie
"Cor Ligthert" <no************@planet.nl> wrote in message news:Oc**************@TK2MSFTNGP09.phx.gbl... Debbie,
It does not do it automatic and I have myself longtime searched for this while the answer is very easy.
You can set in the form load event the connection string from the connection you made with the designer. Do not change anything else, because than you can get strange behaviour.
Therefore in the load event OleDbConnection1.connectionstring = "myconnectionstring, whereever you have placed that"
(assuming OleDbConnection1 is the name you use)
http://www.connectionstrings.com/
http://www.able-consulting.com/ADO_Conn.htm
I hope this helps?
Cor
"Debbie Carter" <dc*********@sbcglobal.net>
I have searched but can not find the answer to this. When I drag the OleDbDataAdapter onto a form, I tell it where to find the database. When the application is then deployed on the user machine won't it try to find the database using the folder from my development environment? Do I have to be concerned about this or does VB.NET automatically modify the database path during the installation process?
Cor,
Ok will do, thank you very much for the explaination. I will leave the
auto-generated connection string alone and not change it. So when the form
loads, the connection string that I add will over ride or take the place of
the auto-generated one?
Debbie
Debbie,
Yes however you do not add it you set a new one by using the =.
Cor
"Debbie Carter" <dc*********@sbcglobal.net> > Cor, Ok will do, thank you very much for the explaination. I will leave the auto-generated connection string alone and not change it. So when the form loads, the connection string that I add will over ride or take the place of the auto-generated one?
Debbie
Cor,
I understand. Thank you very much for the explanation.
Debbie
"Cor Ligthert" <no************@planet.nl> wrote in message
news:eZ*************@TK2MSFTNGP10.phx.gbl... Debbie,
Yes however you do not add it you set a new one by using the =.
Cor
"Debbie Carter" <dc*********@sbcglobal.net> > Cor, Ok will do, thank you very much for the explaination. I will leave the auto-generated connection string alone and not change it. So when the form loads, the connection string that I add will over ride or take the place of the auto-generated one?
Debbie
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Stevey |
last post by:
I have the following XML file...
<?xml version="1.0"?>
<animals>
<animal>
<name>Tiger</name>
<questions>
<question index="0">true</question>
<question index="1">true</question>
</questions>
|
by: nospam |
last post by:
Ok, 3rd or is it the 4th time I have asked this question on Partial Types,
so, since it seems to me that Partial Types is still in the design or
development stages at Microsoft, I am going to ask...
|
by: Ekqvist Marko |
last post by:
Hi,
I have one Access database table including questions and answers. Now
I need to give answer id automatically to questionID column. But I
don't know how it is best (fastest) to do?
table...
|
by: glenn |
last post by:
I am use to programming in php and the way session and post vars are past
from fields on one page through to the post page automatically where I can
get to their values easily to write to a...
|
by: Rider |
last post by:
Hi, simple(?) question about asp.net configuration..
I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm
first start application the follow message shown.
=========
Server...
|
by: Jeff |
last post by:
In the function below, can size ever be 0 (zero)?
char *clc_strdup(const char * CLC_RESTRICT s)
{
size_t size;
char *p;
clc_assert_not_null(clc_strdup, s);
size = strlen(s) + 1;
|
by: spibou |
last post by:
In the statement "a *= expression" is expression assumed to be
parenthesized ? For example if I write "a *= b+c" is this the same
as "a = a * (b+c)" or "a = a * b+c" ?
|
by: Allan Ebdrup |
last post by:
Hi,
I'm trying to render a Matrix question in my ASP.Net 2.0 page, A matrix
question is a question where you have several options that can all be rated
according to several possible ratings (from...
|
by: lildiapaz |
last post by:
Hi, everyone
I'm using the microsoft.connectionUI.dialog reference in a c# windows application.
Is there anyway to connect to the database using the data.connectionUI dialog. What I want to...
|
by: Zhang Weiwu |
last post by:
Hello!
I wrote this:
..required-question p:after {
content: "*";
}
Corresponding HTML:
<div class="required-question"><p>Question Text</p><input /></div>
<div...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |