Updating MS Azure SQL T-SQL stored procedures, functions, tables and Views online in a chromebook without SSMS? - azure

I support some MS Azure cloud solutions that are Azure SQL + Azure Functions C# + Azure Web + JS frameworks. I've been working remote from a Chromebook am able to support 90% of the solution with the exception of SQL stored procedures, tables and views as i cannot install SSMS or SSDT.
Azure has a Query Editor feature in my database i can use to test and query my data, but it won't let me update DDL. The feature warns that it has limited capabilities and to open SSDT for full features.
Any good option to edit my MS-SQL DDL online/web based without a Microsoft Client?
incidently... Is it possible to update Azure SQL DDL from a Azure Function in code with enough rights?

Use the Linux applications and install Azure Data Studio.
Firstly, you need to enable Linux applications on your Chromebook. You can do so in Settings, Linux (Beta). The Chromebook will then take a little while setting up the environment.
Once done, download the latest version of Azure Data Studio and download the .deb version of the file: https://learn.microsoft.com/en-us/sql/azure-data-studio/download-azure-data-studio?view=sql-server-ver15.
Once Downloaded, open Files on your Chromebook and then copy it to the Linux Files Folder you will now see over on the left hand side. Then open your applications menu and open the (new) terminal application. Then run the command:
sudo apt update && sudo apt dist-upgrade
Answer yes if there are any updates to install. Then run:
sudo dpkg --install azuredatastudio-linux-1.16.1.deb
Obviously replace the name of the file if it differs, and I assume that you put the file in the linux area not in a directory.
You may need to run sudo apt install -f afterwards, to fix any dependancies, and then the dpkg command again.
Once done, you can then find Azure Data Studio in your applications and run it; like so:
Note, some commands are harder to do on a Chromebook if you retain the Search key as the Search Key, and don't enable the Function buttons are the top. If you do, I suggest setting up some custom shortcut keys for command commands. For example, on my Chromebook, I use Ctrl+K,Ctrl+R for execute query.

Related

Do I need docker to run azure data studio on linux ubuntu?

I'm trying to cofigure Azure data studio on my linux laptop. I'm following the steps the microsoft docs are showing but when I try to add a new connection it says "Login failed for user ''." So do I need docker to run it?
Based on my research docker is not required to run data studio on linux.
follow with these steps.
1) We can install Azure Data Studio on Ubuntu 18.10 using both the GUI and command line mode as well. Tried with Installing the tool using the GUI mode. To do so, open the browser (by default Mozilla is installed on Ubuntu OS) and go to this URL.
2) In Linux, we can see a different kind of download available
Deb (Debian software repository)
Rpm: Package in .rpm format
Tar.gz: Files in a compressed format.
3) we will perform the Debian installation for the Azure Data Studio. It is a graphical method to perform the installation on Ubuntu. Download the .deb file and save it in the desired location.
4) Once Debian package (azuredatastudio-Linux-1.2.4.deb) download is successful, double-click on the file to launch the installation as shown below.
5) Before installation, authentication is required for this. Enter the administrator user id and password we created while installing Ubuntu 18.10.
6) Once the installation is complete, you can see the Remove box in red color. It shows that we have installed Azure Data Studio successfully.
7) In the Ubuntu application, you can verify the Azure Data Studio is present.
8). Double click on it to launch the Azure Data Studio initial screen.
9). Enter the connection details like instance name, authentication method (SQL authentication), database name (if we want to connect to the specific database) and the server group
10) And we are connected to the SQL Server preview version from inside the virtual machine hosting Ubuntu 18.10. You can verify the server instance version, edition, computer name from the server dashboard launched after connecting to the SQL Server.
For more details refer this document

How to connect Excel to Oracle with PowerQuery

