Re: How can I have a user select a local MS SQL database using vb.net? TIA SAL
From: Cor Ligthert (notmyfirstname_at_planet.nl)
Date: 11/10/04
- Next message: Juvenel Joseph: "Computer and Application date"
- Previous message: kikde: "hide username/password-property in connection-string"
- In reply to: sal: "How can I have a user select a local MS SQL database using vb.net? TIA SAL"
- Next in thread: Jeff Dillon: "Re: How can I have a user select a local MS SQL database using vb.net? TIA SAL"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 10 Nov 2004 12:32:16 +0100
Sal,
For the connectionstring it is easy, you can set those in the first event
that takes place in your program. By instance the load event of your startup
form. (And do not delete the ones which are created using the designer when
you did that in that way, that gives problems afterwards while updating your
program).
For the datatables I know only the solutions of creating them using the
command.executenonquery and SQL statetements with "Create Table etc) or with
a SQL script.
The firs approach is in my opinion efficient with a single user situation,
than you can do in a special installation section, where you than as well
set directly your connection string in the registry.
In the script approach I would set the connection string in a config.file.
Just my thought?
Cor
"sal" <sal@spp.net>
> Greets
>
> I have sucessfully created a sql database and vb.net program locally
> connecting to my local server.
> (I used visual studio 2003)
> I would like to send the database along with the compiled vb.net code to
> the user. The problem is the users
> machine and msde server are going to have different names. How do I
> change
> this in my code to have
> the user select thier sql server and sql database located locally on
> his/her machine.
>
> PS the user will have msde installed
>
> TIA
>
- Next message: Juvenel Joseph: "Computer and Application date"
- Previous message: kikde: "hide username/password-property in connection-string"
- In reply to: sal: "How can I have a user select a local MS SQL database using vb.net? TIA SAL"
- Next in thread: Jeff Dillon: "Re: How can I have a user select a local MS SQL database using vb.net? TIA SAL"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|