Hi,
I'm trying to execute the following query which produces the SQL below it. I get the error shown at the bottom. I assume it has something to do with the empty brackets but how do I fix it?
Thank You
Dim q = From at In metaData.Analysis Where at.StrInstrumentId = strInstID _
And at.StrSampleType.StartsWith("CCALIB_") _
And at.DtmInjection.Value > dtmBegin _
And at.DtmInjection.Value < dtmInject _
Select at.LngAnalysisId
Query: SELECT [LPLA_1].[lngAnalysisID] AS [LngAnalysisId] FROM [Atlas].[dbo].[tblA2KAnalysis] [LPLA_1] WHERE ( ( ( ( ( [].[LPFA_2] = @LPFA_21)))))
Parameter: @LPFA_21 : Boolean. Length: 0. Precision: 0. Scale: 0. Direction: Input. Value: True.
An exception was caught during the execution of a retrieval query: Cannot use empty object or column names. Use a single space if necessary.
Line 1: Incorrect syntax near '.'.. Check InnerException, QueryExecuted and Parameters of this exception to examine the cause of this exception.