Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sqlserver运行出错,可能是配置问题? #5

Closed
RampagerB opened this issue Nov 25, 2021 · 15 comments
Closed

Sqlserver运行出错,可能是配置问题? #5

RampagerB opened this issue Nov 25, 2021 · 15 comments

Comments

@RampagerB
Copy link

RampagerB commented Nov 25, 2021

{
  "Type": "sqlserver",
  "OutPutFolder": "/Users/somepath",
  "IsKotlin": true,
  "CamelCase": true,
  "KtormVersionNew": true,
  "NamespaceName": "net.xxx.xxx",
  "ConnectionString": "Server=xxx;Port=1433;Database=xxx;Uid=xxx;Pwd=xxx;charset=utf8;SslMode=none",
  "TableFilter": ["LS_%"],
  "SetFkList": [
    "system_users,RoleTid,system_role,Tid"
  ]
}

sqlserver 版本2008R2

这样配置有问题吗
Event log是大概这样的
16:00 Codegen Start: version:20210902,/Users/rampager/Library/Application
Support/JetBrains/IntelliJIdea2021.2/plugins/ktorm

16:00

@yuzd
Copy link
Owner

yuzd commented Nov 25, 2021

ConnectionString 配置错了,比如我配置我本地的:

Server=.\;Database=antmgr;Trusted_Connection=True;Enlist=False;

@RampagerB
Copy link
Author

所以user和password还是用Uid和Pwd是吗

@RampagerB
Copy link
Author

RampagerB commented Nov 25, 2021

Server=1.1.1.1;Database=xxx;Uid=xxx;Pwd=xxx;Trusted_Connection=True;Enlist=False;
这样对吗

@yuzd
Copy link
Owner

yuzd commented Nov 25, 2021

你试试看

@RampagerB
Copy link
Author

还是不行,是macOS的适配问题吗

@yuzd
Copy link
Owner

yuzd commented Nov 25, 2021

有报啥错误吗

@RampagerB
Copy link
Author

RampagerB commented Nov 25, 2021

就像最上面写的那样
时间戳 Codegen Start 。。。
红色时间戳
下面啥错误信息也没有

@yuzd
Copy link
Owner

yuzd commented Nov 25, 2021

我没在mac上试过 晚点试试看

@RampagerB
Copy link
Author

我试了本地Mysql成功了

@yuzd
Copy link
Owner

yuzd commented Nov 26, 2021

你用别的db客户端可以链接sqlserver吗?
比如说navcat

@RampagerB
Copy link
Author

Navicat是可以的

@yuzd
Copy link
Owner

yuzd commented Nov 26, 2021

qq 1877682825 加下我

@yuzd yuzd closed this as completed Nov 26, 2021
@RampagerB
Copy link
Author

额 需要验证

@yuzd
Copy link
Owner

yuzd commented Nov 26, 2021

填上海

@yuzd
Copy link
Owner

yuzd commented Nov 26, 2021

2021-11-27

优化遇到错误的信息展示

image

支持sqlserver:
由于在mac上的sqlserver依赖包大,所以支持sqlserver的版本请在百度网盘下载:

链接:https://pan.baidu.com/s/16oSpkU7OoMW92qaxZedsYg
提取码:yuzd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants