Ekinlikler
31 Mar 23 - 2 Nis 23
En büyük SQL, Fabric ve Power BI öğrenme etkinliği. 31 Mart – 2 Nisan. 400 ABD doları tasarruf etmek için FABINSIDER kodunu kullanın.
Bugün kaydolunBu tarayıcı artık desteklenmiyor.
En son özelliklerden, güvenlik güncelleştirmelerinden ve teknik destekten faydalanmak için Microsoft Edge’e yükseltin.
You will need to configure your development environment with the prerequisites in order to develop an application using the Ruby Driver for SQL Server.
The Ruby Driver uses the TDS protocol, which is enabled by default in SQL Server and Azure SQL Database. No additional configuration is required.
Download Ruby Installer
If your machine does not have Ruby, install it. For new ruby users, we recommend you use Ruby 2.2.X installers, which provide a stable language and an extensive list of packages (gems) that are compatible and updated. Go the Ruby download page and download the appropriate 2.1.x installer. For example if you are on a 64-bit machine, download the Ruby 2.1.6 (x64) installer.
Install Ruby
Once the installer is downloaded:
a. Double-click the file to start the installer.
b. Select your language, and agree to the terms.
c. On the install settings screen, select the check boxes next to both Add Ruby executables to your PATH and associate .rb
and .rbw
files with this Ruby installation.
Download Ruby DevKit
Download DevKit from the RubyInstaller page
Install Ruby DevKit
After the download is finished:
a. Double-click the file. You will be asked where to extract the files.
b. Click the "..." button, and select "C:\DevKit". You will probably need to create this folder first by clicking "Make New Folder".
c. Click "OK", and then "Extract", to extract the files.
Open cmd.exe
Initialize Ruby DevKit
> chdir C:\DevKit
> ruby dk.rb init
> ruby dk.rb install
> gem inst tiny_tds
Open terminal
Install Ruby Version Manager (rvm
) and prerequisites
> sudo apt-get --assume-yes update
> command curl -sSL https://rvm.io/mpapis.asc | gpg --import -
> curl -L https://get.rvm.io | bash -s stable
> source ~/.rvm/scripts/rvm
rvm
to install Ruby> rvm install 2.3.0
> rvm use 2.3.0 --default
> ruby -v
Ensure that the output of the last command indicates you are running version 2.3.0.
> sudo apt-get --assume-yes install freetds-dev freetds-bin
> gem install tiny_tds
Note: macOS already has Ruby pre-installed, as the OS has a dependency.
Open terminal
Install Homebrew package manager
> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
> brew install FreeTDS
> gem install tiny_tds
Ekinlikler
31 Mar 23 - 2 Nis 23
En büyük SQL, Fabric ve Power BI öğrenme etkinliği. 31 Mart – 2 Nisan. 400 ABD doları tasarruf etmek için FABINSIDER kodunu kullanın.
Bugün kaydolunEğitim
Modül
Azure geliştirme için geliştirme ortamınızı hazırlama - Training
Bulutta barındırılan çözümleri oluşturmanıza, dağıtmanıza, izlemenize ve ölçeklendirmenize yardımcı olması için gereksinimlerinize uygun IDE’yi seçmeyi ve yüklemeyi öğrenin.
Belgeler
Step 3: Proof of concept connecting to SQL using Ruby - Ruby driver for SQL Server
Step 3 is a proof of concept, which shows how you can connect to SQL Server using Ruby. The basic examples demonstrate selecting and inserting data.
Step 2: Create a SQL database for Ruby development - Ruby driver for SQL Server
Step 2 of this getting started guide involves creating a database in SQL Server or Azure SQL Database for this Ruby sample.