2013-10-09 320 views
1

我已經在SQL Server 2008傳遞SQL參數OPENQUERY的查詢

Select * from 
    (Select T.Col1, T.Col2 
    from openquery('server','select * from table 1 where date= '+ @StartDate +') R 

@StartDate是參數下面的SQL查詢。我收到錯誤的語法'+'期待'''''''''''''

回答