XML for Analysis parser: The restriction version is not recognized by the server - sql-server-data-tools

TITLE: Query Designer
I've just started to teach myself SSAS. I am using SSDT 2015 with a 2012 database. I've created my first cube and I've been able to process and deploy the cube as well as view the metadata (measures and dimensions). I have also gone to properties and set the deployment server to version 11.0. I am also able to log into the analysis server via ssms. But I keep getting the following message when trying to execute a query. I've attached a screen shot of the error. From the message, it seems that that parser does not under stand the VERSION. What is interesting is that when I log on the to SSAS server and go to the cube, I am able to browse and query the cube with no problem. So it seems to be an issue with SSDT 2015
Query generation failed.
ADDITIONAL INFORMATION:
XML for Analysis parser: The restriction, VERSION, is not recognized by the server. (Microsoft SQL Server 2012 Analysis Services)
BUTTONS:
OK

I found the problem. I went back to basics and executed ##Version on the MSSQL server. I saw that only Service Pack 1 had been installed. So I downloaded SP 4 and installed it on the Sql Server. I refreshed the connection and then reprocessed the cube. I can now query the cube via SSDT.

I had same problem.
I deleted Encrypt = yes from my connection string than it worked.

Related

Cognos 10 Framework manager crashes with 'BMTUI2' error. 'An error is at the origin of this program malfunction. Close the program'

After adding new data source from Cognos production (content manager administration) and testing succeeded, I added the new data source in framework manager as mentioned in your doc and as my other datasources that are available.
Upon testing the connection or using the new metadata model or if i created a new project, i receive the following error and Framework manager crashes with the following error.
BMTUI2 stopped working!
'An error is at the origin of this program malfunction. Close the program'
I tried to restart the server, using a complete shutdown, but nothing.
I verified the tnsname file on oracle client to make sure that the connection details are available .
I googled the error, and nothing related was found.
I posted a question on IBM forum and no reply in one week !
I verified all other datasource configurations and they are all similar.
N.B: The new datasource is an oracle datasource as my other datasources, and is located on the same database server.
Please help in resolving or understanding what this error means, or what can be done to resolve it.
I am using Framework manager v. 10.2.2
Here is what I found, hope it helps
https://www.cognoise.com/index.php?topic=4202.0
delete your csk, encryptkeypair and signkeypair folders.
Open your cognos configuration, save it again
Try to open cognos
or
control panel --> system --> advanced system settings --> performance
--> settings --> data execution prevention
turn on the Data Execution Prevention for essential windows programs and services only
OR
turn on DEP for all programs and services except those u select (here add bmt.exe)
Cognos 10 runs on a "windows server 2008 R2 standard" machine and works fine now

Getting Windows to detect IBM AS400 provider

I am trying to get a connection to work on my machine to an AS400 database as per this link.
I have confirmed that there is no firewall blocking the machine I am working on. I have confirmed that the connection info works on a different machine with a .UDL file. I have installed the requisite C++ runtime libraries onto the machine and confirmed it has the appropriate .NET framework (it has 4.7.2). When I try to run the UDL file with the same connection information, I get "Provider cannot be found. Ensure that the provider has been installed properly." As far as I can tell I did, but it is not detecting that?
Can someone help me understand how to get it set up so that the UDL file will indicate if the connection was successful or not? I'm not really sure what is at issue at this point.
edit: I got lucky on more searching and so on further inspection, I can see that it is not in the registry editor. Could that be the issue? How would I add it there properly so that it shows up as a Data Link so that I can configure it correctly?
go here to download and install access client solutions
after installing the base package, navigate in the install folder and find the Windows_Application folder. In that folder, double click on install_acs_64.js. That will install the ODBC drivers.
run the ODBC Data Source Adminstrator app on the windows PC. Click the Add button. Select the IBM i Access ODBC Driver. Make sure to click the Server tab and set the default schema and library list.
Once the ODBC driver is installed you can test the connection by opening Excel and use the Data tab to config a connection to the IBM i database.

Teradata not responding in Windows Server 2012

