Azure Table Designer - azure

I have an Azure test site and I'm attempting to hook it up to an Azure SQL database. I used the Azure portal to create a new database. Since the database was successfully created, I then opened SSMS 2012 and connected to the server and database. I expected to be able to create new tables, etc. through SSMS using the standard Create Table GUI (the one that lets you enter the column name, Identity, data type, etc. in grid format), but SSMS 2012 doesn't seem to have a table design window. Am I missing something? Is there an OOB release for this? I'm running VS 2012 Ultimate, SSMS 2012 and I already have the VS2012 Azure SDK.

Why not use the online portal? The same portal you used to create the database allows you to build tables using a grid format as you are describing. Just click on the Design button at the bottom left, then click on New Table at the bottom and off you go. You can also create indexes, foreign keys and so forth.

I think you should have a look on the SQL Server Data Tool (SSDT) which should be includes in SQL Server 2012. Not sure if it's included in Express but once you installed SQL 2012 you will find a new window in Visual Studio 2012 where you can design your Azure SQL Database in GUI.
I have a blog about this feature but I think it became more simple to install and use.
http://blogs.shaunxu.me/archive/2012/04/28/ssdt-ndash-makes-sql-azure-development-easy.aspx

Related

Unable to display SQL Azure table definition in Visual Studio 2013

The error I am getting is:
Problem loading: The designer encountered an error while loading the table definition
I can view the data within the tables inside VS just fine and can even query the data too. This is a fresh install on my computer.
What I have tried:
Tried viewing the table in both "Server Explorer" and "SQL Server
Object Explorer."
Checked if my login credentials has permissions to
create tables in the "Management Portal."
Installed SSMS and still cannot show the design of the table
Tried connecting to the database using OLE DB and SQL Server data providers, but I still get the same issue
Added my IP connection to the server firewall and turned on "Windows Azure Services"
Set the connection timout counter to zero
This is the image of my error. I generated a very simple user table just for testing purposes from the Management Portal.
This is a simple test to connect to the Azure database without using a project template. This is my first time using SQL Azure just to warn you. Sure I can just stick to using the Management Portal to change the table definition and stuff like that, but I was wanting to keep everything in one program.
I have found this issue only applies when using the new "Basic/Standard" tier of databases in Azure. If you switch back to the older style "Web/Business" tiers it will start working again.
I found this on a Microsoft forum after struggling for hours. It still takes an age to load, but with the preview SSDT tools, I did get a visual editor for the first time.
Posted by Microsoft on 1/7/2015 at 1:59 PM:
This bug has been fixed in the Preview release to support Azure SQL Database Update V12
See http://blogs.msdn.com/b/ssdt/archive/2014/12/18/sql-server-database-tooling-preview-release-for-the-latest-azure-sql-database-update-v12-preview.aspx for details of this.
The fix will also be included in our next full (non-Preview) release.
Thanks,
Kevin Cunnane,
SQL Server database tooling team

How to add SQL DB tables to Azure?

I have signed up for Azure, created a SQL Server item, but cannot see how to, from there, create a DB (create and design the tables, IOW the DDL part of things). Is this something I need to do with the SQL Design Tools, and then export this from Visual Studio / import into the Azure account? Or how is it done?
If you don't want to use the SSMS as other have suggested you can use the silverlight management tool online to execute TSQL Commands; the upside of this is that you have designer support which SSMS lacks.
Once you have selected your DB in the Azure portal click the manage button:
From there a new window will open where you will have to log into the SQL Server.
Once you have logged into your SQL Server you will have the option to create new tables, create procedures etc.
One handy hint, if you go into your SQL Azure details screen you will notice a section to retrieve connection string snippets that may come in handy hooking up your back-end to your application:
You can install SQL Server Management Studio to connect with your SQL Azure database, and from there you can create tables in the designer, or by entering SQL queries.
Keep in mind that you have to whitelist your IP address in order to access the database. Azure uses whitelisting, meaning that only authorized IP addresses can connect to the database.
You can connect to your database in Azure through Visual Studio and/or SQL Server Management Studio (SSMS).
Check this link for details.
SQL Azure Management

