ExecuteImmediate Method

SQLServer.RemoteServer Object

Description

Executes a Transact-SQL statement on a remote server. No results are returned to the application.

Visual Basic

RemoteServer.ExecuteImmediate ( [Command :=] strSQLStatement )

C++

HRESULT pRemoteServer->ExecuteImmediate ( SQLOLE_LPCSTR strSQLStatement );

Elements

Element Type Description

strSQLStatement String SQL statement

Reference

sp_sqlexec