I am trying to install Teradata connection in a virtual machine of Windows Server 2012.
I tried multiple times but I still got the timed out error: No response received when attempting to connect the Teradata error.
I tried connecting through SQL assistant and python teradata module. Below is what I have tried based on resolutions found on web search and none of them works
1. Close the firewall
2. Change the odbcLibPath (in Python)
3. Reinstall .NET framework
4. Extend the time awaiting for response
5. Seeking resolutions around odbc.ini and odbcinst.ini but for Windows specifically, I can not find any resolution.
I have also not be able to find much difference between the configuration on the virtual machine and that on my local desktop which works well.
I felt I have run out of possible solutions at the moment. Appreciate any help in this.

How to modify a database command in Crystal Reports

Alright, so I've been working on this project for the past year and I've never understood this one issue in crystal reports. (I'm using the crystal reports that comes with Visual Studio 2008)
Let's say I want to modify a database field nested in the command.
I right-click the command field and choose the database expert option from the context menu.
I then right-click the command once again and choose the Modify option.
Here's where I always get stuck.. I enter the password (which is the same I use in the ConnectionString for my project) and click the finish button..
..only to be presented with the following error message, which translates to "ORA-12154: TNS:could not resolve the connect identifier specified"
After some searching around I found this article : http://scn.sap.com/thread/3291225
The answer to the same problem that I'm getting was :
You must install the Oracle Driver 64 if youe OS is 64 bits, and then install Oracle Driver 32 in the same home_oracle, this should be the home1. SAP just works with home1.
You must install the Oracle Client Administrator mode.
After that you must configure your ODBC driver to Oracle Home 1. Right now test if your ODBC connection is successful.
Your application should run in 32 bit mode.
Unfortunately I'm connected to this computer remotely and am not authorized to install / uninstall drivers and applications.
My question is, is there another way that I can solve this issue so I can change that one field to a string?
Thanks!
To the extent I see there are 2 problems in your question.
The error you getting is nothing related to the datatype of the field you want to change. The present error is because You are trying to access the database for that uou need to have oracle client and you should create a ODBC connection then you will be able to make connection and can view query in crystal report.
To the extent I am aware you can't change the dataatype of a database field using the command in Crystal Report, but what you can do is instead of going to command, You can create one formula in crystal report and cast the number to string using ToText
Let me know if you need further more information

Compatibility Issues for SQL Server 2005 and SQL Server 2008

I'm trying to execute a schema file on a SQL Server machine. I currently have both SQL Server 2005 and SQL Server 2008 installed. When I try to execute the .sql file (meant to execute on the 2008 version) I get the following error.
Microsoft.SqlServer.Management.Common.ConnectionFailureException:
Failed to connect to server . --->
Microsoft.SqlServer.Management.Common.ConnectionFailureException: This SQL Server
version (10.0) is not supported
Is there a way to specify which version the Microsoft.SqlServer.Management.Smo.dll looks at when you execute the program or some other workaround other than uninstalling the 2005 version?
EDIT
I'm running the .sql file from an ASP.Net application and using the Microsoft.SqlServer.SMO dll
ServerConnection conn = new ServerConnection(new System.Data.SqlClient.SqlConnection(connString),);
Server srv = new Server(conn);
// execute sql file
srv.ConnectionContext.StatementTimeout = 300000;
srv.Databases[conn.DatabaseName].ExecuteNonQuery(schema);
Based on the error message you're getting, it sounds very much like you are somehow using/accessing SQL 2005 utilities. "Version 10.0" is SQL 2008 (in engineering speak, as opposed to marketing). Are you sure you're accessing the right dll?
Once upon a time long ago, I hit something perhaps similar. We had SQL 7.0 and 2000 on one box (I said it was long ago) and we were calling some utility via batch file, Command window, something like that, and we could only get the old/incompatible version of the utility to run. Days later, someone [Hi Greg!] thought to look a the DOS environment PATH setting, and lo and behold, because of the order the folders were listed in, the OS would find the old version before the new one. Might something like this be tripping you up now?
Never tried to run SMO stuff from an ASP.NET process, but you can probably just load the file, split on "GO" and run it as a series of SQL commands without too much fuss. That should not care about the sql version issues unless there is some SQL statement that is somehow version specific.

Resources