tedious icon indicating copy to clipboard operation
tedious copied to clipboard

MSSQL Connection problem

Open Kutubkhan-Makda opened this issue 1 year ago • 3 comments

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 avatar Feb 15 '24 10:02 Kutubkhan-Makda

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.

MichaelSun90 avatar Feb 15 '24 17:02 MichaelSun90

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.

arthurschreiber avatar Feb 18 '24 17:02 arthurschreiber

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.

lroal avatar Apr 13 '24 09:04 lroal