Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
sona
Yak Posting Veteran
68 Posts |
Posted - 2001-10-12 : 05:28:58
|
| I am using openrowset distributed query in a stored procedure.eg. insert into desttable select * from openrowset('sqloledb','sql';'sa';'pass','select * from srcdb.dbo.tablename where ....) I am getting error that"Heterogenous queries require ansi_nulls and ansi_warnings to be set in the connection."I ran the same query in queryanalyser with ansi_nulls on.I got it right.But when i run it in Stored Proc.With same option set on it throws the same error.Iam enclosing the query in a dynamic string. |
|
|
|
|
|