What would be the most effective way to grab the schema + table name in this scenario:
SELECT [t0].[Id], [t0].[CODE] AS [arg0], [t0].[DESC] AS [arg1] FROM [SchemaName].[TableName] AS [t0] WHERE ([t0].[Id] <> @p0)
The outcome needs to be: ‘SchemaName.TableName’ ….
I’m using C#.
Thanks!
Just some good old string parsing with Substrings would be my guess. Some code: