MS SQL Connection Bug? lazarus / 16-Databases ---------------------------------------------------------------------- kpeters58 · 2014-12-18 21:15 #1.2.6  32bit on Win 7 Prof: I get immediate access when I should not... Setting the LoginPrompt property of MSSQLConnection to True fails to invoke the login dialog - instead my SQL Servers grant me access based on ??? since both UserName & Password fields at design time are empty. Anybody knows why? Thanks, Kai ---------------------------------------------------------------------- LacaK · 2014-12-19 07:48 In current implementation LoginPrompt only chacks if there is set OnLogin event handler and if is set, that invokes it. Probably you have enabled trusted authentication, so SQL server authenticated you as user currently  logged in Windows. ---------------------------------------------------------------------- kpeters58 · 2014-12-19 16:41 Hmm - I tried that - still no login dialog; whether I supply (in OnLogin event) no username & password, a correct username & password or deliberately incorrect username & password ...... K