I am trying to make modifications to a named query in a cube and the data source view (.dsv) won't allow me to make edits or create a new named query. It gives me a login error even though I can successfully do a test connection in the data source dialog and can login successfully with SSMS.
The error is: "Login failed for user "
If I instead use the Windows authentication I am able to do everything; however, I would like to use the SQL Server Authentication option.
Are there privileges that need to be set for this? I'm pretty sure I've tried giving this user everything from db_owner etc in my local environment and still no luck.
I was wondering if maybe SSAS requires a specific role to allow SQL Server Authentication to be used for editing/creating named queries in the data source view.
Please refer to the following steps to slove this issue:
In the SSDT development interface, double-click on your data source.
In the Data Source Desginer dialog, please click "Edit".
Please select "SqlClient Data Provider", and then use your SQL Account for the data source.
Follow this link
(https://social.msdn.microsoft.com/Forums/sqlserver/en-US/b5f05388-42e0-4fb6-92a9-d7d3e08aa98c/ssdt-2012-named-query-problem?forum=sqlanalysisservices)
Related
We have an oracle database that can be accessed with a general-purpose, read-only account. Connection information is stored as DSN.
I have created a 2016 Excel Workbook that uses Power Query and the DSN connection information. I want to be able to circulate the workbook, but when a new user opens it, the cached credentials are lost and the user would be prompted to enter the needed information.
I have suppressed application warnings during the load to avoid the annoying 'approve native query' pop-up caused by Power Query. However, this means that the credentials box, if needed, is also is not displayed. Therefore, the query runs without a password and fails.
Is there a way I can programmatically update the credentials?
This is not supported because, in general, storing credentials within the document is a security risk.
The credentials dialog does not depend on the native query dialog. It doesn't appear if you already have credentials for the data source. You can clear or edit these credentials in the Data Source settings window, which is accessible from the File menu in the Query Editor.
I'm trying to connect to a IBM DB2(v10.5) database with Tableau Desktop v10. When i enter the credentials and try to login, it shows the below error:
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
The DB2 database is available in a Linux machine(rhel 6.5).What are the prerequisites and odbc drivers i need to install to resolve this issue.
You need to download and install the IBM DB2 driver from Tableau's website at https://www.tableau.com/support/drivers.
Tableau's online help includes a page for setting up a connection to DB2. I am abbreviating them here.
Start Tableau and under Connect, select IBM DB2. For a complete list of data connections, select More under To a Server. Then do the following:
Enter the name of the server that hosts the database and the name of the database that you want to connect to.
Enter your user name and password.
If Tableau can't make the connection, verify that your credentials are correct. If you still can't connect, your computer is having trouble locating the server. Contact your network administrator or database administrator. -
Select Sign In.
On the data source page, do the following:
(Optional) Select the default data source name at the top of the page, and then enter a unique data source name for use in Tableau. For example, use a data source naming convention that helps other users of the data source figure out which data source to connect to.
From the Schema drop-down list, select a schema or use the text box to search for a schema by name.
Under Table, select a table or use the text box to search for a table by name.
Drag a table to the canvas, and then select the sheet tab to start your analysis.
I recently created a Microsoft Azure SQL Data Warehouse and used the AdventureWorks sample database. When try to access the database in SSMS, I can not see any of the database Tables, yet I am able to query them.
Researching on the internet, led me to believe this might be a permission issue, so I right clicked the database, selected Properties | Permission to review the View permission. However, when I this, I get the following error message:
I've also upgraded to the latest edition of SSMS, I also dropped and reloaded all the tables making sure I used dbo as the Schema.
As anyone come across this problem and do you have a workaround or fix.
In scripting options, make sure that the engine edition is set as “Microsoft Azure SQL Data Warehouse Edition” and engine type is “Microsoft Azure SQL Database”.
Tools -> Options -> SQL Server OE -> Under General scripting options
Please let us know if this issue persists. We have a fix in the upcoming release for SSMS which will automatically detect the database source to populate these settings.
Thanks!
I'm working on creating an excel report that collects data from a local copy of a SQL Server database on my maschine, where I use Power Query to retrieve the data. These are then loaded into a PowerPivot data model. Now I'm finished with the development and on my way to put this into production on another server on the customer's server. The Excel workbook must change database settings using sql server database user Connection (not integrated). I had hoped that I could change the database Connection Properties at the Data tab, but there are not any easy way to change the connection string to the new server. Now I can't see any option that going through every Power Query query and change them manually. I have great hope that you Power Query experts have a Nice explaination and an example how I can solve this.
Hope to hear from you soon
Regards Geir F
There isn't a great solution for bulk server rename today, but we're very aware of the customer demand! (I can't promise anything about upcoming features, but at some point in the past I heard the dev team discuss this feature.) I'd recommend showing your support for this feature at https://excel.uservoice.com/
If you need to solve this soon, manually opening each query and editting the server string is what you need to do, sorry :\
(If you're building new reports again, Power BI Desktop lets you parameterize the server name to a top-level query, which would allow for quick rename operations!)
Do you only need to change the server name? If you go to the Data Source Settings window, you can select the SQL Server source you are using and click on the "Change Source..." button. If you change the server name in that dialog, it will change the server name in all of the queries that use that source (assuming it's the first step in the query).
I am doing trend analysis of data from lotus notes. I need to manually export data from lotus notes and import it into excel. Is there a way to automate this? I can even work with Access. I tried to create an agent and I do not have access to do so.
There are many ways to do this, depending on your skills and your access to the Notes database.
First of all, when you say "I do not have access to [create an agent]", are you saying that you don't have designer access to the database where the data lives?
If that is the case, simply build a separate Notes application, and write your export agent there. Put that application on the same server, and you can set the export to run every night 8or whenever you like).
Another option is to use COM in Access and pull the data over that way. You have all the COM classes documnented in the Domino Designer help, and the code should be very similar to what you would writ in Lotusscript.
A third option, if the database is web enabled, is to use HTTP to pull the data out of views. You can read it using ?ReadViewEntries, either as XML or as JSON. This requires that all the data you need is exposed in the view, though.
I think the first option is the best, though. However, if you have been tasked with creating this export, you should be able to ask for proper access to the database...
I know this is a past posting, but someone may need the latest answers get to Domino Data.
You can export any view in Notes. File -> Export -> Select CSV as the option.
Then there is the IBM ODBC driver. There are two versions. One for 8.5.3 and another for 9.x. Download here http://www.ibm.com/developerworks/lotus/toolkits.html
Instructions on how to install here http://xpagesbeast.com/uxdesign/dont-forget-about-the-notessql-driver/
Using DomSQL which is a true JDBC driver for Notes Domino data. Non Notes environments can execute SQL SELECT queries using this JDBC driver.
http://www.openntf.org/main.nsf/blog.xsp?permaLink=NHEF-8Q7AW3
Using the Domino REST Services. You can access DominoData through a URL and it returns JSON. There are URLs to get all database instances on the server, then you can get all views in the server, and you can then access documents in the views.
http://www-10.lotus.com/ldd/ddwiki.nsf/xpAPIViewer.xsp?lookupName=IBM+Domino+Access+Services+9.0.1#action=openDocument&content=catcontent&ct=api
If you cannot create an agent (no designer access) you can try to install NotesSQL (ODBC driver) besides your Notes Client and access with Excel, MsQuery, etc. with your user id.
You can find more information here: http://www.ibm.com/developerworks/lotus/products/notesdomino/notessql/