Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,


I want give the following connection string to my c sharp code for postgre sql connection but I dont know how to take login information of my postgre sql, I have installed postgre sql 8.4 and EMS data managment in my PC and I am working with EMS for postgre sql management, as I said above I want to find these connection string arguments, Is there any query/options to get this details.


Connetion String for postgre sql
-----------------------
C#
NpgsqlConnection conn = new NpgsqlConnection("Server=127.0.0.1;Port=5432;User 

Id=postgres;Password=secret;Database=databasename;");

how to find this Server,Port,UserID,Pwd...etc ?

somebody please help me.. Thanks in advance
Posted
Updated 4-Sep-11 23:25pm
v2

1 solution

 
Share this answer
 
Comments
Ajain A K 5-Sep-11 7:49am    
Hi Prerak Patel,

Thanks a lot Prerak Patel, can I get the password rest query of SQL manager Lite(EMS) so that I can reset the password

and put it to the connection string

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900