CREATE COMMA SEPERATED LIST OF VALUES TO SEARCH BY CHARINDEX
E.DIN Editor • May 4, 2020
---CREATE COMMA SEPERATED LIST OF VALUES TO SEARCH BY CHARINDEX
DECLARE @CSVIDs varchar(max)
SELECT DISTINCT @CSVIDs = STUFF((SELECT DISTINCT text_id /*EntityNames*/ +',' FROM #c FOR XML PATH ('')) ,1,0,'') -- (xwaid)
--USAGE OF CSV STUFFED
IF (object_id('tempdb..#SearchResultList') is not null) DROP TABLE#SearchResultList;
IF (object_id('tempdb..#SearchResultList') is not null) DROP TABLE#SearchResultList;
SELECT DISTINCT en.ID, en.OPID, en.EntityNames, en.WAID
INTO #SearchResultList
from myDatabase.dbo.EntityNames en
where
charindex(ce.OPID,@CSVIDs) > 0
Title: Base64 Encoding With Simple Salt (and decoding)
XPCMD_SHELL Move & Load Data from Directory
***** My Valid Data Monitor **** XML OUT *** HTML EMAIL DELIVERY *****IF OBJECT_ID('tempdb..#tCustomerID') IS NOT NULL DROP TABLE #tCustomerID select distinct mm.CustomerID Into #tCustomerID from myDatabase..myTable (nolock) mm left join myDatabase.dbo.myOtherTable (nolock) mo on mm.refID = mo.id left join myDatabase.dbo.myOtherTableDetail (nolock) mod on mo.id = mod.myOtherTableid and mm.SearchValue = mod.SearchValue where mm.refID is not null and mm.quantity is not null and mod.SearchValue is nullIF Exists (Select 1 From #tCustomerID)BEGIN DECLARE @xml NVARCHAR(MAX)DECLARE @body NVARCHAR(MAX)SET @xml = CAST(( SELECT [CustomerID] AS 'td' FROM #tCustomerID ORDER BY CustomerID FOR XML PATH('tr'), ELEMENTS ) AS NVARCHAR(MAX))SET @body ='
'--SELECT @body exec msdb.dbo.sp_send_dbmail @profile_name = 'dbmailProfile' ,@recipients = 'usergroup@mydomain.com' ,@subject = 'My Valid Data Monitor' ,@body = @body ,@body_format = 'HTML'END
My Valid Data Monitor
CustomerID |
---|
Turn Up! Not every microphone has the same base volume for transmitting your voice through your computer to whoever or whatever is on the other end of the exchange. Some microphones have a higher volume as compared to others, and some microphones have a volume that is so low that the person on the other […]
The post How to Turn Up Mic Volume in Windows 10 – Appuals.com appeared first on TekPreacher.
'+@UNCPathAndLogTable+'