I have a SQL 2005 server that has my iMIS database. Unfortunately, iMIS requires that the compatibility mode of SQL be set to 80 (SQL 2000). I'm trying to use the function asi_SplitString in my code, but I get an error when I call it telling me to change the compatibility level to 90 (not supported by iMIS). I want to use the function so that I can easily search the multi-instance field setup in an iMIS demographics table.
Here is my SQL....
SELECT N.ID, N.Company, N.Work_Phone, N.Fax, N.Toll_Free, N.Website, NA.Address_1, NA.City,
NA.State_Province, NA.Zip, NA.Full_Address, ND.Branch_Offices
FROM Name N
INNER JOIN Name_Address NA ON NA.ID = N.ID AND NA.Purpose = 'Address'
INNER JOIN Name_Demo ND ON ND.ID = N.ID
WHERE ( (
(
SELECT Count(*) FROM dbo.asi_SplitString(Branch_Offices,',')
WHERE ELEMENT = 'PED') > 0 )
)
If I change the compatibility to 90, the query works fine. My question is, how do I use this function in compatiblitity 80? How do ASI use this function?
Thanks,
Neil
What version of iMIS are you
What version of iMIS are you using? We use compatibility level 90 in our internal development and testing for the iMIS 15.x versions of iMIS.