An example of how to connect your database to ChatGPT and query it with natural language. Some exceptions are demonstrated where it fails, most notably if there are null values.
Using this should be as simple as creating the Northwind DB on your MSSQL instance, inputting your server info and OpenAI API key.