Create runtime Redshift connection
Posted: Tue 25 Sep 2018 09:26
Hi,
Can you share a runtime example of how to create a AWS redshift connection? What's the provider name? I've tried the following with 'PostgreSQL' and 'Redshift' under the ProviderName property, without success. Your help doesn't list all the possible values for it.
I'm using UniDAC v7.3.1
Can you share a runtime example of how to create a AWS redshift connection? What's the provider name? I've tried the following with 'PostgreSQL' and 'Redshift' under the ProviderName property, without success. Your help doesn't list all the possible values for it.
Code: Select all
data_connection:= TUniConnection.Create(nil);
data_connection.ProviderName:= 'Redshift';
data_connection.Server:= 'dw.*****.com';
data_connection.Port:= 5439;
data_connection.Username:= '*****';
data_connection.Password:= '**********;
data_connection.Database:= 'my_data';
data_connection.LoginPrompt:= False;
data_connection.Connect;