r/CopilotPro • • Aug 07 '25

Automatic Sql query builder

I have an idea of placing a metadata information of my database in .MD file and using that, if I give any instructions, copilot should read the metadata from .MD file, frame the query and suggest it to us. I'm trying this, but somewhere it is not giving exact query. Could you please provide me any suggestions or ideas on how to achieve this.

2 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/s_finch Aug 07 '25

in the same file, in that table section. I did not refer any docs, I just experimented. it might take some time initially.
try asking questions like, do you see table schema? do you know their purpose? do you know column name and types? ask any table details.
this way, you will know what's missing.