Please be aware that the SAP SQL Anywhere Forum will be shut down on August 29th, 2024 when all it's content will be migrated to the SAP Community.

Hello All,

  1. Is it possible to read registry from sql query ? If Yes then please give sample query
  2. Is it possible to find path of running DataBase file(.db files)?

Thanks in advance.

asked 14 Aug '13, 08:53

CrystalB's gravatar image

accept rate: 0%

edited 14 Aug '13, 10:02

Graeme%20Perrow's gravatar image

Graeme Perrow

  1. Possible but not simple. You'd have to do it in another language (python, perl, C, etc.) and then create a procedure that references it. You didn't say which version of SQL Anywhere you're using, but here is the syntax for creating such a procedure in v12.0.1.

  2. select db_property('file')

permanent link

answered 14 Aug '13, 10:05

Graeme%20Perrow's gravatar image

Graeme Perrow
accept rate: 54%

Thank you very much !.I am using SQL 11 But any way I think 2nd solution is enough for me.

(16 Aug '13, 04:48) CrystalB
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 14 Aug '13, 08:53

question was seen: 2,273 times

last updated: 16 Aug '13, 04:48