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