Where to save SQL Table - azure

I created SQL Azure Database and made connection with database using SSMS. When I create a table I have to save it somewhere and no matter where I save it I can't see a table in Object Explorer and cannot link to it with Query. Am I missing something?

It was my problem, I never runed query just tried to save table on my laptop..

Related

Create Login in Azure Sql db with EXTERNAL DATA SOURCE or any other way

USE statement is not supported in azure sql db. I want to create new login in master db from another database (for ex. Abc Database). Please let me know how i can achieve this.
Error ScreenShot
I resolve the problem by changing the database connection string from my code.
Because "USE statement" is not supported in azure sql db , i need to change lot of code. So i hope USE statement will come ASAP in azure.

Back up and restore Azure SQL Database schema

What are the best ways to Back up and restore Azure SQL Database schema in Azure cloud?
I have tried creating bacpac files, but problem with that is, it will be imported as a new database. I want to back up and restore specific schema only within the same database.
Another way i am looking at is creating a sql script file which contains data and schema using SSMS. But here size of the sql script is huge.
Any help is greatly appreciated
We can use bcp Utility for exporting and importing the data in a fast way.
I want to back up and restore specific schema only within the same
database.
There is no native tool for Azure SQL Database that can do backup/restore of some certain schema.
The closest one to the requirements is a bacpac, however it can restore data into the empty or in a new database.
Therefore, a possible option is to move data out and then in using ETL tools like:
SSIS
ADF
Databricks

Best practice to query an Azure database that is being updated repeatedly

I have an Azure database (using SQL Database), and also a separate device that measures floats (not relevant to the question).
As and when the data is being updated, say once every 5 minutes, I wish to update the database so that a new row is being formed with this data. I then intend to connect to PowerBI using the Azure database to form graphs etc.
As mentioned in the title, what would be the best practice? I have done my due diligence and it seems that the best way would just be to update the Azure database. Or should I consider updating a CSV file, then connect the CSV file to the Azure database and update it from there?
Reason why I'm considering to go the CSV file route is because I see that Excel has in-built refresh function, but I couldn't find anything from the Azure side.
https://support.office.com/en-ie/article/refresh-an-external-data-connection-in-excel-1524175f-777a-48fc-8fc7-c8514b984440
If you want to use Excel, you can see this Azure official document: Connect Excel to a single database in Azure SQL database and create a report.
Connect Excel to a single database in Azure SQL Database and import data and create tables and charts based on values in the database. In this tutorial you will set up the connection between Excel and a database table, save the file that stores data and the connection information for Excel, and then create a pivot chart from the database values.
Then, you can use the "Refresh Data" and try the tutorial you have found.
Hope this helps.

How to check/view data in SQL DB in Microsoft Azure

I have a web app in azure which let user to input some data. I want to save them in sql db which I created in azure. Is there a way to check/view the entered data . I am referring to something like "mysql workbench for mysql"
You may also view the data in your browser using Azure Portal
Select your DB and then "Query editor" in the menu and start querying.
You can download sql server management studio to access your data. Also you can you Visual Studio Community Edition or Visual Code.
Below is the link for download
http://go.microsoft.com/fwlink/?LinkID=828615
you also need to configure the sql database firewall to get access to your database. A Step by Step tutorial to configure that can be found in the following URL
https://azure.microsoft.com/en-us/documentation/articles/sql-database-configure-firewall-settings/
Alternatively, you can query your database via SSMS: https://azure.microsoft.com/en-us/documentation/articles/sql-database-manage-azure-ssms/
Free to use: MSDN SSMS download page
Once connected to your database, simply right clicking on a table in the Object Explorer and selecting 'View top 1000 rows' would give you a view of - you guessed it- the top 1000 rows. You may query against the database there with any SQL query; For instance- removing the TOP 1000 from the generated query will return all of the data in that table.

Add table to SPDatabase object

I have created a database using a SPDatabase class.
How can i add a table to it?
and how to execute SQL queries in this database?
Thanx....
Create a seperate, additional database for your custom data to use in SharePoint and just connect it like you do with any ASP.NET database.

Resources