I am developing a windows software as a clone of SQL server management studio, but I am not clear how my own application will connect to SQL server database engine and run queries, as SQL server management studio connect to DB engine from the object explorer. I have searched for every possible solution but not got any help.
Things I need to provide from my software:
1) connect to SQL server database engine
2) display list of databases
3) run queries on the selected database