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

MSSQL Connection problem #1602

Open
Kutubkhan-Makda opened this issue Feb 15, 2024 · 3 comments
Open

MSSQL Connection problem #1602

Kutubkhan-Makda opened this issue Feb 15, 2024 · 3 comments
Labels
Q&A For non-issues. General Q&A

Comments

@Kutubkhan-Makda
Copy link

Question

How to connect with mssql in window's with window authentication which does not have username and password there is no windows
authentication type.

@Kutubkhan-Makda Kutubkhan-Makda added the Q&A For non-issues. General Q&A label Feb 15, 2024
@MichaelSun90
Copy link
Contributor

Hi @MKhan1792 , unfortunately, tedious does not natively support window authentication without username and password. You can check here under authentication types for all the available authentication types and details on how to connection with them.

@arthurschreiber
Copy link
Collaborator

Nowadays, koffi and https://github.com/node-ffi-napi/node-ffi-napi allow writing nodejs libraries that can call out to libraries written in C and other languages without having to write a native NodeJS extension. This could be one possibility to provide support for this on Windows.

@lroal
Copy link

lroal commented Apr 13, 2024

You can use msnodesqlv8 for windows authentication.
Alternatively, you can use rdb ORM that supports both tedious and msnodesqlv8.
Just use rdb.mssqlNative(..) instead of rdb.mssql(...) and install msnodesqlv8 first.
You can use raw queries with it as well as model mappings.
I am the author of rdb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Q&A For non-issues. General Q&A
Projects
None yet
Development

No branches or pull requests

4 participants