Hello, Quratulain Habib!
Thanks for reaching out to Microsoft Community and posting your concerns. We are sorry if your Surface Book 2 will not connect to your Samsung TV. Thanks for informing us and allowing us to help you out. Since you switched to the Surface Book 2, I assume you were not able to project your screen to any Smart TV that supports Miracast, right? If that's the case, please check the Projection Settings on your device.
1. Press Windows/Start and go to Settings.
2. Choose System, then scroll down and select Projecting to this PC.
3. At the Some Windows and Android devices can project to this PC when you say it's OK, please select Available everywhere.
4. Choose what you feel is good for you under Ask to project to this PC - First time onlyor Every time a connection is requested.
5. Require PIN for pairing, choose which one you want - Never, First Time, and Always
6. Make sure to disable the one that says This PC can be discovered for projection only when it's plugged into a power source.
7. Please take note of your PC name there.
Once done, please go back to the main Settings page and click on Devices.
You should be at the Bluetooth & other devices, ensure that Bluetooth is on.
Click on Add Bluetooth or other device, then select Wireless display or dock to look for your Samsung Smart TV and connect to it.
We hope this helps you out, we highly encourage you to inform our Community by clicking on Yes or marking my post as an answer. This will help other members who may have the same issue as you. Otherwise, don't hesitate to update us so we can further assist you.
Kind regards,
Janette_Z