Viewing 15 posts - 31 through 45 (of 60 total)
Proper syntax is:
delete openquery (LINKEDSERVER,'select cols from table where 1=1)
This article explains the original posters error message and proper syntax:
http://support.microsoft.com/kb/270119
OpenQuery requires a result set to be returned,...
November 14, 2006 at 3:54 pm
Bev,
You post is many months back, but figure I'd still reply so others can see the solution. You're issue is different than the original poster.
Proper syntax is:
delete openquery...
November 14, 2006 at 3:49 pm
Proper syntax is:
delete openquery (LINKEDSERVER,'select cols from table where 1=1)
This article explains the original posters error message and proper syntax:
http://support.microsoft.com/kb/270119
OpenQuery requires a result set to be returned, but...
November 14, 2006 at 3:46 pm
Nathan,
Hope this helps...I had to do something similar this week. A snippet from the code I wrote that concerns writing the statment to a temp table and executing the statments.
Kim
--create...
October 25, 2006 at 2:00 pm
Okay, I see I missed something. First, Ninja's RGR'us pointed out I needed to make my own verion of master.dbo.sp_execresultset instead of modifying it, in order to keep the warranty...
October 24, 2006 at 8:52 am
Thanks for the tip -- I will certainly do as you suggested.
October 24, 2006 at 8:12 am
Jono,
I'm doing something similar. I have three databases with the same table and I want to copy the data from one database to another (3 seperate clients who sort of...
October 23, 2006 at 4:27 pm
I did figure out the issue I had. My sproc was created with SET ANSI_NULLS ON. Within my sproc I was calling master.dbo.execresultset. THAT sproc was not created with SET...
October 23, 2006 at 4:14 pm
As it turns out xp_execresultset calls master.dbo.sp_execresultset. THAT sproc was not create with set ANSI_NULLS ON. So, I recreated it that way and everything runs just fine.
October 23, 2006 at 4:11 pm
Hum, obviously you have indeed created this the way all the posts suggest (ANSI_NULLS ON). Just wanted to verify.
Wish I had a solution for you. I have a very similar...
October 23, 2006 at 1:58 pm
What is the value for this (1=ON):
SELECT OBJECTPROPERTY(OBJECT_ID('dbo.tri_InsertUPSShipmentTrigger'), 'ExecIsAnsiNullsOn')
AS 'AnsiNulls'
October 23, 2006 at 1:47 pm
I'm having a similar issue. Let me know what you find and I'll do the same.
There are several posts that instruct you to be sure that you create the sproc...
October 23, 2006 at 11:13 am
My bad. I structured my search a couple different ways and found an answer.
I see this has been asked a million times and xp_execresultset seems to be the answer.
Anyone have any...
October 20, 2006 at 5:10 pm
Would something like this work for you (I didn't set up test data to check the syntax):
select PP.product_id,PP.product_description,ACC.account_number
into ##temp
from dbo.products as PP
inner join other_server_name.db_named.dbo.account_table as ACC on PP.productid = ACC.productid
inner...
October 20, 2006 at 4:24 pm
Viewing 15 posts - 31 through 45 (of 60 total)