[GH-ISSUE #7896] Drizzle adapter mssql support #19574

Open
opened 2026-04-15 18:50:20 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @JohnFScha on GitHub (Feb 10, 2026).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/7896

Is this suited for github?

  • Yes, this is suited for github

I'm currently working on a project that heavily relies on SQL Server (the infra is built entirely on Microsoft's vendor lock-in).

Not having the chance to use drizzle in my node projects creates a serious overhead to roll out my own auth.

Describe the solution you'd like

Drizzle ORM has realesed a beta 1.0.0 with long awaited SQL Server support.

It would be nice to have this translated to the adapter, so as to be able to deploy this architecture from windows server + IIS

Describe alternatives you've considered

I can use sqlite on this windows server instance, but I loose a lot of native types that come in handy in diverse scenarios.

Additional context

No response

Originally created by @JohnFScha on GitHub (Feb 10, 2026). Original GitHub issue: https://github.com/better-auth/better-auth/issues/7896 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. I'm currently working on a project that heavily relies on SQL Server (the infra is built entirely on Microsoft's vendor lock-in). Not having the chance to use drizzle in my node projects creates a serious overhead to roll out my own auth. ### Describe the solution you'd like Drizzle ORM has realesed a beta 1.0.0 with long awaited SQL Server support. It would be nice to have this translated to the adapter, so as to be able to deploy this architecture from windows server + IIS ### Describe alternatives you've considered I can use sqlite on this windows server instance, but I loose a lot of native types that come in handy in diverse scenarios. ### Additional context _No response_
GiteaMirror added the database label 2026-04-15 18:50:20 -05:00
Author
Owner

@better-auth-agent[bot] commented on GitHub (Feb 10, 2026):

It looks like you're interested in adding Microsoft SQL Server support to the Drizzle adapter within Better Auth. Currently, there is not direct support for SQL Server in the Better Auth Drizzle adapter, but you mentioned that Drizzle ORM has released a beta version with SQL Server support.

For the feature you’re suggesting, mapping this SQL Server capability into the adapter could indeed enhance its usability for those locked into Microsoft's infrastructure, like in your case. As of now, there is no existing issue or pull request directly related to supporting SQL Server in the Better Auth Drizzle adapter that I could find, but this could be a valuable feature to propose.

I recommend that you consider opening a new issue on GitHub to formally request this feature. You can describe how critical this functionality is for your projects and any specific requirements you might have.

If you have any more questions, feel free to ask! What specific functionalities would you want the SQL Server support to include?

If you need more help, tag @better-auth-agent in a comment so I can respond.

DiagramDiscordGitHub

Diagram Join Star

<!-- gh-comment-id:3880594016 --> @better-auth-agent[bot] commented on GitHub (Feb 10, 2026): It looks like you're interested in adding Microsoft SQL Server support to the Drizzle adapter within Better Auth. Currently, there is not direct support for SQL Server in the Better Auth Drizzle adapter, but you mentioned that Drizzle ORM has released a beta version with SQL Server support. For the feature you’re suggesting, mapping this SQL Server capability into the adapter could indeed enhance its usability for those locked into Microsoft's infrastructure, like in your case. As of now, there is no existing issue or pull request directly related to supporting SQL Server in the Better Auth Drizzle adapter that I could find, but this could be a valuable feature to propose. I recommend that you consider opening a new issue on GitHub to formally request this feature. You can describe how critical this functionality is for your projects and any specific requirements you might have. If you have any more questions, feel free to ask! What specific functionalities would you want the SQL Server support to include? _If you need more help, tag @better-auth-agent in a comment so I can respond._ <!-- bot:webhook reply v1 --> [Diagram](https://repodiagrams.s3.eu-north-1.amazonaws.com/better-auth_ultra_detailed_interactive.html) • [Discord](https://discord.gg/better-auth) • [GitHub](https://github.com/better-auth/better-auth) [![Diagram](https://img.shields.io/badge/Diagram-2b3137?style=flat-square)](https://repodiagrams.s3.eu-north-1.amazonaws.com/better-auth_ultra_detailed_interactive.html) [![Join](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&style=flat-square)](https://discord.gg/better-auth) [![Star](https://img.shields.io/badge/star-181717?logo=github&logoColor=white&style=flat-square)](https://github.com/better-auth/better-auth)
Author
Owner

@ping-maxwell commented on GitHub (Feb 11, 2026):

hmm? this should work out of the box.

Are you running into some error?

<!-- gh-comment-id:3882944715 --> @ping-maxwell commented on GitHub (Feb 11, 2026): hmm? this should work out of the box. Are you running into some error?
Author
Owner

@JohnFScha commented on GitHub (Feb 11, 2026):

It doesn't, instantiating the better-auth client on the backend gives a type error on the provider:

export const auth = betterAuth({
  database: drizzleAdapter(db, {
    provider: "mssql", // Type '"msqql"' is not assignable to type '"pg" | "mysql" | "sqlite"'
  }),
 ...
});
<!-- gh-comment-id:3883990397 --> @JohnFScha commented on GitHub (Feb 11, 2026): It doesn't, instantiating the better-auth client on the backend gives a type error on the provider: ```ts export const auth = betterAuth({ database: drizzleAdapter(db, { provider: "mssql", // Type '"msqql"' is not assignable to type '"pg" | "mysql" | "sqlite"' }), ... }); ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#19574