Solved

Setting SQL Server Users for Crystal Reports

Posted on 2011-03-10
2
165 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 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tempdb Contention - SQL SERVER 10 35
PHP - How to insert data using sqlsrv on stored procedure? 8 53
SQL query 45 27
SQL Server Pivot 5 31
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

733 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