madhav_119
asked on
Is there a way to check if thepartcular DB is started using Win APIs?
I need to check if the partcular DB is started using VC++> and the database that i have created is in SQL Server 2005.
Please help with the code.
Thanks in advance.
Please help with the code.
Thanks in advance.
Define "db is started"? Do you mean the SQL Server engine or a particular database?
ASKER
I guess starting SQL server engine includes starting all the databases also..It would be great if you can tell me the way to check both. SQL Server Engine (i think here you check if MSSQLSERVER service is started) and particular DB.
Thanks
Thanks
Are you looking to test the connection to the local machine that you are running on, or a remote machine?
ASKER
On both. Local and remote
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.