Connect to SQL Server from Kali & CMD
Kali Linux
Enable MySQL
Check status if active
Connect with the default user(localhost)(no password)
Now run your queries
CMD
To connect to MS SQL Server
Copy the Server name and enter the following command in the command prompt (cmd)
If successful : 1> should appear meaning line 1
Now I have a database named MyDB
To enter the database through cmd:
Type command and enter go in next line then press enter to run previously entered commands.