Splunk Dev

Anyone Have Used DBConnect Outputs Before and Was Successful?

jeremy059
Explorer

Hi guys,

Getting this error on my DBConnect outputs when run manually or at a schedule:

message='Unrecognized SQL escape '' at line position 67.'

Using "jTDS driver with Windows Authentication". Errors when trying to insert field values to columns/tables. Tried changing Column "Data Types" but to no avail. Has anyone experienced this before?

Thanks a lot.

Kind regards,
Jeremy

Tags (1)
0 Karma
1 Solution

jeremy059
Explorer

I'll have to answer my question here as I was able to successfully resolve this on my Lab environment. I'm not an SQL person and copying the field names of my source data to use as column names in my destination SQL table was the root cause of the problem. It turns out if you have brackets, braces or periods in your column names, you'll get the "SQL Escape" error. I just renamed my column names and removed the brackets, braces and periods and replace them with underscores.

View solution in original post

0 Karma

jeremy059
Explorer

I'll have to answer my question here as I was able to successfully resolve this on my Lab environment. I'm not an SQL person and copying the field names of my source data to use as column names in my destination SQL table was the root cause of the problem. It turns out if you have brackets, braces or periods in your column names, you'll get the "SQL Escape" error. I just renamed my column names and removed the brackets, braces and periods and replace them with underscores.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...