I recently installed Sql2012. Connected to my windows azure database using SSMS. My database and all the tables show up within my object explorer. But...this is where I'm scratching my head. When I right click on a table, normally the option panel will have "Select all rows", "Edit all rows", ....etc. but I don't see that. I verified with a my ./SQLExpress instance I have all options.
Any advice? Are there some SSMS settings that need updated?
Azure SQL Database doesn't support all of the options available via SSMS to SQL Server database users. Sometimes it's because of network latency issues (Edit all rows...) and sometimes it's because certain features just aren't supported (like extended sp's).
Related
I have recently started using MS Power BI, and have come across a problem which seems inconsistent, and the answer likewise.
I am connecting to an Azure SQL database, and therefore have chosen this as the data source in the desktop app. Everything seems to be working just fine, and I can create tables, graphs and whatnot. One thing is off, though: When I choose Azure SQL DB as the source, the connection dialog box does not appear to be any different than if I just choose (non-Azure) SQL DB. Puzzling.
The other thing, which is actually the main issue: In Power BI (the website), I can open my published reports, but some of them don't show up, and I get an error message in a pink bar at the top, saying the data source is not available because the gateway can't be reached. I am well aware of this, because I have deliberately stopped the gateway service (PBIEgwService) running locally, because I have read several places that if the data source is Azure, an on-premises gateway is not needed. (E.g.: "Question: Do I need a gateway for cloud data sources like Azure SQL Database?
Answer: No! The service will be able to connect to that data source without a gateway." here: https://learn.microsoft.com/en-us/power-bi/service-gateway-onprem-faq)
So in short: Why does PBI not (always) connect directly to Azure?
And yes, I have checked the credentials. I can connect just fine in PBI desktop.
Are you allowing Azure Services to connect in your Azure SQL firewall?
https://learn.microsoft.com/en-us/azure/sql-database/sql-database-firewall-configure#manage-server-level-ip-firewall-rules-using-the-azure-portal
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.
In the sql server database list here:
https://manage.windowsazure.com/#Workspaces/SqlAzureExtension/Databases
I select a database and at the bottom is "Delete".
I press delete and it processes a little while then says:
Could not delete database 'system-50e5f905-...etc'
I follow a link for more details where it just says:
Bad Request
Extra info
They do not appear to be linked resources anywhere.
I have been able to create and delete a new database.
I have also connected using MS SQL server management studio and I can only see two named databases, none of the databases that have a name format of system-guid for a name.
Databases with the name format system-SOME GUID may be federations.
Deletion (Dropping) of a federation must be done within the database Management Portal for the main database.
Caution: I don't know the ramifications of dropping a federation, so make sure you have backups of data you don't want to loose or research this further.
From https://manage.windowsazure.com/#Workspaces/SqlAzureExtension/Databases
Select the main database
Select "Design your SQL database"
Log on
At the top you see "server > [DB] > Tables", Click [DB]
Federations are shown on this page and you can select them and "Drop Federation"
I deleted my database on Azure using "SQL Server Management Studio" , right click Delete.
using Code First with Update-Database command, it will re Created.
I'm starting using Windows Azure to manipulate my azure databases. I don't have experienced in IT world, I'm just looking a way to backup my database (preferibly in a local computer) and restore it.
I started reading from here:
http://msdn.microsoft.com/en-us/library/jj650016.aspx#copy
And I ran this code:
CREATE DATABASE destination_database_name
AS COPY OF [source_server_name].source_database_name
But I'm not sure if it's working, in the next image, contoso2 is my original database and the another is the copy, and this one does not have any table from the original source.
So, please guide about how to backup my datases not using commercial products.
If you need additional data, please let me know.
I recommend reading Business Continuity in Windows Azure SQL Database which explains the underlying infrastructure available to you and the two main mechanisms for backup - ocpy database and export/import
You have third party products available; some of which don't require you to purchase anything. Here is a good summary which is still valid. You can also use the Export/Import feature available right off the management portal of Windows Azure.
Well it is easy if you are using Sql Server 2012. If you are not then you can install the express version.
Select the database you want to back up in new portal of windows azure https://manage.windowsazure.com
In the footer you will have an option to import/export. Click export. This opens a modal popup. Select the storage account you want to use and type in a appropriate name to save the *.bacpac file.
Once the file is saved to storage, download it to local, open sql server 2012 management studio. Select the database server. Right click on it and in the context menu you will find Import Data-Tier Application. Select the bacpac file from you local and follow the settings.
At the end you will have your data residing on your local machine.
I'm migrating an application to SQL Azure Federation and I d'like to see and edit the tables content without SQL (it's just for testing).
With a standard SQL database (SQL Server or SQL Azure) I can use one of these :
Management Studio (SSMS) to see and edit data : right click on a table > edit top xx rows.
Visual Studio : in server explorer, I connect to my database, right click on a table, and click on "Show table data".
Of course this doesn't work for SQL Azure Federation.
Do you know a tool (even simple), free (if possible), to edit my data in a federation member ?
Btw, you can't use Edit top xxx rows from SSMS when connected to SQL Azure database. This option is disabled (it even is not listed on the context menu).
However it works with Visual Studio (Visual Studio 2012 SQL Server Explorer) though. Which is interesting.
And it works with Federations too. Your Federation Members are actually a separate databases with some strangely generated names. Connect with VS SQL Server Explorer to the SQL Azure Server. Then when you list all the databases in the tree you shall see other Databases, beside your federation root:
Now the only thing left is for you to know which system-xxxxx database corresponds to which federation member. You may be able to find this from that article. The following query might be helpful:
-- Route connection to the federation root
USE FEDERATION ROOT WITH RESET
GO
-- View the federation root metadata
SELECT db_name() [db_name]
SELECT * FROM sys.federations
SELECT * FROM sys.federation_distributions
SELECT * FROM sys.federation_member_distributions ORDER BY federation_id, range_low;
GO
Your task is fairly easy achievable when you have just one federation with only one federation member (because you will only have a single system-xxx-xxx-x DB). But as soon as you split, you will want to find out which exact federation member database you need to talk to.
UPDATE
There is one reliable way to get the exact database name for a particular federation member. You have to connect to the federation member you want to edit data in. For instance if our Federation is named MyFirstFederation and federation distribution key name is FederationKey, and we want to connect to the federation member where data with 10000 for value of Federation key is, we execute:
USE FEDERATION MyFirstFederation(FederationKey = 10000) WITH RESET
GO
On the same context we execute:
SELECT * FROM sys.databases
GO
This will list master and system-xxxx-yyy-zzz. Where the former will be the exact database which holds members with FederationKey values of 10000 (and everything else withing the range of that particular federation member).
Now we know the exact name of the database we want to select in Visual Studio 2012 SQL Server Explorer and will be able to visually edit content. It is a bit slow though, but it is a GUI tool you are asking for.