How to restore my Local database to Windows Azure Database?

I have uploaded my application to Windows Azure Now I want to store My Local database to Windows Azure Database.
Please Suggest me how do I create table and backup the table there?
There are couple of ways to do that:
The most reliable (that I usually use) is using the SQL Azure Migration Wizard
Then you have the "Generate Scripts" option in your SSMS (SQL Server Management Studio 2008 R2 or later). The generate Scripts option does have a feature to make SQL Azure compliant script. It can also script data. But I suggest using method one if you want to migrate data, too. SQL Azure Migration Wizard uses BCP tool, which dumps the data into binary files, while SSMS just generates inline INSERT Statements
SSIS (SQL Server Integration Services) - you can create a Data Transfer task, but I would use it very rare for small DBs.
Export/Import data tier application (using DACPAC package) - this will migrate your schema and can migrate your data as well.
UPDATE 2017-10-24
Azure SQL Database now supports transactional replication from your on-premises SQL Server. You can configure your Azure SQL Database as subscriber and your SQL Server on-premise as publisher. You can read more about database migration options and strategies here: https://learn.microsoft.com/en-us/azure/sql-database/sql-database-cloud-migrate
Update 2017-12-23
SQL Azure Migration Wizard has been replaced by Data Migration Assistant: https://learn.microsoft.com/en-us/azure/sql-database/sql-database-cloud-migrate
If you already have a database on local machine then you can migrate it directly on Azure using SQL Management Studio. Follow these steps:
Right click on the database name in SSMS
Follow the wizard that appears then
There are a few ways in which to achieve this functionality.
SQL Azure Import/Export. "DACPAC" & "BACPAC"
Microsoft Codename "Data Transfer"
SQL Azure Data Sync Windows Azure SQL Data Sync
Migrating Databases using Import/Export Wizard in SSMS
SQL Azure Migration Wizard (As Mentioned in other Answers)
I'm assuming you're referring to SQL Azure? If so, you'll probably want to use the SQL Azure Migration Wizard # http://sqlazuremw.codeplex.com/
SQL Server 2012 Management Studio and SQL Azure Tools also now has this option I believe.
In SSMS if you right click on the Databases root, there is an option "Import Data-tier Application...", which allows you to restore a BACPAC (you can also right click on a database, and select "Export Data-tier Application..." to export an existing database to a BACPAC).
SQL Server Data Tools enables Visual Studio 2010 with a Data Compare option, which can also be used to move data between two database instances (which would be suited to smaller data patches).

sql azure management portal adding keys

We migrated our mysql database onto sql azure. Logged in to the sql azure management portal. I can see the tables and add columns etc but was not able to figure out how to view existing foreign key constraints on a field (or a way to add foreign key constraints using the UI).
Just curious as to whether this is supported in the UI? Or should we install SQL Server Management studio?
Unfortunately you can't see constraints or relationships using the SQL Azure Management Portal. I suggest you use SQL Server Management Studio 2008 R2. The express edition works fine:
http://www.microsoft.com/download/en/details.aspx?id=7593
However, even using Management Studio you don't get the full designer support, but you can at least see the foreign keys.

SQL Azure & VB.NET ?

I signed up for a free 30 of Azure. I logged in, created a database. I am able to connect (=Test Connectivity). But that's it. I don't see anyway to create tables, etc. Also how can I connect this db to vb.net (I am using vs.net 2010)?
To point SSMS at the DB, simply specify the server and user name. The server name was assigned when you created the SQL Azure database "server" and has a name like .database.windows.net.
Alternatively, you can select the database you want to work with and click on "manage" in teh toolbar along the top. This will launch the "Microsoft Database Manager for SQL Azure". It used to be called "project Houston" and is essentially a silverlight app that lets you perform most basic tasks against SQL Azure.
You might want to look at the visual studio tools and training kit from Microsoft. I beleive you will find your answers there.
You can use SQL Server 2008 R2 Management Studio

Resources