Possible to compress SQL Server network traffic?

2019-01-23 14:34发布

I have a .NET client that needs to connect to a remote SQL Server over the WAN, is it possible to compress SQL traffic between the client and the server?

I am using .NET 3.5 and SQL Server 2005 and greater.

8条回答
姐就是有狂的资本
2楼-- · 2019-01-23 15:30

As others have said there is no compression built in to the SQL Server TDS Protocol. It's also worth saying that by default there is no encryption either. To enable encryption you must use certificates and specify it in the connection strings.

The easiest solution to solve both issues is to open up a VPN tunnel with encryption and compression enabled. Simple Microsoft PPTP solves both issues and is easy to setup.

查看更多
Viruses.
3楼-- · 2019-01-23 15:30

I don't think there is compression implemented in SQL server connection - if you are in need of compressing data, you should use web service and HTTP compression when communication with the service.

查看更多
登录 后发表回答