Actualy you can't connect to WSS database remotely because network connectivity is disabled by default. ( or without SQL Server Agent Services not installed)
You can use below as ur server name like the image below, it will let you to connect to your share point database
\\.\pipe\mssql$microsoft##ssee\sql\query