Solved

Setting SQL Server Users for Crystal Reports

Posted on 2011-03-10
2
161 Views
Last Modified: 2012-05-11
Hello, I want to grant access to a user to our database using SQL Server Management Studio (SQL Server 2005) in order that they can run Crystal Reports. We only have sa and another user for our main ERP system that it uses.

How do I go about setting up another user so they can connect using Crystal Reports and have only Select (read-only) access? What are the steps?

I'm not a SQL Server expert!

Thanks!
0
Comment
Question by:whosbetterthanme
2 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 35095791
Are you the DBA?

How will they run the Crystal Reports?

Are the reports based on views, stored procedures, or just the tables?

mlmcc
0
 
LVL 2

Accepted Solution

by:
EL_Barbado earned 500 total points
ID: 35096475
You may be able to use the following script by replacing some of the Bolded words in the script and then running it via Management studio

USE [master]
GO
CREATE LOGIN [CrystalUser] WITH PASSWORD=N'yourpasswordhere', DEFAULT_DATABASE=[YourDatabaseNameHere], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
GO
USE [YourDatabaseNameHere]
GO
CREATE USER [CrystalUser] FOR LOGIN [CrystalUser]
GO
USE [YourDatabaseNameHere]
GO
EXEC sp_addrolemember N'db_datareader', N'CrystalUser'
GO
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now