To a Local Machine
OlapConnectionString olapConnectionString = new OlapConnectionString
Name = (string)connectionStringName,
LocalSettings = new LocalSettings
FolderPath = path
var resultOlapString = store.Maintenance.Send
To a Cloud-Based Server
To learn how to connect to a cloud instance, see the Olap ETL article.
The following code sample is for a connection string to Amazon AWS.
If you use the following cloud-based servers, change the parameters accordingly:
var myOlapConnectionString = new OlapConnectionString
Name = "myConnectionStringName",
S3Settings = new S3Settings
BucketName = "myBucket",
RemoteFolderName = "my/folder/name",
AwsAccessKey = "myAccessKey",
AwsSecretKey = "myPassword",
AwsRegionName = "us-east-1"
var resultOlapString = store.Maintenance.Send(new PutConnectionStringOperation<OlapConnectionString>(myOlapConnectionString));