Solved

Setting SQL Server Users for Crystal Reports

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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

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.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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.

705 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