<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to get rid of white spaces in the column names when working on DB.? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-rid-of-white-spaces-in-the-column-names-when-working/m-p/190665#M187171</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;when I am trying to get the results from the DB (SQL Server), there are some column names as "Show Room Code".&lt;/P&gt;

&lt;P&gt;The query i am using to get the results is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbquery "Centro" "SELECT TransTime,Quantity,Amount,Show Room Code FROM Centro_Daily_Dummy" limit=1000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then it is showing it as error : &lt;STRONG&gt;command="dbquery", A database error occurred: Incorrect syntax near 'Code'.&lt;/STRONG&gt;&lt;BR /&gt;
if the query is edited without Show Room Code then it is running correctly.&lt;BR /&gt;
There are white spaces in the column name in the DB. how to get such columns in Splunk.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Santhosh&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jul 2015 07:51:22 GMT</pubDate>
    <dc:creator>SanthoshSreshta</dc:creator>
    <dc:date>2015-07-03T07:51:22Z</dc:date>
    <item>
      <title>How to get rid of white spaces in the column names when working on DB.?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-rid-of-white-spaces-in-the-column-names-when-working/m-p/190665#M187171</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;when I am trying to get the results from the DB (SQL Server), there are some column names as "Show Room Code".&lt;/P&gt;

&lt;P&gt;The query i am using to get the results is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbquery "Centro" "SELECT TransTime,Quantity,Amount,Show Room Code FROM Centro_Daily_Dummy" limit=1000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then it is showing it as error : &lt;STRONG&gt;command="dbquery", A database error occurred: Incorrect syntax near 'Code'.&lt;/STRONG&gt;&lt;BR /&gt;
if the query is edited without Show Room Code then it is running correctly.&lt;BR /&gt;
There are white spaces in the column name in the DB. how to get such columns in Splunk.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Santhosh&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2015 07:51:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-rid-of-white-spaces-in-the-column-names-when-working/m-p/190665#M187171</guid>
      <dc:creator>SanthoshSreshta</dc:creator>
      <dc:date>2015-07-03T07:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rid of white spaces in the column names when working on DB.?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-rid-of-white-spaces-in-the-column-names-when-working/m-p/190666#M187172</link>
      <description>&lt;P&gt;Try single-quotes like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbquery "Centro" "SELECT TransTime,Quantity,Amount,'Show Room Code' FROM Centro_Daily_Dummy" limit=1000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Jul 2015 14:27:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-rid-of-white-spaces-in-the-column-names-when-working/m-p/190666#M187172</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-03T14:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rid of white spaces in the column names when working on DB.?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-rid-of-white-spaces-in-the-column-names-when-working/m-p/190667#M187173</link>
      <description>&lt;P&gt;Hi @woodcock &lt;BR /&gt;
Sorry for the late reply.&lt;BR /&gt;
and it is not displaying the values of showroomcode, instead it is been displaying Show Room Code string in each Row. &lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2015 05:30:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-rid-of-white-spaces-in-the-column-names-when-working/m-p/190667#M187173</guid>
      <dc:creator>SanthoshSreshta</dc:creator>
      <dc:date>2015-07-07T05:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rid of white spaces in the column names when working on DB.?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-rid-of-white-spaces-in-the-column-names-when-working/m-p/190668#M187174</link>
      <description>&lt;P&gt;@SanthoshSreshta &lt;/P&gt;

&lt;P&gt;I am also the same issue with table name. My table name has spaces in it.&lt;BR /&gt;
Was your issue resolved ?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 00:02:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-rid-of-white-spaces-in-the-column-names-when-working/m-p/190668#M187174</guid>
      <dc:creator>manunairadavakk</dc:creator>
      <dc:date>2019-09-04T00:02:22Z</dc:date>
    </item>
  </channel>
</rss>

