Tabular Model SSAS (visual studio) - ssas

Hi I am trying to create a Tabular Model in Visual Studio, but I keep getting the following error : "An error occurred while connecting to the server".
I tried with all compatibility levels and I keep getting the same error so I know that's not the issue, also when I tested the connection to the server it was successful.
Any clue of why I am getting this issue?
Thank you.

Related

Facing issue with ODataSource Connection Manager in SSIS for pulling the data from Sharepoint site

We are trying to pull data from Sharepoint site using SSIS ODataSource Connection Manager. But, we are facing issue with the ODataSource which is failing when we are trying to test the connection. It is giving below error message, even though the password we are giving is correct. We are using Microsoft Online Services as Authentication Type.
TITLE: OData Connection Manager Editor
Test connection failed
The sign-in name or password does not match one in the Microsoft
account system.
(Microsoft.SqlServer.IntegrationServices.ODataConnectionManager)
We are using SSDT Version 2017. Here is the screenshot for your reference.
Can you please let us know, what would be the issue and how to fix this.
Thanks in Advance!!

Scaffold-DbContext Error "Login failed for user MicrosoftAccount\my_email#gmail.com"

Trying to execute this command in Visual Studio Package Manager Console:
Scaffold-DbContext "Server=my_server\SQLEXPRESS;Database=FoodStore;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models
but I'm getting this error:
Cannot open database "FoodStore" requested by the login. The login
failed. Login failed for user 'MicrosoftAccount\my_email#gmail.com'.
I've tried creating a login in Security for 'MicrosoftAccount\my_email#gmail.com' as db_owner in Microsoft SQL Management Service Studio, as well as signing in with local accounts instead, but I'm still getting an error in Visual Studio when running Scaffold-DbContext.
I was also facing the same error but Ifound the solution. In scaffolding string I am using the server name "LAPTOP-82GAEQ6T\SQLEXPRESS" but in SQL server I am using only "LAPTOP-82GAEQ6T". That's the same error I was facing, please check your server connection name on both sides, on the server side and your connection string. Best of luck.
I encountered the same issue as you have mentioned i.e.
Cannot open database "dbxxxxx" requested by the login. The login failed.
Login failed for user 'xxxxx\xxx'.
And after working around with it, I found that I had to carefully check the value of
server attribute.
"Server=.\SQLEXPRESS;Database=FoodStore;Trusted_Connection=True;" also works well.

How to resolve network error code 0x2746?

We are frequently receives ""Network error code 0x2746 occurred while establishing a connection."" In both windows event viewer and SQL error.
We tried to check from windows as well as network team end, but they arises hand that it need to be check from db end.
When application team facing slowness they are showing and send ind such error and blamed to db team.
Can anyone have idea to resolve this network issue.?
Jason, here are two links that will help you debug the issue. I would look through your error logs for 18456 errors. Aaron Bertrand has an excellent blog on that topic.
Troubleshoot Connectivity/Login failures (18456 State x) with SQL Server
Troubleshooting Error 18456

Problems deploying SSAS project to server

I'm using Visual Studios 2012 and SQL Server 2014. Here's my problem. If I deploy my SSAS solution to 'localhost' everything runs smoothly. When I try to deploy it one of our other servers I receive these errors. I’ve tried changing the accounts in ‘Impersonation Information’, but still get the same errors. I've also made sure I have all admin rights. It’s going on two days and I still cannot find the fix. Errors: enter image description here
"Class not registered" error indicates your data source (SQL) connection string is using a driver not installed. For example if your connection string uses a SQL2008 driver accidentally (with a Provider=SQLNCLI10.1 connection string) it will give this error when you try to process on the server.
Three options to fix it:
Fix the connection string in Visual Studio to use the version of driver that's on the server before you deploy.
Install the version of SQL Server Native Client you use on the server
Deploy without processing the cube, RDP to the server and open SSMS and connect to SSAS and fix the connection string then process.
Thank you for the help.
I had to create the SSAS project in BIDS 2008. Also, I had to delete the dimension created when the cube was created. I then created a new dimension using multiple columns as my unique key. Then, attached new dimension to the cube.

SSMS crashing when opening SSIS in SQL Job Agent

Using SQL Management Studio 2012,
When opening SQL Job Agent -> Open a job -> Wanting to edit a SQL Integration Services Package -> SSMS crashes and comes with this error message:
TITLE: Microsoft SQL Server Management Studio The type initializer for '<Module>' threw an exception. (SqlManagerUI) ADDITIONAL INFORMATION: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. (DTEParseMgd) BUTTONS: OK
And when debugging I get this message:
Unhandled exception at 0x23627995 in Ssms.exe: 0xC0000005: Access violation writing location 0x004640fc.
Could not find anything useful to resolve this issue so here I am...
I had exactly the same problem (on win server 2012 with SQL2012 SP1). Solved by installing SQL server 2012 SP2.
I hope it will be helpful for you too.
DD