Re: How can I have a user select a local MS SQL database using vb.net? TIA SAL
From: Val Mazur (group51a_at_hotmail.com)
Date: 11/10/04
- Next message: Wart: "Re: DATABASE CONNECTIVITY"
- Previous message: Val Mazur: "Re: Add own properties to a database (mdb) field or table??"
- In reply to: sal: "How can I have a user select a local MS SQL database using vb.net? TIA SAL"
- Next in thread: Cor Ligthert: "Re: How can I have a user select a local MS SQL database using vb.net? TIA SAL"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 9 Nov 2004 19:03:45 -0500
Hi,
Rule is simple - never hardcode server name , database name and user
information into application. What you could do is to create login form to
ask user to put this information and build your connection string
dynamically. Then you could store database and server name in a settings
file or in a registry, so next time, when user runs application, you could
read these values and prepopulate this information in a login screen
-- Val Mazur Microsoft MVP "sal" <sal@spp.net> wrote in message news:Xns959BB0301D1B7salsppnet@216.77.188.18... > 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: Wart: "Re: DATABASE CONNECTIVITY"
- Previous message: Val Mazur: "Re: Add own properties to a database (mdb) field or table??"
- In reply to: sal: "How can I have a user select a local MS SQL database using vb.net? TIA SAL"
- Next in thread: Cor Ligthert: "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
|