simon (
zupa...@gmail.com) writes:
> If I have connection setting on linked server for "no count" to ON,
> than linked server insert statement doesn't work:
I'm not sure that I understand this. There is no server option "no count";
nor do I recognize it as a connection-string attribute. Could you post
the sp_addlinkedserver call to create the linked server?
> If i remove tick for "no count", than insert works.
> But I don't know what influence will have on other applications on
> that server, so I would like to leave "no count" as it was.
It's not simple to understand what is going on. Running a trace against
the other server may reveal something, but that's far from certain.
Any particular reason you use OPENQUERY and not just four-part notation?
In any case, if you don't want to change the server definition, you could
create a second one for the same server.
--
Erland Sommarskog, SQL Server MVP,
esq...@sommarskog.se
Links for SQL Server Books Online:
SQL 2008:
http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005:
http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx