Book a Demo

Author Topic: MS SQL Server CHARINDEX, SUBSTRING functions  (Read 4997 times)

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
MS SQL Server CHARINDEX, SUBSTRING functions
« on: November 19, 2011, 02:08:23 am »
Any idea why i get an error when trying to use these functions in a model search against my MS SQL Server OLE DB connection within EA ?

Thanks,

Jon.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: MS SQL Server CHARINDEX, SUBSTRING functions
« Reply #1 on: November 21, 2011, 07:57:30 pm »
I just tested this in an SQL Search:
Code: [Select]
select CHARINDEX('a',d.name) as test from t_diagram dand it came back perfectly fine.

I'm using SQL Server  2008 with 'SQL Server Native Client 10.0' to connect to it.

Geert

abruckner

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: MS SQL Server CHARINDEX, SUBSTRING functions
« Reply #2 on: November 25, 2011, 08:02:50 pm »
charindex: allowed column types are: char/varchar,nchar/nvarchar, and binary/varbinary.