23786:20140717:164348.953 In odbc_DBselect() query:'select '{"data":[', (SELECT STUFF((SELECT ',' + CHAR(10) + '{"{#WMDEVICEID}":"' + convert(varchar(50),Obor._IDRRef,1) + '",' + '"{#WMDEVICENAME}":"' + Obor._Description + '"}' from [tk16-2013].dbo._reference51 Obor where Obor._Marked = 0x00 and Obor._fld754 like '%Весы%' or Obor._fld765 like '%POS%' FOR XML PATH('')), 1, 1, '')) ,']}' FOR XML PATH('')' 23786:20140717:164349.001 odbc_DBselect() selected 1 columns 23786:20140717:164349.001 End of odbc_DBselect() 23786:20140717:164349.001 In odbc_DBfetch() 23786:20140717:164349.001 odbc_DBfetch() fetched [0 col]: '{"data":[ {"{#WMDEVICEID}":"0xBF0E000C296DDEF311E3A14DFE593A1C","{#WMDEVICENAME}":"Весы 03 (24.63) сыр SM-300"}, {"{#WMDEVICEID}":"0xBF0E000C296DDEF311E3A2D054AE6692","{#WMDEVICENAME}":"Весы 06 (24.66) курица (рыба) SM-100"}, {"{#WMDEVICEID}":"0xBF0E000C296DDEF311E3A3A1221C063B","{#WMDEVICENAME}":"Весы самообслуживания №1 (24.96) Конфеты"}, {"{#WMDEVICEID}":"0xBF0E000C296DDEF311E3A448D44A0456","{#WMDEVICENAME}":"Весы самообслуживания №2 (24.95) Овощи"}, {"{#WMDEVICEID}":"0xBF0E000C296DDEF311E3A448D44A0457","{#WMDEVICENAME}":"Весы самообслуживания №3 (24.94) Овощи"}, {"{#WMDEVICEID}":"0xBF0E000C296DDEF311E3A448D44A0458","{#WMDEVICENAME}":"Весы самообслуживания №4 (24.93) заморозка"}, {"{#WMDEVICEID}":"0xBF0E000C296DDEF311E3A448D44A0459","{#WMDEVICENAME}":"Весы самообслуживания №5 (24.92) Овощи"}, {"{#WMDEVICEID}":"0xBF0E000C296DDEF311E3A448D44A045A","{#WMDEVICENAME}":"Весы самообслуживания №6 (24.91) заморозка"}, {"{#WMDEVICEID}":"0xBF0E000C296DDEF311E3A448D44A045C","{#WMDEVICENAME}":"Весы 08 (24.68) кафе SM-100"}, {"{#WMDEVICEID}":"0xBF0E000C296DDEF311E3A448D44A045F","{#WMDEVICENAME}":"Весы 11 (24.71) кафе SM-300"}, {"{#WMDEVICEID}":"0xBF0E000C296DDEF311E3A448D44A0461","{#WMDEVICENAME}":"Весы 13 (24.73) колбаса (сырный остров) SM-100"}, {"{#WMDEVICEID}":"0xBF0E000C296DDEF311E3A448D44A0462","{#WMDEVICENAME}":"Весы 14 (24.74) колбаса (сырный остров) SM-100"}, {"{#WMDEVICEID}":"0xBF0E000C296DDEF311E3A448D44A0463","{#WMDEVICENAME}":"Весы 15 (24.75) центр. остров SM-100"}, {"{#WMDEVICEID}":"0xBF0E000C296DDEF311E3A448D44A0464","{#WMDEVICENAME}":"Весы 16 (24.76) центр. остров SM-100"}, {"{#WMDEVICEID}":"0xBF0E000C296DDEF311E3A448D44A0465","{#WMDEVICENAME}":"Весы 17 (24.77) центр. остров SM-100"}, {"{#WMDEVICEID}":"0xBF0E000C' 23786:20140717:164349.001 End of odbc_DBfetch() 23786:20140717:164349.002 End of get_value_db():SUCCEED 23786:20140717:164349.002 End of get_value():SUCCEED