By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,982 Members | 1,919 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,982 IT Pros & Developers. It's quick & easy.

reading postgres sql connection string

P: 10
Is it possible to read postgres sql connection string by coding it in C#?

Im trying to make a system that will automatically read postgres sql connection string when the program loads. Im always using different computers and always changing my password to adopt to postgres. Im thinking is it possible?
May 3 '10 #1
Share this Question
Share on Google+
5 Replies

Expert 100+
P: 700
You mean you want to check what conenction string was used to connect to database?
If so it would be hard read password unless you keep it unencrypted, but you are of course aware that it is not very good idea to keep passwords unencrypted.
May 3 '10 #2

P: 10
Yes sir i am totaly aware of an unencrypted password.. Sir about my question is it posible? If it is sir how can i do it? can you help me..
May 4 '10 #3

Expert 100+
P: 700
Do you need host:port:database:username:password or something more?
May 4 '10 #4

P: 10
I only need "host:port:database:username:password". Sir can you help me make a C# program that will automatically read the connection string of postgres sql 8.3. Thanks.
May 4 '10 #5

Expert 100+
P: 700
Once more question. You want to write a application that reads it own connection string or connection string for another running application?

All connection string you can read from using postgres tables or postgres views?
Is that acceptable solution for you to read all data from database?

Does this application run on postgres rights (i mean rights of database administrator) or you have any special user?
May 4 '10 #6

Post your reply

Sign in to post your reply or Sign up for a free account.