I am using Entity Framework code-first approach. I want to develop a form in which user will enter SQL Server detail like server name, user ID, password and database name which will be created by code first.
But before creating a database I want to test the connection to SQL Server without creating any test database. Is it possible to test SQL Server connection without creating any database?
I tried creating a test database in that server and verify but this method is quite not acceptable as creating a test database and then delete it is not the solution to the issue.
Please provide any logic that can test SQL Server connection without database.
masterdatabase.