?
Solved

Setting SQL Server Users for Crystal Reports

Posted on 2011-03-10
2
Medium Priority
?
168 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 101

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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I have a large data set and a SSIS package. How can I load this file in multi threading?
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

764 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