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

[receiver/sqlquery] Added MS SQL Server example #36366

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions receiver/sqlqueryreceiver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,11 @@ example [here.](https://blogs.oracle.com/developers/post/connecting-a-go-applica

The `datasource` format for MySQL works as follows:
`user:password@tcp(host:port)/databasename`

#### Microsoft SQL Server Datasource Format Example

The `datasource` format for SQL Server can either be in URL format:
`sqlserver://username:password@host/instance?param1=value&param2=value`

Or in key=value; pair format:
`server=localhost;port=1433;param1=value;`
Copy link
Member

@crobert-1 crobert-1 Jan 6, 2025

Choose a reason for hiding this comment

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

It looks like the official options and format of the connection string for this driver are coming from here. I think it would be useful to also include a link here for users to reference in the future for a more complete list of options and functionality.

Edit: For reference, this is where the SQL Server driver is being imported and then used.

Loading