sql2dbml ERROR: You have a syntax error at line 1 column 1. Expected...

未关闭
#237 8 条评论 3 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@huydo862003 已经在做这个了。

开始于 2025年11月6日。

评估

这个 Issue 还没有评估数据。

描述

bug

Just installed dbml.

Want to convert my scripted mssql db to dbml.

In SSMS, scripted all database tables to file. Saved file.

Executed:

sql2dbml <scripted db file name>.sql --mssql

Get the following error:

ERROR: You have a syntax error at "<filename>" line 1 column 1. Expected "ALTER", "COMMENT", "CREATE", "DROP", "INSERT", "RESET", "SELECT", "SET", "USE", end of input, or space but "�" found.

TYIA for any tips to get passed this error.

主要语言
JavaScript
星标
3.7k
派生
233
平均合并
2 天 4 小时
30 天内合并 PR
23

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

holistics/dbml 的其他 Issue

查看 holistics/dbml 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。