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!

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...