﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / sp_OAMethod / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 00:17:32 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: sp_OAMethod</title><link>http://www.sqlservercentral.com/Forums/Topic1409260-391-1.aspx</link><description>You could also consider switching to use a Linked Server to connect to a remote SQL Server instead of using the OLE Automation routines.</description><pubDate>Sun, 20 Jan 2013 08:08:36 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>RE: sp_OAMethod</title><link>http://www.sqlservercentral.com/Forums/Topic1409260-391-1.aspx</link><description>Have you enabled the OA in the server? Please check this via sp_configure:sp_configure 'show advanced options',1GOreconfigure GOsp_configure 'Ole Automation Procedures'You should see the run_value as 1. If not - set it to 1 and check the code one more time</description><pubDate>Sun, 20 Jan 2013 05:30:37 GMT</pubDate><dc:creator>Damian Widera-396333</dc:creator></item><item><title>sp_OAMethod</title><link>http://www.sqlservercentral.com/Forums/Topic1409260-391-1.aspx</link><description>hello all.I use this:	declare @h int,@objDBC int	 EXEC sp_OACreate 'ADODB.Connection', @objDBC OUT	--------@objDBC =16711422	 EXEC @h=sp_OASetProperty 16711422, 			'ConnectionString', 'Driver={SQL Server};	Server=WIN-00UO3RQ0BM3;Database=MaliGilan; trusted_Connection=Yes'	 EXEC @h=sp_OAMethod 16711422, 'Open'		 print 	@hthis have to returns zero but returns -2147467259.please tell me why this dosen't return zero?</description><pubDate>Sun, 20 Jan 2013 02:23:47 GMT</pubDate><dc:creator>elham_azizi_62</dc:creator></item></channel></rss>