
Contributor III
2018-12-17
02:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
'SUBSTR' is not a recognized built-in function name- Script Error
Hi All,
I am getting following .
Connector reply error: SQL##f - SqlState: 37000, ErrorCode: 195, ErrorMsg: [Microsoft][ODBC SQL Server Driver][SQL Server]'SUBSTR' is not a recognized built-in function name.: SQL SELECT DATAAREAID,SUBSTR(STORE_NUMBER,4) as STORE_NUMBER1,STORE_NUMBER,SUPERVISOR,AREA,CATEGORY,SHOPNAME FROM shop_list where REGION = 'UAE' AND COMPANY = 'RETAIL' and STORE_NUMBER <> ' '
My Script
SQL SELECT DATAAREAID,SUBSTR(STORE_NUMBER,4) as STORE_NUMBER1,STORE_NUMBER,SUPERVISOR,AREA,CATEGORY,SHOPNAME FROM shop_list where REGION = 'ACX' AND COMPANY = 'RETAIL' and STORE_NUMBER <> ' ';
16,818 Views
1 Solution
Accepted Solutions

Contributor III
2018-12-28
01:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ,
I undesrtand you are using SQL server , In SQL server we have Substring function as Substring(STORE_NUMBER,4)
And not Substr(STORE_NUMBER,4) , Chnage this and it should work
)
16,763 Views
4 Replies

Specialist II
2018-12-17
02:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
if you are extracting the data from SQL server try like this..
substring(STORE_NUMBER, Start_Position_Number, Length) as SortNumber1
substring(STORE_NUMBER, Start_Position_Number, Length) as SortNumber1
16,812 Views
2018-12-17
02:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I didn't see any field related from SELECT statement like red color? Did you taken any where?
SQL SELECT DATAAREAID,SUBSTR(STORE_NUMBER,4) as STORE_NUMBER1,
STORE_NUMBER,SUPERVISOR,AREA,CATEGORY,SHOPNAME FROM shop_list
where REGION = 'ACX' AND COMPANY = 'RETAIL' and STORE_NUMBER <> ' ';
Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
16,810 Views

Contributor III
2018-12-28
01:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ,
I undesrtand you are using SQL server , In SQL server we have Substring function as Substring(STORE_NUMBER,4)
And not Substr(STORE_NUMBER,4) , Chnage this and it should work
)
16,764 Views

Contributor III
2018-12-28
04:31 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for help
i have one more question
can u help me with this.
https://community.qlik.com/t5/New-to-Qlik-Community/SQL-IsNull/m-p/1524405#M7802
16,756 Views
