Apologies for posing the question incorrectly earlier, but the recommended "already answered" question wasn't what I was looking for.
So I'm using the following:
SELECT definition, uses_ansi_nulls, uses_quoted_identifier, is_schema_bound
FROM sys.sql_modules
WHERE object_id = OBJECT_ID('dbName.viewName')
But I'm not getting the information I thought I'd get. For example, in this create view:
CREATE VIEW [dbo].[vSample]
AS
SELECT dbo.[Docu].docID
FROM dbo.AcctK INNER JOIN
dbo.[Docu] ON dbo.AcctK.docID = doc.[Docu].docID
WHERE (dbo.AcctK.ix = 3) AND (dbo.AcctK.val IN ('SAMPLE1', 'SAMPLE2',
'SAMPLE3', 'SAMPLE4', 'SAMPLE5'))
GO
I want to retrieve, with a query, all of the SAMPLE strings (i.e., SAMPLE1, SAMPLE2...)