Files
sql-server-samples/samples/tutorials/AzureSqlGettingStartedSamples/ruby/AzureSqlSample/connect.rb
T
akatesmith 50468c14d3 adding azure sql samples
Adding the samples content from extending the getting started website for azure specific workflows
2020-09-15 12:20:56 -07:00

9 lines
301 B
Ruby

require 'tiny_tds'
@client = TinyTds::Client.new username: 'your_user@your_server', password: 'your_password',
dataserver: 'your_server.database.windows.net', database: 'your_database', azure: true
puts 'Connecting to Azure SQL'
if @client.active? == true then puts 'Done' end
@client.close