sry if my english ist not very well.

I am using Visual Studio. I try to make a backup from client side.
There I need the path on the server.
But from client side I do not always know the path to database.

I found that I could get the info I need from the topic FILE in sa_db_info.

But with c++ I not suceeded to get this info

I try SQL Prepare SQLBind param SQLBinCol SQLFetch, but it is the first time programming with SQL. SO could someone give me the right way to get the info, or an other easier way to get the patz from server vie to its database for that i want to make a backup?

Thank you in advance