-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Case problem in SQL ServerPlugin script #1702
Comments
by "latest" which version do you mean? 0.13 or 1.0rc? |
Sorry, I meant telegraf-1.0.0-rc1_windows_amd64.zip from the download page. -Scott |
It is just a problem of collation, not related to any telegraf version. |
Thanks, Yeah this SQL Server is used for an ERP System. So case sensitive collation is required for this software. |
fixed by #1748 |
Hi, this appears again for me with the latest Telegraf version telegraf-1.13.3_windows_amd64.zip. |
@biohazardxxx Can you open a new issue, please make sure to include your plugin configuration and server version. |
done #7021 |
I'm not a developer (nor DBA), so I could be way off here, but it appears that the sql server plugin has an issue with SQL Server instances that have a collation that is set to cases sensitive in the sqlserver.go script.
the baselineDate and currentlineDate column are originally being set as:
GETDATE() AS baselineDate
GETDATE() AS currentlineDate
but then later on are used as:
(DATEDIFF(SECOND,baseLineDate,currentLineDate)) <-- with Capitalization of the "L"'s for both.
This produces the following errors when running telegraf with the sqlserver plugin input enabled on A SQL instance that's collation is set to a case sensitive type:
2016/09/02 10:12:13 Invalid column name 'baseLineDate'.
2016/09/02 10:12:13 Invalid column name 'currentLineDate'.
2016/09/02 10:12:13 Invalid column name 'baseLineDate'.
2016/09/02 10:12:13 Invalid column name 'currentLineDate'.
2016/09/02 10:12:13 Invalid column name 'baseLineDate'.
2016/09/02 10:12:13 Invalid column name 'currentLineDate'.
2016/09/02 10:12:13 Invalid column name 'baseLineDate'.
2016/09/02 10:12:13 Invalid column name 'currentLineDate'.
2016/09/02 10:12:13 mssql: Invalid column name 'currentLineDate'.
I am using the latest windows telegraf client.
Thanks,
-Scott
The text was updated successfully, but these errors were encountered: