So I had some fun with Windows Azure VM and SQL Azure and of coz R
The Goal is to setup RStudio server and have it work with SQL Azure via RODBC
28 sudo apt-get install r-base
Step 2. Install RStudio Server
33 sudo apt-get install gdebi-core
34 sudo apt-get install libapparmor1
36 wget http://download2.rstudio.org/rstudio-server-0.98.1062-amd64.deb
37 sudo gdebi rstudio-server-0.98.1062-amd64.deb
Step 3. Instal ggplot2, unixODBC and RODBC
47 sudo apt-get install r-cran-ggplot2
51 sudo apt-get install unixODBC
52 sudo apt-get install r-cran-rodbc
Step 4. Install FreeTDS and configure the DSN to point to SQL Azure database
123 sudo apt-get install tdsodbc
127 sudo ln -s /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so /usr/lib/libtdsodbc.so
128 sudo ln -s /usr/lib/x86_64-linux-gnu/odbc/libtdsS.so /usr/lib/libtdsS.so
154 tsql -H <azureserver>.database.windows.net -p 1433 -U mike -D <databasename>
155 isql -v sqlserver mike pass
$ cat /etc/odbcinst.ini # or ~/.odbcinst.ini
Driver = /usr/lib/libtdsodbc.so
Setup = /usr/lib/libtdsS.so
$ cat /etc/odbc.ini # or ~/.odbc.ini
Server = <azureserver>.database.windows.net
Database = <database name>