I am trying to connect Excel to my company's Oracle Database. According to the following instructions it should be fairly easy: https://www.wikihow.com/Connect-Excel-to-an-Oracle-Database.
However it has been impossible and quite frustrating so far.
I have followed two different approaches that I've found online.
FIRST APPROACH: installed ODAC from Oracle's Universal Installer
I went to this site https://www.oracle.com/database/technologies/dotnet-odacdev-downloads.html and downloaded the ODAC 12.2.0.1.1 file.
Then, I went through the installation process basically just clicking 'next' on every step.
Note 1: (I don't know if this might be important), in the Database Connection configuration tab I did not fill in any of the information (simply because I didn't know what to put there). It said that if information wasn't filled in, it would not create the TNSNAMES.ORA file.
Note 2: After finishing the installation it says 'run the SQL scripts located in the ... directory after the install'. Which I didn't do, again, because I didn't know how.
After the installation finished a directory was created in the following location: C:\app\client\myUserName\.
The directory goes all the way down to C:\app\client\myUserName\product\12.2.0\client_1, and it contains a bunch of files and folders.
I noticed that no environmental variable was created.
SECOND APPROACH: installed ODBC instant client
I went to this site https://www.oracle.com/database/technologies/instant-client/winx64-64-downloads.html and downloaded both instantclient-basic-windows.x64-19.6.0.0.0dbru.zip and instantclient-odbc-windows.x64-19.6.0.0.0dbru.zip.
Then I created the directory C:\Oracle\instantclient_19_6 and unziped both folders contents into it.
Finally, I ran odbc_install from the command_line, as an administrator, but got Oracle ODBC Driver with same name already exists.
Note: in this case I also noticed that no environmental variable was created.
RESULTS:
When I go to Excel and click on Data\From Database\From Oracle Database I keep getting the same error as before: The recommended provider ('Oracle.DataAccess.Client') is not installed. You can continue with your current provider, however it has been deprecated and may not work properly.".
I was able to solve it by installing the 64 bits version of Oracle's client. Its located at https://www.oracle.com/database/technologies/112010-win64soft.html, file win64_11gR2_client.zip.
Although the message "The recommended provider ('Oracle.DataAccess.Client') is not installed. You can continue with your current provider, however it has been deprecated and may not work properly." remained, I was able to connect after ignoring it.
I have also tried a bunch of approaches and finally got rid of the 'Oracle.DataAccess.Client is not installed' error.
Install Oracle Client for Microsoft Tools:
ODP.NET, Oracle Developer Tools for Visual Studio (Code), and ODAC
https://www.oracle.com/database/technologies/net-downloads.html
Oracle Client for Microsoft Tools installs and configures ODP.NET to support 64-bit Microsoft tool connections with Oracle database. It supports connecting with Power BI Desktop, Power BI service, Excel, SQL Server Analysis Services, SQL Server Data Tools, SQL Server Integration Services, SQL Server Reporting Services, and BizTalk Server.
I have installed Oracle Client for Microsoft Tools 19.17 for (Microsoft Windows x64 (64-bit)) (V1032890-01.exe).
Alternatively, you could follow the learn more link:
Connect Microsoft Tools to Oracle Databases
https://www.oracle.com/database/technologies/appdev/ocmt.html
Tutorials > Power BI Desktop: Connect to Oracle Database
https://www.oracle.com/a/ocom/docs/database/microsoft-powerbi-connection-adw.pdf

Windows Azure Storage Emulator failed to install

