阅读背景:

如何在动态SQL查询中引用字段?

来源:互联网 

I have a dynamic sql query in SQL Server. So I build it, set it to a varible and then I attempt to format a where clause based on a date. However, when I attempt to do this, I get "The multi-part identifier 'FIELD NAME" can not be bound. I beleive this is because the actual tables are in a dynamic from claus so they can't be seen until it is compiled. Any way around this?I have a dynamic sql query in SQL Server. So I




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: