Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

ADO help required

 
   Database Help (Home) -> Visual Basic RSS
Next:  Close Connection  
Author Message
David6

External


Since: Jun 14, 2004
Posts: 2



(Msg. 1) Posted: Mon Jun 14, 2004 3:27 am
Post subject: ADO help required
Archived from groups: microsoft>public>vb>database (more info?)

I have been going around in circles trying to understand the method of
creating a database in VB.Net 2003 and distributing that application and
database.

It seems if I use the Server Explorer to create the pledbConnection etc,
the link to the database works ok on the local machine but when the
application is distributed, the program points to the original path (which
of course
is different to the target system). Is there any way to maintain the
relative path to the database when you distribute the application.

Secondly, the tutorials I have point heavily to using a SQL server instead
of oledB . I found MSDE 2000 and downloaded it but cannot install it. The
dialog indicates it needs a strong SA password and I am not sure what
this is and how to apply it.

Also, if I eventually managed to install MSDE, can it be installed with
the application or does the user needs to install this separately ?

Thanks in advance.

 >> Stay informed about: ADO help required 
Back to top
Login to vote
Steven Burn1

External


Since: May 27, 2004
Posts: 4



(Msg. 2) Posted: Mon Jun 14, 2004 4:38 am
Post subject: Re: ADO help required [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You need to post this in a VB.Net newsgroup......

--

Regards

Steven Burn
Ur I.T. Mate Group
<a style='text-decoration: underline;' href="http://www.it-mate.co.uk" target="_blank">www.it-mate.co.uk</a>

Keeping it FREE!


"David" <david DeleteThis @orbitcoms.com> wrote in message
news:Xh6zc.19937$sj4.15653@news-server.bigpond.net.au...
 > I have been going around in circles trying to understand the method of
 > creating a database in VB.Net 2003 and distributing that application and
 > database.
 >
 > It seems if I use the Server Explorer to create the pledbConnection etc,
 > the link to the database works ok on the local machine but when the
 > application is distributed, the program points to the original path (which
 > of course
 > is different to the target system). Is there any way to maintain the
 > relative path to the database when you distribute the application.
 >
 > Secondly, the tutorials I have point heavily to using a SQL server
instead
 > of oledB . I found MSDE 2000 and downloaded it but cannot install it. The
 > dialog indicates it needs a strong SA password and I am not sure what
 > this is and how to apply it.
 >
 > Also, if I eventually managed to install MSDE, can it be installed with
 > the application or does the user needs to install this separately ?
 >
 > Thanks in advance.
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: ADO help required 
Back to top
Login to vote
Earl2

External


Since: Jun 14, 2004
Posts: 26



(Msg. 3) Posted: Mon Jun 14, 2004 1:00 pm
Post subject: Re: ADO help required [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

These are are good questions, but this is generally onsidered the VB
"Classic" database newsgroup. Not sure why there wasn't one for .Net, but
microsoft.public.dotnet.framework.adonet is where most of these questions
land.

One solution to your first issue is to code the Connection string and use a
variable for the server name:

Dim strConnString As String = "data source=" & OurServerName & ";" & _
"initial catalog=WinMatrix;integrated security=SSPI;"

Check out the following links for your MSDE install issue:

<a style='text-decoration: underline;' href="http://support.microsoft.com/default.aspx?scid=kb;en-us;281983" target="_blank">http://support.microsoft.com/default.aspx?scid=kb;en-us;281983</a>
<a style='text-decoration: underline;' href="http://www.microsoft.com/sql/downloads/2000/sp3.asp" target="_blank">http://www.microsoft.com/sql/downloads/2000/sp3.asp</a>
<a style='text-decoration: underline;' href="http://support.microsoft.com/default.aspx?scid=/support/servicepacks/SQL/2000/SP3ReadMe.asp" target="_blank">http://support.microsoft.com/default.aspx?scid=/support/servicepacks/S...2000/SP</a>


"David" <david.RemoveThis@orbitcoms.com> wrote in message
news:Xh6zc.19937$sj4.15653@news-server.bigpond.net.au...
 > I have been going around in circles trying to understand the method of
 > creating a database in VB.Net 2003 and distributing that application and
 > database.
 >
 > It seems if I use the Server Explorer to create the pledbConnection etc,
 > the link to the database works ok on the local machine but when the
 > application is distributed, the program points to the original path (which
 > of course
 > is different to the target system). Is there any way to maintain the
 > relative path to the database when you distribute the application.
 >
 > Secondly, the tutorials I have point heavily to using a SQL server
instead
 > of oledB . I found MSDE 2000 and downloaded it but cannot install it. The
 > dialog indicates it needs a strong SA password and I am not sure what
 > this is and how to apply it.
 >
 > Also, if I eventually managed to install MSDE, can it be installed with
 > the application or does the user needs to install this separately ?
 >
 > Thanks in advance.
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: ADO help required 
Back to top
Login to vote
David6

External


Since: Jun 14, 2004
Posts: 2



(Msg. 4) Posted: Mon Jun 14, 2004 1:09 pm
Post subject: Re: ADO help required [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The VB.Net group suggest I post it in the database group.

This is adatbase orientated al\fterall, so I expect this is the correct
forum for this request ???

I do not understand your motivation. If you do not have or am not wiilling
to offer any constructive advice then that is fine, you need not ansrwe the
post. For those who DO have the
relevant experiance with database connectivity (an this IS a database
related forum), then I look forward to your response.

Thanks


"Steven Burn" <pvt RemoveThis @noyb.com> wrote in message
news:OkOijgaUEHA.1020@TK2MSFTNGP11.phx.gbl...
 > You need to post this in a VB.Net newsgroup......
 >
 > --
 >
 > Regards
 >
 > Steven Burn
 > Ur I.T. Mate Group
<font color=purple> > <a style='text-decoration: underline;' href="http://www.it-mate.co.uk</font" target="_blank">www.it-mate.co.uk</font</a>>
 >
 > Keeping it FREE!
 >
 >
 > "David" <david RemoveThis @orbitcoms.com> wrote in message
 > news:Xh6zc.19937$sj4.15653@news-server.bigpond.net.au...
  > > I have been going around in circles trying to understand the method of
  > > creating a database in VB.Net 2003 and distributing that application and
  > > database.
  > >
  > > It seems if I use the Server Explorer to create the pledbConnection etc,
  > > the link to the database works ok on the local machine but when the
  > > application is distributed, the program points to the original path
(which
  > > of course
  > > is different to the target system). Is there any way to maintain the
  > > relative path to the database when you distribute the application.
  > >
  > > Secondly, the tutorials I have point heavily to using a SQL server
 > instead
  > > of oledB . I found MSDE 2000 and downloaded it but cannot install it.
The
  > > dialog indicates it needs a strong SA password and I am not sure what
  > > this is and how to apply it.
  > >
  > > Also, if I eventually managed to install MSDE, can it be installed with
  > > the application or does the user needs to install this separately ?
  > >
  > > Thanks in advance.
  > >
  > >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: ADO help required 
Back to top
Login to vote
dnagel

External


Since: Oct 28, 2003
Posts: 14



(Msg. 5) Posted: Mon Jun 14, 2004 2:18 pm
Post subject: Re: ADO help required [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > Secondly, the tutorials I have point heavily to using a SQL server instead
 > of oledB . I found MSDE 2000 and downloaded it but cannot install it. The
 > dialog indicates it needs a strong SA password and I am not sure what
 > this is and how to apply it.


I believe the installer takes command line arguments by which you pass
the desired SA Password.

<a style='text-decoration: underline;' href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;810826" target="_blank">http://support.microsoft.com/default.aspx?scid=kb;EN-US;810826</a>

<a style='text-decoration: underline;' href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;814463" target="_blank">http://support.microsoft.com/default.aspx?scid=kb;EN-US;814463</a>



D.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: ADO help required 
Back to top
Login to vote
Steven Burn1

External


Since: May 27, 2004
Posts: 4



(Msg. 6) Posted: Mon Jun 14, 2004 5:33 pm
Post subject: Re: ADO help required [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I didn't mean to sound condescending or patronising.......

--

Regards

Steven Burn
Ur I.T. Mate Group
<a style='text-decoration: underline;' href="http://www.it-mate.co.uk" target="_blank">www.it-mate.co.uk</a>

Keeping it FREE!


"David" <david RemoveThis @orbitcoms.com> wrote in message
news:RPezc.26665$sj4.2568@news-server.bigpond.net.au...
 > The VB.Net group suggest I post it in the database group.
 >
 > This is adatbase orientated al\fterall, so I expect this is the correct
 > forum for this request ???
 >
 > I do not understand your motivation. If you do not have or am not wiilling
 > to offer any constructive advice then that is fine, you need not ansrwe
the
 > post. For those who DO have the
 > relevant experiance with database connectivity (an this IS a database
 > related forum), then I look forward to your response.
 >
 > Thanks
 >
 >
 > "Steven Burn" <pvt RemoveThis @noyb.com> wrote in message
 > news:OkOijgaUEHA.1020@TK2MSFTNGP11.phx.gbl...
  > > You need to post this in a VB.Net newsgroup......
  > >
  > > --
  > >
  > > Regards
  > >
  > > Steven Burn
  > > Ur I.T. Mate Group
<font color=green>  > > <a style='text-decoration: underline;' href="http://www.it-mate.co.uk</font" target="_blank">www.it-mate.co.uk</font</a>>
  > >
  > > Keeping it FREE!
  > >
  > >
  > > "David" <david RemoveThis @orbitcoms.com> wrote in message
  > > news:Xh6zc.19937$sj4.15653@news-server.bigpond.net.au...
   > > > I have been going around in circles trying to understand the method of
   > > > creating a database in VB.Net 2003 and distributing that application
and
   > > > database.
   > > >
   > > > It seems if I use the Server Explorer to create the pledbConnection
etc,
   > > > the link to the database works ok on the local machine but when the
   > > > application is distributed, the program points to the original path
 > (which
   > > > of course
   > > > is different to the target system). Is there any way to maintain the
   > > > relative path to the database when you distribute the application.
   > > >
   > > > Secondly, the tutorials I have point heavily to using a SQL server
  > > instead
   > > > of oledB . I found MSDE 2000 and downloaded it but cannot install it.
 > The
   > > > dialog indicates it needs a strong SA password and I am not sure
what
   > > > this is and how to apply it.
   > > >
   > > > Also, if I eventually managed to install MSDE, can it be installed
with
   > > > the application or does the user needs to install this separately ?
   > > >
   > > > Thanks in advance.
   > > >
   > > >
  > >
  > >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: ADO help required 
Back to top
Login to vote
Dave5

External


Since: Sep 29, 2003
Posts: 13



(Msg. 7) Posted: Mon Jun 14, 2004 8:25 pm
Post subject: Re: ADO help required [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,
what type of application are you planning on distributing ? I'm assuming
you're doing a 'stand-alone' db app. If so, then distributing a Database
Server (SQL) with your app is probably a bit much Smile
Depending on your requirements consider going with MS Access or similar
instead.
As regards the relative path information, one option would be 'udl' files
which can be distributed with your app.
-->Create a new text file (preferably in the same directory as the
Executable)and change the extension to .udl
--> doubleclick and setup the connection information for your database file
(Access mdb for instance)

In your app you can now use the udl file as such ..

Private _Conn As New OleDbConnection("file name=..\.myDatabase.udl")

hth,
Dave

"David" <david DeleteThis @orbitcoms.com> wrote in message
news:Xh6zc.19937$sj4.15653@news-server.bigpond.net.au...
 > I have been going around in circles trying to understand the method of
 > creating a database in VB.Net 2003 and distributing that application and
 > database.
 >
 > It seems if I use the Server Explorer to create the pledbConnection etc,
 > the link to the database works ok on the local machine but when the
 > application is distributed, the program points to the original path (which
 > of course
 > is different to the target system). Is there any way to maintain the
 > relative path to the database when you distribute the application.
 >
 > Secondly, the tutorials I have point heavily to using a SQL server
instead
 > of oledB . I found MSDE 2000 and downloaded it but cannot install it. The
 > dialog indicates it needs a strong SA password and I am not sure what
 > this is and how to apply it.
 >
 > Also, if I eventually managed to install MSDE, can it be installed with
 > the application or does the user needs to install this separately ?
 >
 > Thanks in advance.
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: ADO help required 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
sql query returns in wrong format - Hi, Hope someone can help me with this. I have MS SQL 2000 database where i have Table "PriceList" and there a column "Pricemk" wich is data type "money". All data in this column is in form "10001,35". So why when...

arrays - is there a way to concatenate the contents of an array (looping through the array) and storing each item in a comma delimited string? Thanks!

DataReport PageBreak - Hi everyone, I would like to know how to force pagebreak in a datareport for example after 5 records printed. Thank you all

Possible Use of a Cursor - I have a complex query that I hope I can explain it well enough for everyone to understand. I have a table that contains information for work instructions. Contained in the table are "MACHINE_PROC" these are groupings of machining processes....

Scroll Bars - Is there a way to find the size of scrollbars on a system using Visual Basic 6.0? I know how to look and change them on the display properties, but I don't know how to access that information from within Visual Basic.
   Database Help (Home) -> Visual Basic All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]