Skip to content

Langchain NL2SQL Streamlit Chatbot MySQL to MSSQL #7

@TobyBoogerd

Description

@TobyBoogerd

I've converted this to Microsoft SQL Server database and query. Often times after one to two successful responses, I will eventually get the following message. I am wondering if there may be someone in code that still references MySQL that should be changed to use the Microsoft SQL Server:
The error message indicates that there is an issue with the syntax of the SQL query. Specifically, it mentions an incorrect syntax near the backtick character (`). However, the provided query does not contain any backticks, which suggests that the error might be related to how the query was executed or formatted in the environment.

To resolve this issue, ensure that the query is correctly formatted and executed in the SQL Server environment. Here is the corrected query without any backticks:

SELECT [Promised_Date]
FROM [Delivery]
WHERE [Job] = '447316';

As you can see, it does provide the proper MS SQL syntax, but does not execute it.

The database info from langsmith:
Screenshot 2024-06-17 at 4 45 32 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions