Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLServer add suport for SSMS client #13337

Merged
merged 2 commits into from
Jun 10, 2022

Conversation

smallinsky
Copy link
Contributor

What

Try to fix SQLServer connection from Windows Management Studio.

The SSMS server client tires to establish severals sequential connections to upstream SQLServer and seems the this affect GUI interaction and connection has some delay:

sqlserver_ux.mov

@smallinsky smallinsky marked this pull request as ready for review June 9, 2022 15:36
@smallinsky smallinsky requested a review from r0mant June 9, 2022 15:37
@github-actions github-actions bot requested review from jakule and nklaassen June 9, 2022 15:37
@github-actions github-actions bot added the database-access Database access related issues and PRs label Jun 9, 2022
@smallinsky smallinsky removed the request for review from nklaassen June 9, 2022 15:37
@smallinsky smallinsky requested a review from greedy52 June 9, 2022 16:10
@@ -76,6 +76,7 @@ func (c *connector) Connect(ctx context.Context, sessionCtx *common.Session, log
LoginOptions: options,
Encryption: msdsn.EncryptionRequired,
TLSConfig: tlsConfig,
PacketSize: loginPacket.PacketSize(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow. how did you figure this out

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wireshark has TDS packet filter that allows to visualise SQLServer traffic. Since the tsh proxy db has --tunnel is pretty easy to look/debug db wire protocol.

@smallinsky smallinsky merged commit dc08ca9 into branch/v9 Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database-access Database access related issues and PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants