TODBCConnection for psqlODBC lazarus / 16-Databases ---------------------------------------------------------------------- j0x · 2011-12-24 22:40 i gave up on this one -> http://www.lazarus.freepascal.org/index.php/topic,15600.0.html the database program we are using in the office is using odbcad32.exe so im trying to learn TODBCConnection on the SQLdb tab of Lazarus i googled around on how to use it and come up with this Quotewith odbcConnect do begin     Driver   := 'psqlODBC';     UserName := 'postgres';     Password := '';     Params.Add('SERVER=127.0.0.1');     Params.Add('PORT=5432');     Params.Add('DATABASE=HRMS_DB');     Open;     if Connected = true then showmessage('Connected');   end; but its giving me this error message when i run it http://i.lulzimg.com/7f597f9aca.jpg this is my settings on the odbcad32.exe http://i.lulzimg.com/3267d61cf3.jpg any help i can get ill take it lol im kinda lost at the moment, thanks! EDIT: found a solution from this site -> http://www.connectionstrings.com/postgre-sql#51 QuoteDriver={PostgreSQL UNICODE};Server=IP address;Port=5432;Database=myDataBase;Uid=myUsername;Pwd=myPassword; so i change the code accordingly Quote  with odbcConnect do begin     Driver   := 'PostgreSQL UNICODE';     UserName := 'postgres';     Password := '';     Params.Add('SERVER=127.0.0.1');     Params.Add('PORT=5432');     Params.Add('DATABASE=HRMS_DB');     Open;     if Connected = true then showmessage('Connected');   end;      and now its successfully connected