Unable to display SQL Azure table definition in Visual Studio 2013 - azure

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

Related

Sql Azure Database in azure show This asset was not found, it may have been deleted but is running

I'm having an issue when I try change settings to Sql Azure Database at Azure, I see:
"This asset was not found, it may have been deleted"
But the access to database by Management Studio is working.
After moving my SQL Server (and it´s only database) between resource groups I had the exact same issue.
SQL Server was listed under "All Resources".
SQL Database had disappeared and was not listed undier "All Resources".
I could see my database if I clicked my SQL Server -> SQL Databases. status was "Online".
If I clicked the database I got the exact same error.
My database was always accessible from SQL Management Studio. Renaming the database in Management Studio to something different and then back to it´s previous name fixed the problem. Now it´s visible again under "All Resources".
This error will usually happen,
when you delete the resource and forget to refresh the page for a while
The issue is usually related to invalid operations with the resource group. For example, assigning a server/database to a resource group that doesn't exist.
Go on your dashboard and delete any shortcut to your database and its server.
Go to the All resources tab on the left blade of the Azure portal and search for your database. Click on it.
Pin the database to the dashboard again by clicking on the pin icon on the top right corner.
Thanks to all who tried to help me, I did not understand at all because, but it seems that maybe it was a problem in azure as such, this problem was presented to me by 3 database, what I did was try a "madness" and was renombrar the database through the Management Studio and once completed was presented in the Azure dashboard.

How can I deploy my database from SQL Server 2008 Express to Azure SQL Database

I am using Visual Studio Community 2013, SQL Server 2008 R2 Express Edition for an MVC web application using entity framework code first migrations for my database.
I am trying to get my local application hosted on the Microsoft Azure platform.
I have registered for a trial account which expires in 30 days, and deployed my MVC5 app out which has been successful.
However, this app requires a database which I am struggling to deploy.
What is the easiest way to get my database deployed out to Azure as I do not seem to have the :
"Tasks" -> "Deploy Database to Microsoft Azure SQL Database" option available to me in SSMS.
I have extracted a Data-tier Application of my local database and have it stored on my C drive, however if I connect to my Azure Account in a second window, and right click the server then select Deploy Data-tier Application, it fails on "Creating schema object in database" with the following error:
TITLE: Microsoft SQL Server Management Studio
An exception occurred while executing a Transact-SQL statement or
batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------ ADDITIONAL INFORMATION:
Users cannot be mapped to certificates, asymmetric keys, or Windows
logins in this version of SQL Server. (Microsoft SQL Server, Error:
40528)
I'm assuming its tried to create my local account plus the IIS APPPOOL account I had to set up to host the website on my local network, however I do not see a way of removing them from the .dacpac export.
When I refresh the Databases node, there is still no database, I'm fairly lost now as to how I might get my db deployed to this server?
If you can extract a compatible Data-tier application and then Deploy it to your target server using your current version of Management studio, then this approach should work, see this link for more reading on ensuring your database is compatible.
Failing this, as was in my case. I downloaded Management Studio 2015, which gave me the option to deploy database to Azure by simply right clicking the required database.
Again, this threw up the error regarding my database level IISAPPOOL user, but not my server account user. As a way around this, I took a backup/restore of the database and removed this user then deployed the copy database obviously minus the problem account.
Now all that was left to do was add a transform to my Release web.config with the Azure connection string as provided on the Azure dashboard, and re-deploy the website.
Problem solved.

How to create tables in windows azure?

I am new to windows azure.Can anyone please tell me the process of creating database and tables in windows azure and how to connect to that connection to application .we have windows azure account .please clarify my doubts.any of pdf books for deploying the rest wcf services in cloud let me know the links.
Thanks,
It is May 2014 and that Silverlight online tool just is not really much better.
Best approach is to use SSMS (SQL Server Management Studio) you can even use the free tools tool.
Connect to your Azure with the portal supplied server url / port ... and then your username /password.
Say you scripted out an existing database tables and want to execute that script, you have much more freedom and control with SSMS than online.
For table creation note that a few caveats, One that is common is that not all of T-SQL is supported and a typical script from another database table(s) you end up needed to strip off the two "ON [PRIMARY]" parts of the create statement
Click on the database server in the management portal. 1st thing you would do is manage the allowed IP Addresses which can access this server/database. Allow your local IP address there. After that you have 2 choices:
Use Sql Server Management Studio - It does not have the table editor and you would need to write T-SQL scripts manually.
Use Silverlight based database management utility - to access this, click on the Manage Url link as shown in the screenshot below.
Since you cannot have wizards for Adding/Editing tables, constraints or keys for Azure DB, even if you have connected it through MS SQL Server Management Studio, you can use RazorSQL for this purpose. It gives you a feeling like you are playing with your azure DB in management studio, same as you do with your normal DBs

Azure Table Designer

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

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