84
85
86
87
88
89
90
91
92
93
94
95
|
# File 'lib/gooddata/cloud_resources/mssql/mssql_client.rb', line 84
def connect
connection_string = build_connection_string
GoodData.logger.info "Setting up connection to MSSQL #{connection_string}"
authentication = @authentication['basic'] || @authentication['activeDirectoryPassword']
prop = java.util.Properties.new
prop.setProperty('userName', authentication['userName'])
prop.setProperty('password', authentication['password'])
@connection = com.microsoft.sqlserver.jdbc.SQLServerDriver.new.connect(connection_string, prop)
end
|