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默认方言改为sqlserver2012 #825

Open
lijinan opened this issue Jul 12, 2024 · 2 comments
Open

建议把SqlServer默认方言改为sqlserver2012 #825

lijinan opened this issue Jul 12, 2024 · 2 comments

Comments

@lijinan
Copy link

lijinan commented Jul 12, 2024

原因:老版本的sqlserver微软已经停止维护了,SqlServerDialect 的分页效率是很低的,对于数据源修改默认方言较为复杂
建议:把 SqlServer默认方言改为SqlServer2012Dialect

@abel533
Copy link
Collaborator

abel533 commented Jul 14, 2024

useSqlserver2012(sqlserver):使用 SqlServer2012 数据库时,需要手动指定为 sqlserver2012,否则会使用 SqlServer2005 的方式进行分页,还可以设置 useSqlserver2012=true将2012改为sqlserver的默认方式。

修改不复杂,可以考虑改默认方言。

@lijinan
Copy link
Author

lijinan commented Jul 14, 2024

是的,后面搜索了一些文档,才知道可以设置 useSqlserver2012=true
但最好能修改默认方言,毕竟旧的方言都被官方抛弃了

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