DECLARE @searchText NVARCHAR(100) = '%sk-ant-api03%' DECL...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Meta Stack Exchange

Q&A for meta-discussion of the Stack Exchange family of Q&A websites

DECLARE @searchText NVARCHAR(100) = '%sk-ant-api03%'
DECLARE @dateFrom DATETIME = '2024-01-01' -- YYYY-MM-DD
DECLARE @dateUntil DATETIME = '2024-05-24' -- YYYY-MM-DD


-- Searching in Posts
SELECT Body
FROM Posts
WHERE Body LIKE @searchText AND CreationDate >= @dateFrom AND CreationDate < @dateUntil

Enter Parameters

Options:
Switch sites
loading Hold tight while we fetch your results