Chilkat HOME Android™ ASP Visual Basic VB.NET C# iOS (IPhone) Objective-C C++ C Unicode C++ Unicode C MFC Delphi DLL Delphi ActiveX FoxPro Java Perl PHP Extension PHP ActiveX Python PowerShell Ruby SQL Server VBScript
|
(SQL Server) S3 Delete BucketDemonstrates how to delete a bucket. CREATE PROCEDURE ChilkatSample AS BEGIN DECLARE @hr int DECLARE @sTmp0 nvarchar(4000) DECLARE @http int EXEC @hr = sp_OACreate 'Chilkat.Http', @http OUT IF @hr <> 0 BEGIN PRINT 'Failed to create ActiveX component' RETURN END DECLARE @success int EXEC sp_OAMethod @http, 'UnlockComponent', @success OUT, 'Anything for 30-day trial' IF @success <> 1 BEGIN EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT PRINT @sTmp0 EXEC @hr = sp_OADestroy @http RETURN END -- Insert your access key here: EXEC sp_OASetProperty @http, 'AwsAccessKey', 'ABQXXABC83ABCDEFVQXX' -- Insert your secret key here: EXEC sp_OASetProperty @http, 'AwsSecretKey', 'XXXXYYYYabcdABCD12345678xxxxyyyyzzzz' EXEC sp_OAMethod @http, 'S3_DeleteBucket', @success OUT, 'chilkattestbucket' IF @success <> 1 BEGIN EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT PRINT @sTmp0 END ELSE BEGIN PRINT 'Bucket created.' END EXEC @hr = sp_OADestroy @http END GO |
© 2000-2013 Chilkat Software, Inc. All Rights Reserved.