Run this command to install the SDK:

npm install cloudmersive-dataintegration-api-client --save


Or add this snippet to your package.json:

  "dependencies": {
    "cloudmersive-dataintegration-api-client": "^2.0.2"
  }


var CloudmersiveDataintegrationApiClient = require('cloudmersive-dataintegration-api-client');
var defaultClient = CloudmersiveDataintegrationApiClient.ApiClient.instance;

// Configure API key authorization: Apikey
var Apikey = defaultClient.authentications['Apikey'];
Apikey.apiKey = 'YOUR API KEY';



var apiInstance = new CloudmersiveDataintegrationApiClient.BackupConvertApi();

var opts = { 
  'tableName': "tableName_example", // String | Name of the table to return
  'inputFile': Buffer.from(fs.readFileSync("C:\\temp\\inputfile").buffer) // File | Input file to perform the operation on
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.dataintegrationBackupConvertMssqlBakToCsvPost(opts, callback);

Run this command to install the SDK:

pip install cloudmersive-dataintegration-api-client


from __future__ import print_function
import time
import cloudmersive_dataintegration_api_client
from cloudmersive_dataintegration_api_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Apikey
configuration = cloudmersive_dataintegration_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'



# create an instance of the API class
api_instance = cloudmersive_dataintegration_api_client.BackupConvertApi(cloudmersive_dataintegration_api_client.ApiClient(configuration))
table_name = 'table_name_example' # str | Name of the table to return (optional)
input_file = '/path/to/file' # file | Input file to perform the operation on (optional)

try:
    # Converts a SQL Server Backup (.BAK) file into CSV for a specified table
    api_response = api_instance.dataintegration_backup_convert_mssql_bak_to_csv_post(table_name=table_name, input_file=input_file)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BackupConvertApi->dataintegration_backup_convert_mssql_bak_to_csv_post: %s\n" % e)

Run this command to install the SDK:

Install-Package Cloudmersive.APIClient.NET.DataIntegration -Version 3.0.2


using System;
using System.Diagnostics;
using Cloudmersive.APIClient.NET.DataIntegration.Api;
using Cloudmersive.APIClient.NET.DataIntegration.Client;
using Cloudmersive.APIClient.NET.DataIntegration.Model;

namespace Example
{
    public class DataintegrationBackupConvertMssqlBakToCsvPostExample
    {
        public void main()
        {
            // Configure API key authorization: Apikey
            Configuration.Default.AddApiKey("Apikey", "YOUR_API_KEY");
            
            

            var apiInstance = new BackupConvertApi();
            var tableName = tableName_example;  // string | Name of the table to return (optional) 
            var inputFile = new System.IO.FileStream("C:\\temp\\inputfile", System.IO.FileMode.Open); // System.IO.Stream | Input file to perform the operation on (optional) 

            try
            {
                // Converts a SQL Server Backup (.BAK) file into CSV for a specified table
                byte[] result = apiInstance.DataintegrationBackupConvertMssqlBakToCsvPost(tableName, inputFile);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BackupConvertApi.DataintegrationBackupConvertMssqlBakToCsvPost: " + e.Message );
            }
        }
    }
}

To install with Maven, add a reference to the repository in pom.xml:

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>


And add a reference to the dependency in pom.xml:

<dependencies>
<dependency>
    <groupId>com.github.Cloudmersive</groupId>
    <artifactId>Cloudmersive.APIClient.Java</artifactId>
    <version>v4.25</version>
</dependency>
</dependencies>


To install with Gradle, add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}


And add the dependency in build.gradle:

dependencies {
        implementation 'com.github.Cloudmersive:Cloudmersive.APIClient.Java:v4.25'
}


// Import classes:
//import com.cloudmersive.client.invoker.ApiClient;
//import com.cloudmersive.client.invoker.ApiException;
//import com.cloudmersive.client.invoker.Configuration;
//import com.cloudmersive.client.invoker.auth.*;
//import com.cloudmersive.client.BackupConvertApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) defaultClient.getAuthentication("Apikey");
Apikey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Apikey.setApiKeyPrefix("Token");

BackupConvertApi apiInstance = new BackupConvertApi();
String tableName = "tableName_example"; // String | Name of the table to return
File inputFile = new File("/path/to/file"); // File | Input file to perform the operation on
try {
    byte[] result = apiInstance.dataintegrationBackupConvertMssqlBakToCsvPost(tableName, inputFile);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BackupConvertApi#dataintegrationBackupConvertMssqlBakToCsvPost");
    e.printStackTrace();
}

Run this command to install the SDK:

composer require cloudmersive/cloudmersive_dataintegration_api_client


<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');



$apiInstance = new Swagger\Client\Api\BackupConvertApi(
    
    
    new GuzzleHttp\Client(),
    $config
);
$table_name = "table_name_example"; // string | Name of the table to return
$input_file = "/path/to/file"; // \SplFileObject | Input file to perform the operation on

try {
    $result = $apiInstance->dataintegrationBackupConvertMssqlBakToCsvPost($table_name, $input_file);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BackupConvertApi->dataintegrationBackupConvertMssqlBakToCsvPost: ', $e->getMessage(), PHP_EOL;
}
?>

Add the Objective-C client to your Podfile:



Add the Ruby client to your Gemfile:

gem 'cloudmersive-dataintegration-api-client', '~> 2.0', '>= 2.0.2'


# load the gem
require 'cloudmersive-dataintegration-api-client'
# setup authorization
CloudmersiveDataintegrationApiClient.configure do |config|
  # Configure API key authorization: Apikey
  config.api_key['Apikey'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['Apikey'] = 'Bearer'
end

api_instance = CloudmersiveDataintegrationApiClient::BackupConvertApi.new

opts = { 
  table_name: 'table_name_example', # String | Name of the table to return
  input_file: File.new('/path/to/inputfile') # File | Input file to perform the operation on
}

begin
  #Converts a SQL Server Backup (.BAK) file into CSV for a specified table
  result = api_instance.dataintegration_backup_convert_mssql_bak_to_csv_post(opts)
  p result
rescue CloudmersiveDataintegrationApiClient::ApiError => e
  puts "Exception when calling BackupConvertApi->dataintegration_backup_convert_mssql_bak_to_csv_post: #{e}"
end

Download and copy the /client folder into your Apex project:

Download Apex Client

SwagBackupConvertApi api = new SwagBackupConvertApi();
SwagClient client = api.getClient();

// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) client.getAuthentication('Apikey');
Apikey.setApiKey('YOUR API KEY');

Map<String, Object> params = new Map<String, Object>{
    'tableName' => 'tableName_example',
    'inputFile' => Blob.valueOf('Sample text file\nContents')
};

try {
    // cross your fingers
    String result = api.dataintegrationBackupConvertMssqlBakToCsvPost(params);
    System.debug(result);
} catch (Swagger.ApiException e) {
    // ...handle your exceptions
}

Install libcurl in your C/C++ project:

libcurl/7.75.0

This code snippet uses the built-in JavaScript XHR request capability


Walkthrough Video