.NET Core -- test sql database connection

Last Reply 9 days ago By dharmendr

Posted 11 days ago


In a .NET Core Application, my requirement is if user inputs

SqlServerName:PortNumber or SqlServerName\SqlInstance

username and password, 

If connection is successful, say success
If access denied say success
If timeout say failure not accessible.

Im using VS2022 and .NET Core 6.

Please help.



You are viewing reply posted by: dharmendr 9 days ago.