reading postgres sql connection string

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kosaks
    New Member
    • May 2010
    • 10

    reading postgres sql connection string

    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?
  • rski
    Recognized Expert Contributor
    • Dec 2006
    • 700

    #2
    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.

    Comment

    • kosaks
      New Member
      • May 2010
      • 10

      #3
      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..

      Comment

      • rski
        Recognized Expert Contributor
        • Dec 2006
        • 700

        #4
        Do you need host:port:datab ase:username:pa ssword or something more?

        Comment

        • kosaks
          New Member
          • May 2010
          • 10

          #5
          I only need "host:port:data base:username:p assword". Sir can you help me make a C# program that will automatically read the connection string of postgres sql 8.3. Thanks.

          Comment

          • rski
            Recognized Expert Contributor
            • Dec 2006
            • 700

            #6
            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?

            Comment

            Working...