Accessing sqlserver via Windows Azure - sql-server

I am trying to access SQLserver database via my Azure account. This is because I didnt find a appropriate Database client for my Mac(Sierra) to connect to the SQLserver DB.
I encounter a firewall error when i try to query the database in the Query editorQuery editor in Azure. Can someone help on this?
*IP is configured to access.

I have reproduce your error:
We should modify SQL SERVER Firewall settings, change Allow assess to Azure services to ON. Then we can use Query Editor.

Related

Remote connection Azure SQL Server not showing All databases

When I connect my Azure SQL Server using Azure portal then it shows me all databases (shown in the screenshot1)
But when I connect to the same server using SSMS inside Azure VM then it shows only one database (shown in the screenshot2)
Please someone help me in this issue
I think you'd better check the Options settings, did you specify the db name. If so, you will only can see specified db, not all.

Error SQL71624: The permission 'CONNECT' is not valid for the target object 'guest' in Microsoft Azure SQL Database v12

I have a SQL database created and I am trying to deploy/move that database to the Azure Cloud by using the Deploy Database to SQL Azure Wizard in SQL Server Management Studio. But I have ran into an error after trying to deploy it. I am using the SQL Authentication to log in with my credentials. I also tried installing the Data Migration Application.
The error is:
TITLE: Microsoft SQL Server Management Studio
One or more unsupported elements were found in the schema used as part of a data package.
Error SQL71624: The permission 'CONNECT' is not valid for the target object 'guest' in Microsoft Azure SQL Database v12.
(Microsoft.SqlServer.Dac)
BUTTONS:
OK
I don't understand what this error means and also I don't understand why this error is happening. I looked on the internet for possible solutions but could not find any information. Please help me.
SQL Azure and regular SQL Server aren't entirely compatible.
One of the things that is enabled on regular SQL Server is the guest login. This login allows connection to instance, with a default database of master. Once connected, the user can switch to a different database (use [thedatabase]) if they have the authority to do so.
But in SQL Azure, you connect directly to a single database, and can't switch databases on the connection. So the guest account has no function.
On your source instance (the one you want to migrate), you can revoke this ability so that the wizard won't try to migrate it. Execute revoke connect from guest on your on premise instance.

SSAS Cube deployment error

I was going to process the cube deployment and found the error.
I changed the target server name from 'localhost' to this,and tried different way but in vain.
Here is the snap from my SSMS
You may have multiple issues going on but the first and foremost is you do NOT deploy SSAS Multidimensional [MDX] models to a SQL Database Engine Instance!
Unless you have a very odd configuration ATI-PC\MSSQLSERVER should point to the default MS SQL Server Database Engine Instance NOT an SSAS MDX instance!
The SSMS screen shot you show is for the local host connection you show is for a Database Engine with SQL Server Authentication (SA), which I would assume the instance is called MSSQLSERVER which is the default instance name.
1) What is your SSAS instance name?
2) Does your windows account have permissions? SSAS doesn't allow for SQL server authentication so it must be windows authentication.
3) Is SQL Browser running?
4) Have you configured SQL Browser to allow for the protocols and to allow connections from both Localhost and ATI-PC(InstanceName)?
to connect to Analysis Services Change the Server Type. When first launching SSMS you can do that via changing server type and then modifying the server name to the appropriate name.
If your SSMS is already open you can select "Connect" drop down and choose Analysis Services.
Check on your SQL Browser Configuration by Launching "SQL Server (Version) Configuration Manager" then step through the different areas as far as how to configure it is somewhat self explanatory and because you are deploying an AdeventureWorks cube I would surmise that the configuration would be earlier in you tutorial you are working on.
I am sure that you have 'SQL Browser' service running in services.msc. Still I doubt your account which you logged in has access to SSAS and also to connect to that underlying SQL Server. Try checking both for the access, if you selected deploy as service account check that account has access in SSAS. If still you have issues trying checking the eventvwr if you are getting any more errors. If it is development box try recycling SSAS services and try deploying?

How can I use an Active Directory login in Microsoft Access linked to SQL Server?

We have a client who uses MS Access to manipulate data in their SQL Server DB. I know that we can set up SQL Server to authenticate using Active Directory. If we set this up, can they use their AD logins to connect to SQL Server through Access? How?
I tried Googling this, but to no avail. Any links or direction would be much appreciated. Thank you.
Also, please direct me to the correct place, if I should ask this question elsewhere.
Yes this should be pretty straight forward. You can use Windows Authentication to connect to sql server.
When establishing ODBC connection from your Client, The Wizard for connection configuration to SQL Server takes you to a page which gives you options to choose how you want to connect to SQL SERVER. There you can choose to use Windows Authentication or SQL Server Authentication. You can choose the Windows Authentication Option.
Now when a client tries to connect to the SQL Server their windows credentials will be used to authenticate the user. And obviously if they are on a network their AD Account will Authenticate them.
See below a snapshot from ODBC Data Source Administrator wizard when configuring connection to sql server.

Unable to connect with the Windows desktop application using the Windows Sql Azure connection string?

we are using the window Azure first time and we have deplyed our SQL server databases on the window Sql Azure server. using the connection string from the SQL Azure server, we are able to successfully connect with the Web aapplication while at the same time when we are trying to connect with the Desktop application it always throw "General Network Error"?
In order to resolve the issue we have check the firewall and all seems to be fine.
Any help highly appreciated.
Thanks,
Rupesh
May I ask where your web application is running? It seems it is running in Windows Azure and connected to SQL Azure without any problem. Isnt it? I am always interested to know what tool you are using to connect? SSMS or SQLCMD or something else?
IF you want to connect SQL Azure from on premise (from your desktop) you really need to add your IP address in SQL Azure firewall exception list first. Even when you checked it that could be the main reason. Here is the guideline connecting SQL Azure DB and please follow first 3 points when you are trying to connect from your desktop. Those 3 points are:
Add your IP address in SQL Azure Exception List and add 1433 Port exception in your own firewall exception list
Verify you have setup firewall exception correctly
Always use login1#servername when connecting to SQL Azure DB nane XXXX.database.windows.net
After that try using SqlCmd as described here.

Resources