Solved

Setting SQL Server Users for Crystal Reports

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Suggested Solutions

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

747 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

13 Experts available now in Live!

Get 1:1 Help Now