এই লেখাটি শুধু ইংরেজিতে পাওয়া যায়।
The video loads from YouTube when you press play.
Report Designer can read your data straight from SQL Server, so a report always shows what is in the database. This guide connects to a database, loads a table, and builds a simple report from it.
Before you start
The server connects on your behalf, from the Report Designer server. That means your SQL Server must be reachable from there, not just from your own computer. Use a login that can only read data. Never use an administrator login such as sa.
To create a read-only login, run this on your database (change the names and choose a strong password you use nowhere else):
CREATE LOGIN report_reader WITH PASSWORD = 'CHOOSE-A-STRONG-PASSWORD';
CREATE USER report_reader FOR LOGIN report_reader;
ALTER ROLE db_datareader ADD MEMBER report_reader;
Steps
- Open Report Designer and start a new report.
- In the Data source panel, choose Connect to SQL Server.
- Fill in the Server, the Database, and choose SQL Server login for authentication. Enter the user name and password of your read-only login.
- Leave Trust the server certificate off unless the server is a development machine with a self-signed certificate.
- Click Connect. When it works you will see Choose the data.
- Pick a table or view from the list, or switch to SQL query to write your own query. Then click Load data.
- The columns appear under Fields. Click Insert as table, add a title with a Text box, and open Preview.
- Print and choose Save as PDF to keep a copy.
Good to know
- If you tick Save for reuse, the connection is saved so people who only run reports can load the same data without typing the login again.
- A connection that is not saved cannot be used by people who only run reports.
- Only the rows the login is allowed to read are available, so a read-only login also keeps your data safe.
Need help connecting to your own server? Send us a message.