Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

189
Views
Ejecute consultas en PostgreSQL remoto desde LibreOffice Calc

Mi objetivo es ejecutar consultas simples desde LibreOffice Calc y obtener los resultados de una base de datos PostgreSQL remota.

Traté de hacer algo similar a esta respuesta pero me sale un error.

Esto es lo que tengo:

 Sub GetQuery Dim oParms(1) as new com.sun.star.beans.PropertyValue Dim oStatement As Object Dim oResult As Object Dim oConnection As Object oParms(0).Name = "user" oParms(0).Value = "serveruser" oParms(1).Name = "password" oParms(1).Value = "serverpwd" oManager = CreateUnoService("com.sun.star.sdbc.DriverManager") sURL = "dbname=mydatabase hostaddr=XXXX port=5432 user=postgresuser password=postgrespwd" oConnection = oManager.getConnectionWithInfo(sURL, oParms()) oStatement = oConnection.createStatement() oResult = oStatement.executeQuery("select count(*) from mytable") MsgBox "Result: " & oResult oStatement.close() End Sub

Cuando intento ejecutar esto, aparece "Variable de objeto no configurada" en la línea oStatement = oConnection.createStatement() .

Como puede ver, tengo una experiencia muy limitada en la conexión de bases de datos remotas.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!