denisenkom / go-mssqldb

Microsoft SQL server driver written in go language
BSD 3-Clause "New" or "Revised" License
1.81k stars 493 forks source link

How to test connection without username and password? #786

Open smartaquarius10 opened 1 year ago

smartaquarius10 commented 1 year ago

Hello,

Is it possible to check connectivity with sql without userid and password. I need to run it from my office windows laptop and here we have windows authentication access on sql and no userid/pass is required.

Can some share the sample please. Thank you