SSRS 2008 Linked Server Premissions Issue - sql-server-2008

Please excuse my ignorance, I am relatively newish to SQL so hope you can help. I have a SSRS 2008 report that when ran refers to a stored procedure which inturn references a couple of tables. One of the table referenced is on a linked server. All appears to work fine when I run directly on the server, either via Visual Studio or the client interface but as soon as I deploy the report and execute via my desktop the report dataset fails? Message received is:
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'
I have provided execute rights on the stored procedure and select rights to the database table on the linked server.
If I omit the linked server table from the stored procedure, all works fine??

Related

Running SSIS package with linked server through a SQL Job

I have a SSIS 2008 package. In one of the Script task I am calling a stored procedure which is using Openquery using linked server. I deployed this package with protection level as "EncryptWithPassword" and gave a password to the package. Created a SQL job and edited its command line to include the password. If I login to SQL Server Mgmt Studio with Windows Authentication and run the job manually it runs fine. But when I schedule it then I get an error that "The Communication link to Linked server failed".
Please help
Most likely that you launch job from default Run as login.
You should create credential with your login, so package will have access and priveleges to linked database under your login.
You may read this article for better explanation.

Accessing a SQL view with a stored procedure on another server instance

I have access to a SQL view on say a server called vuk030 and i wish to write and run a stored procedure on a server called vuk386. My question is how to write the sql to access the data in the view on vuk030 as it has a username and password.
the vuk030 server is sql server 2005 and the vuk386 is 2008
The best way is to set up a linked server from vuk030 to vuk386 and enabling RPC over the linked server to make it possible to run stored procedures.
Setup linked server:
http://msdn.microsoft.com/en-us/library/aa560998(v=bts.10).aspx
RPC:
http://msdn.microsoft.com/en-us/library/ms186839(v=sql.105).aspx

Unable to migrate stored procedure for Crystal Reports from SQL Server to MySQL

I have been trying to migrate a SQL Server 2005 database to MySQL 5.5.29 and having trouble with the reports done with Crystal Reports 2010. I can use the set datasource location to migrate the tables (I do have to do each one individually and rename it before it will migrate) but I got it done.
However, I'm not able to update the stored procedure as I get the message:
Database Connector Error: 'HY00:[MySQL][ODBC 5.1
Driver][mysqld-5.5.28-lof]SELECT command denied to user ... [Database
Vendor Code: 1142]
I'm using the same ODBC Source as used for the tables so I don't know what I have to do to update/migrate the stored procedure. I tried to create a new report and add a stored procedure but get the same message.
Any ideas?
Thanks,
Vic
Based on the error message, the user the report is being executed as genuinely does not have access to the specified table.
The MySQL bug report Escaped wildcard in DB name prevents user from granting database permissions may shed some light on why permissions may not be applied as you think they are when the db name contains an underscore.
This is a restriction by the provider and they refuse to change it. Because of this I am not able to include stored procedures in a Crystal Report.

TFS 2010 Data Tier Configuration Error

I am installing TFS2010. There is a separate Application Tier server and Database Tier server. I am using an already existing database, called Tfs_Configuration. When entering the database name/instance name I am able to test it and obtain the green check-mark so TFS can find the database. The version of SQL server I am connecting to is - SQL Server 2008 SP3. But when I run the readiness tests I get the following messages-
First are those two warning causing the error?
Also, I have db_owner rights to the existing database (Tfs_Configuration) that I am connecting to. What other rights do I need? And what can I do to resolve these issues?
The first error suggests you need the sysadmin role which is in fact a SQL Server role which can be enabled by doing the following:http://blog.sqlauthority.com/2008/12/27/sql-server-add-any-user-to-sysadmin-role-add-users-to-system-roles/
Hope that moves you past at least one error.
You need to be Sysadmin of the SQL instance or a role that is able to create new databases, because the installer wants to create an additional database for the DefaultCollection (and the TFS_Warehouse, TFS_Analysis). Therefore it is not enough to be the owner of TFS_Configuration.

Using SQL Server specific code in Access linked to SQL Server database

I have an access file that is linked (through an ODBC connection) to a SQL Server 2008 database. I am trying to write some reports against this database. However, Access chokes when I write the select query of the report with SQL syntax specific to SQL Server that doesn't exist in access. Shouldn't this work, since it's the SQL Server engine running the queries and just sending the data back to Access to display? Is there any way to get this to work?
Need this to work on any combination of Access 2007 and 2010, and SQL Server 2005 and 2008.
Edit
Note: I cannot create a SQL Server stored procedure or function, or otherwise modify the original (SQL Server) schema in any way.
Found the answer: I need to use a "pass-through query".