I almost wasted my whole day trying to install Windows Azure Storage Emulator but somehow it is not getting installed..
The log is showing me this error : Sql instance not found. I tried re-installing Sql server 2012 but it did not help. It is not able to find Sql instance at all..
Here is the detailed log : http://pastebin.com/KUW4mjuf
I tried googling around but ended up with no solution at all.
:-( I can't go ahead without Azure Storage emulator..
I hope somebody here will help.
There may be an issue with the sqllocaldb user database v11.0 during the install.
You need to recreate it (see below).
As far as I'm concerned, my first install attemp left some files in my c:\users[user] directory :
WAStorageEmulatorDb30.mdf
WAStorageEmulatorDb30_log.ldf
(Your version numbers may differ.) The sqllocaldb logs would mention these files still existed and it would not erase them.
I just deleted them manually.
Recreated the v11.0:
sqllocaldb stop v11.0
sqllocaldb delete v11.0
sqllocaldb create v11.0
And reinstalled.
For those who has new Azure Storage Emulator 4.5 and SQL Server 2016. As MWood mentioned, check c:\users[UserProfile] directory and delete any AzureStorage* databases found.
Then open command window and write same commands, but change database to V13 (the number depends on the SQL server database version installed on your machine).
sqllocaldb stop v13.0
sqllocaldb delete v13.0
sqllocaldb create v13.0
Then install Azure SDK tools again.
I had this problem too. But I solved it with it:
Programs and Features
Selected Visual Studio 2015
Selected "Change -> Modify"
Checked "Microsoft SQL Server Data Tool" and Click "Install"
This didn't work for me. I'm using Parallels on OSX and have an automatic "network profile" with a long path name for my desktop and download folders. Parallels does this automatically
Another solution that worked for me:
Manually download the MSI referenced in the error log
Create a new LOCAL username (not passport/LiveID connected)
Install the MSI from C:\ NOT downloads (where Parallels is backing it as a UNC)
I think it's hitting a 255 char limitation in Windows UNCs'
To keep my laptop responsive during startup, I have changed the sqlserver (express) service startup to manual during its installation. Emulator failed without any error that sql server is not running. On seeing this question, I realized to start the sql server service and then, the installation (emulator 3.2) wen through.
I was able to resolve this problem for myself by running:
"C:\Program Files\Microsoft SQL Server\110\Tools\Binn\SqlLocalDB.exe" create MSSQLLocalDB
Simple but effective.

SQL Server 2012 Express checking and silent installation

We need to perform the following using InstallShield 2013, can someone please guide me:
Check if SQL Server Express is installed in the user's machine or not.
If present, what is the version that is present.
If the version is not 2012, then we need to install SQL Server Express 2012 silently in the background.
Give write access on a folder for a particular login (Sql service)
After installation of SQL Express 2012, we need to restore a database from a .bak file.
After restoring the db, how to run some sql scripts?
Please provide me any link or guidance on how to acheive the above objectives. I am also parallely trying to read the documentation and blogs, but they are vast.
Thanks in advance,
Pavan
There are different ways to achieve it. You can do a check using prerequisite and get it installed. You can use custom action or install script to do the silent install of SQL server after doing registry check.
once installed, using the script you can restore the database, and installshiled basic msi provides options to include the sql scripts and run it or using the installscript you can run the sql scripts .

Where does Windows Platform Installer (WPI) save the downloaded files in my computer?

I have a network with one server that is connected to the internet and some clients that are not.
I want to download and install Microsoft products on my server first and let the client computers download the installer later from the server.
The questions are
where does the WPI save the downloaded files?
is it possible to run WPI and force it to install the Microsoft products from the already downloaded files rather than downloading again from Microsoft's server.
Note: Assume there is no license issue, hopely :-)
It will be cached under %LocalAppData%\Microsoft\Web Platform Installer\installers if you are on Vista or above, or in the equivalent location on XP (there is no %LocalAppData% environment variable in XP).
If the products are downloaded, they will be installed again from the cached location, unless they were updated, which would change their hash and force Web PI to download them again. Moreover, you can copy the cache folder from one computer to another to the same location and Web PI will pick it up automatically and install products from cached installers.
Microsoft has released a tool called Web Platform Installer v4 Command Line which has a switch to prepare an offline installation. Quote from the page above:
Creates an offline cached copy of a specified set of products and
applications so you can install while offline
Example:
Ex: >WebPICMD.exe /Offline /Products:WebMatrix,SQLExpress /Path:c:\OfflineCache
The above will create an offline cache at c:\offlineCache that contains WebMatrix and all it's possible dependencies!
Update 2017
The link above is no longer valid (404). The page i found is
Web Platform Installer v5 Command Line (WebPICMD.exe) - RTW release
WebPI Command line
The Web Platform Installer v5 (WebPI) command line tool is now
available as part of the WebPI MSI! We've added a bunch of new
features and fix several issues, and now it's ready for it's full
release
On the page are two links
WebPI v5 x86.msi
WebPI v4 x64.msi
Microsoft has released a beta tool that will do this.
In windows 8 I found it here
%AppData%\Local\Microsoft\Web Platform Installer\installers

Resources