Windows Domain Login Authentication Dialog

May 19 2005 2:45 PM
I have a Windows forms application that can transfer data from an OLE DB to an SQL Server Database. But the transfer only works if I have already logged onto my PC using the same domain that the SQL Server is on. If I am not logged into the domain, I get a "not trusted" exception when attempting to connect to the SQL Server. Is there a way to use a standard Windows Domain Login Authentication Dialog in Windows Forms, to trap that exception, and login to the correct domain interactively? The SQL Server is set up for mixed authentication but I am attempting to use Windows Authentication since the Server is part of a widely used domain. I am using Microsoft Visual C# .NET Thanks, Mavrick58