sp_OACreate - Creates an instance of an OLE object
sp_OAMethod
- Calls a method of an OLE object.
sp_OADestroy
- Destroys a created OLE object
sp_OASetProperty
- Sets a property of an OLE object to a new value
sp_OAGetProperty
- Gets a property value of an OLE object.
sp_OAStop
- Stops the server-wide OLE Automation stored procedure execution environment
- ClrIntegrationEnabled
- OleAutomationEnabled
- XPCmdShellEnabled
Sample Stored Procedure Query:
declare @sUrl varchar(4000),@param1 varchar(100),@param2 varchar(100),
@obj int,@response varchar(800),@MobileNo varchar(50),@MovieName varchar(50), @SmsId int
select @RowCount =
count(*)
from tbl_SMSAlertMovie where status is null
while (@RowCount > 0)
begin
top 1 @SmsId =SmsId, MobileNo=MobileNo,@MovieName=MovieName from tbl_SMSAlertMovie where status is null
'http://192.168.17.17:8080/webservice.aspx?'
sp_OACreate
'WinHttp.WinHttpRequest.5.1', @obj OUT
sp_OAMethod
@obj,
'Open',
NULL,
'GET', @sUrl, false
sp_OAMethod
@obj,
'send'
sp_OAGetProperty
@obj,
'responseText', @response OUT
sp_OADestroy
@obj
count(*)from tbl_SMSAlertMovie where status is null
EnJoY!!!!...
CoOoOlLlL.....