How to create tables in windows azure? - 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

Related

SPFx to connect to local SQL Server Tables,Stored Procedures & view.. Approaches to follow

I am working on a migration from SharePoint 2010 to SharePoint Online. Where inside the on-premises the customer has a configurable Web Part (Server-side of course), which allow users to do the following:-
Specify a connection string to connect to on-premises SQL server
Specify the Table or Stored Procedure or View to connect with.
optionally to pass a Parameter to the Database.
After that the web part will show the results from the database and allow the users to filter the data which will be shown in a tabular format.
Here is a screenshot of the web part setting:-
Here is a screenshot of a result from one web part instance:-
So can we build similar web part using SPFx? If the answer is Yes, then is there an available 3rd party web part we can benefit from? Finally , i am also open to other approaches to achieve our work other than build/using SPFx web part.
Please note that I am already aware that i can create API for the DB and connect SharePoint Online to On-prem DB using gateways.. but my main question is; how we can develop a dynamic web part (similar to the current on-prem web part), which allow us to show & filter data from on-prem database's Tables,Views & Stored procedure, by just specifying which components (table,view or Stored Procedure) we want to show the data from .. Is there a documentation to create such SPFx web part? or if there are 3rd part SPFx web part that we can benefit from?
You have two possibilities to solve this challenge:
If you only have the possibility to refactor this Farm Solutions
Web Part to SPFx, consider using a local data gateway to
help as an artifact to generate the connections from the local
environment to the cloud, and suddenly, you can persist these
registered connections into a restricted access SharePoint List (for example) and consume with a combo box. But if you
can't make progress with this approach, you'll need to consider the
2nd possibility (this one is more difficult);
Develop a Provider-Hosted SharePoint Add-In, which can be hosted on on-premises IIS and can connect to your various on-premises databases as a shared connection string in your example image above.
I've using Microsoft Graph Connector to pull On-prem SQL data into Microsoft Search (via Microsoft API), and then combine that with PnP Modern Search for query/filter results by selecting Graph as data source.
This feature is listed under MS Search & Intelligence. You can
Specify a connection string to connect to on-premises SQL server
Specify the Table or Stored Procedure or View to connect with
-- You define it in the PnP <Modern Search web part. Note that you can only filter/query/refinable if you've defined it in step 1 or 2 above.

Looking for suggestions for running a VB6 application in the "cloud"

I have a Win32 application written in VB6 that uses an MS Access database as its data file.
I have about 30 clients who use this application. Each currently has it setup in their local network. Some clients have a Terminal Server for staff to access their network remotely.
A number of my clients are inquiring about the possibility of using the application in the cloud.
I am considering the possibility of ultimately making the application web based in some form, however that will take many months to do. So, in the meantime, I am looking for suggestions as to how clients could run this application in the "cloud".
Would it be possible to run it using Microsoft Azure in some way?
I am also wondering whether I could rent a Virtual Private Server myself, and then set it up to allow multiple clients to connect to it (with each using their own individual data file). My main question around this option is whether there would be additional license costs for users who need to connect (eg. like the old Terminal Services "Client Access Licenses").
One function of the application is that users are able to "attach" electronic files (word documents, pdf's etc) to file notes. These "attachments" are stored in a subfolder of the data file location (ie they are not stored in the data file). So the solution must be able to support uploading local documents to the "cloud" service.
Any ideas would be most welcome.
Many thanks,
Rohan
You could try it with "Virtual Machine" feature of MS Azure.
Acces portal.azure.com
In the left navigation bar, choose "Virtual Machine"
Click "Add", type "windows" into the search field & press
Enter
Choose the Windows VM you want
Connect, upload your VB6 app & test it...
Please be inform that some Windows VMs require MSDN subscription or cost very much.
The Azure feature you are looking for is likely Azure RemoteApp. It allows for desktop applications to be installed in the Azure "cloud" and then used by users from any device using Remote Desktop Services functionality. This way you can control the environment where the application is installed, and not have to configure every users device; which is especially helpful with older legacy applications like VB6 apps.
https://www.remoteapp.windowsazure.com/en/
EDIT: Unfortunately on August 12, 2016 Microsoft announced they are discontinuing Azure Remote App. New purchases of RemoteApp will be discontinued October 1, 2016, and the service will be replaced with an offering from Citrix called Citrix XenApp Express.
I think you should simply create a virtual server for each of your clients. Do not create 1 virtual server for everyone, that will be a nightmare and very insecure for client data.
The clients would still just access over terminal services or Remote Desktop as they have before, just the server is now in the cloud.
Then you can bill each client for the what you are charged for their server.
RUN EXCEL/ACCESS DATABASE ON THE CLOUD WITHOUT PROGRAMMING!
I can solve your problem without using Azure or similar. We would first convert your Excel/Access database to a Progen4GL-based applications, which will then run on the cloud. See downloads on www.progencloud.com.
If you can, send us a similar Access/Excel file. We will convert it to a Progen4GL database that you can run the on the cloud with full read/write access. As Progen4GL reads in Access/Excel files without programming, we can do it for your for nothing. It takes only a few minutes for the to conversion to a Progen4GL Database. We will return it to you as a Cloud application. See Progen DataOWL on www.progencloud.com and try it yourself. You will need some help from us to run it on the Cloud as the website doesn't have full details.
Ravi Raizada raviraiz#aol.com
www.progencloud.com

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 do I develop for Azure without using a live SQL Azure instance?

I have a BizSpark account and I get some Azure freebies from Microsoft. But, I'm forced to create a live SQL Azure database to use in my local development. This slows me down a bit because I have to read/write over the wire when I'm developing, and I must remain connected at all times.
Is there a way, or a technique, to build locally and have my deployments access the express edition of SQL Server on my machine? I'm using EF4 to access the database.
First of all, as a part of Bizspark, you get 3 SQL Azure databases for free. http://msdn.microsoft.com/en-us/subscriptions/ee461076.aspx
This will allow you to have 1 DB for testing, 1 for dev, and 1 for production
If this does not work out for you, you CAN develop on your local SQL Express and keep deploying your changes to SQL Azure as you deploy your application to Azure. There are two tools that help you here:
1) open-source SQL Azure Migration Wizard: http://sqlazuremw.codeplex.com/ -- we personally do not use this for deployments, so I am not super knowledgeable to comment on this. It is a decent tool to back your SQL Azure database.
2) You can use Red Gate's SQL Compare product, as of v9.0+, they support synchronizing cross SQL Azure and on-prem SQL servers. We use this for AzureWatch and are very happy. It is commercial product and is somewhat pricey.
HTH
+1 to Igorek's answer - plenty of good suggestions there.
In addition to his advice, if you are a BizSpark licensee then I suggest you deploy full SQL Server 2008 R2 to a local box and develop against that.
There are differences between full SQL Server and SQL Azure - you should read around to be aware of these - http://social.technet.microsoft.com/wiki/contents/articles/comparing-sql-server-with-sql-azure.aspx
As long as you are aware of the differences (especially the SQL Azure limitations) then migrating back to SQL Azure later, should be reasonable.

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