|
-
Jul 3rd, 2006, 02:16 AM
#1
Thread Starter
Frenzied Member
Hide Connection's ConnectionString Property
My boss asked me for a way to enable developers to create applications against our database, without ever having to know the user name or password for the database.
So I came up with the idea to create a single dll, with one class that create a connection object, and return this connection to any calling application.
My idea was that the user (developer) can get a valid connection, without having to worry about the location, user id, or password of the database.
Stupid me...forgot the connection got a ConnectionString Property.
So a developer can just say
sqlconnection mycon = aaconn.createconnection();
string x = mycon.connectionstring;
any better ideas or a way to hide a connectionstring property?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|