Close Text for 5-Vote Closures

0

Please login or register to vote for this query.

(click on this box to dismiss)

Internet of Things Meta

Q&A about the site for builders and users of networked sensors and control devices in the contexts of smart homes, industry automation, or environmental sensors

SELECT ph.id, t.value
                      FROM   posthistory ph 
                             OUTER APPLY (SELECT Substring(',' + TEXT + ',', 
                                                 NUMBER + 1 
                                                 , 
                                                 Charindex(',', 
                                                 ',' + TEXT + ',', NUMBER 
                                                         + 
                                                         1) - NUMBER - 1) 
                                                                        AS VALUE 
                                          FROM   MASTER..spt_values 
                                          WHERE  TYPE = 'P' 
                                                 AND NUMBER <= Len( 
                                                     ',' + TEXT + ',') 
                                                               - 1 
                                                 AND Substring(',' + TEXT + ',', 
                                                     NUMBER 
                                                     , 1) 
                                                     = ',' 
                                                 AND ph.posthistorytypeid = 10) 
                                         t 
                      WHERE  ph.posthistorytypeid = 10 
                             AND ( t.VALUE LIKE '"DisplayName":%' 
                                    OR t.VALUE IS NULL )

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results