Configuring database that uses an instance name within PocketQuery

Deleted user June 1, 2016

Hello,

 

We are trying to test out the PocketQuery plugin for Confluence. We aren’t able to set up our database though. We use an instance name and can’t seem to get it to work. These are the URL’s we have tried so far (it is a SQL 2008 Server):

 

jdbc:jtds:sqlserver://SQL-SERVER.ad.here.com:1433/LANDMARKS

jdbc:jtds:sqlserver://SQL-SERVER:1433/LANDMARKS

jdbc:jtds:sqlserver://SQLEXPRESS.ad.here.com:1433/LANDMARKS

jdbc:jtds:sqlserver://SQLEXPRESS:1433/LANDMARKS

jdbc:jtds:sqlserver://SQL-SERVER.ad.here.com:1433\SQLEXPRESS/LANDMARKS

jdbc:jtds:sqlserver://SQL-SERVER:1433\SQLEXPRESS/LANDMARKS

jdbc:jtds:sqlserver://SQL-SERVER\SQLEXPRESS:1433/LANDMARKS

jdbc:jtds:sqlserver://SQL-SERVER.ad.here.com\SQLEXPRESS:1433/LANDMARKS

jdbc:jtds:sqlserver://SQL-SERVER.ad.here.com;instanceName=SQLEXPRESS:1433/LANDMARKS

jdbc:jtds:sqlserver://SQL-SERVER.ad.here.com:1433/LANDMARKS;instance=SQLEXPRESS

jdbc:jtds:sqlserver://SQL-SERVER.ad.here.com:1433/LANDMARKS;instanceName=SQLEXPRESS

jdbc:jtds:sqlserver://SQL-SERVER.ad.here.com;instanceName=SQLEXPRESS;databaseName=LANDMARKS;

 

The servername is “SQL-Server.ad.here.com”. The Instance is “SQLEXPRESS”. And the database name is “LANDMARKS”. Do you have any suggestions?  We just keep getting timeout errors or cannot connect to the database errors.

 

Thanks

Lisa

1 answer

0 votes
Felix Grund (Scandio)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 1, 2016

Hi Lisa,

on our MSSQL instance, we are using this syntax:
jdbc:jtds:sqlserver://hostname:1433/dbname;useLOBs=false

If this doesn't work, there must be some credential or network issue. For further inspection, can you please add a DEBUG log entry at ConfluenceAdmin > Logging and Profiling for de.scandio.confluence.plugins.pocketquery ? Please test the connection again and send us the log files, if that's possible.

Also, if you have remote access to the server, try to ping the SQL server in CMD with "ping SQL-SERVER.ad.here.com".

Regards, Felix

Felix Grund (Scandio)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 1, 2016

By the way: also make your the MSSQL driver (e.g. ) is in your Confluence install directory as mentioned in the PocketQuery documentation:

PocketQuery requires the correct JDBC driver you reference in the admin section to reside in your confluence-install/confluence/WEB-INF/lib directory. Putting it there requires a Confluence restart.

Deleted user June 9, 2016

Hi there,

Sorry it took so long to respond. We figured out that the SQL server is restricted so that is why our confluence server can't see it. We are working on opening up the ports on the firewall.  I will let you know if we continue to have problems.

 

Lisa

Felix Grund (Scandio)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 9, 2016

Great. Just let us know if you have further questions smile

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events