How to setup the SSRS Environment
If you want to know how to setup the SSRS Environment procedure, prerequisite and SSDT, please you can read out my previous article as below link
How to create a Table in database
Firstly, create an Employee table using SQL Server Management Studio in SQL Server database. Then, you can add employee record in the Student table.
CREATE TABLE [dbo].[Employee](
[EmpId] [int] IDENTITY(1,1) NOT NULL,
[EmpName] [varchar](25) NULL,
[EmpLocation] [varchar](50) NULL,
[EmpDept] [varchar](25) NULL,
[EmpSalary] [decimal](18, 0) NULL
) ON [PRIMARY]
How to create an SSRS Project
Open Visual Studio 2015. Go to File menu, point to new and click new project. New Project Window will open, you can select an installed template like “Reporting Services” in Business Intelligence Template and then select the Report Server project and type Project Name EmployeeTableReport. Choose the project location path and click OK button
Now, you can see EmployeeTableReport project structure, as shown in the screenshot as below
How to create new Data Source
Go to the Shared Data Source folder, right-click the Shared Data Source folder and point to Add -> New Item, then click the New Item.
The Add New Item window will open and choose the Data Source template. Then, click the Add button.
The Shared Data Source window will open and click the Edit button
The Connection Properties window will open and type the Server Name, Select the Authentication, User Name, Password, Select or Enter a database name and finally you can check the database connection succeed, followed by clicking the Test Connection button. Then Click the OK button.
The Shared Data Source window will open. Select the new data source, connection string and click the OK button
After creating new data source file, you can see the shared data source folder structure as shown in below screen shot
How to create new Dataset
Go to the Shared Datasets folder, right-click the Shared Datasets folder and point to Add -> New Item, then click the New Item.
The Add New Item window will open and choose the Dataset template. Then, click the Add button.
The Shared Dataset window will open. Type the Dataset name and select the query type option. Then, type the query and click the OK button.
Select EmpId as ID, EmpName as 'Employee Name', EmpLocation as 'Location', EmpDept as 'Department', EmpSalary as 'Salary' from Employee
After creating new dataset file, you can see the shared datasets folder structure as shown in below screen shot
How to create a new Report
You can see in details how to add new Report using Visual Studio 2015 in the Solution Explorer. You can see the step by step procedures as below
Go to the Reports folder, right-click the Reports folder and point to Add -> New Item, then click the New Item.
The Add New Item window will open and choose the Report template and type the Report Name. Then, click the Add button.
After creating report file, you can see the report design view as shown in below screen shot
You can see the SSRS Toolbox as shown in below screen shot
In SSRS Toolbox, drag and drop table into report design as shown in below screen shot
Now, We can drag and drop the Report fields from Report Data (or) we can click in the particular column, then content menu will display and select the column in the dataset as shown in below screen shot
Finally, click the preview button to see the report view
How to deploy the Report
Go to the Solution Explorer, Right-click the EmployeeTableReport and click the deploy context-menu item.
After successfully deployed the report to Report Server, you will see the information from the output window as shown in below screen shot
How to run the Report
You can see in details how to run the Report using Report Server in the Browser. You can see the step by step procedures as below
Firstly, you have to copy the default Report Server Url and paste the same Url into your browser for the run report application.
Now, you can run the report application, followed by EmployeeTableReport project and clicking the EmployeeDetailReport
I hope you understood how we can create a Table Report without using Report Wizard in SQL Server Reporting Services 2016, how to create a new report, how to create a new data source, how to create a new dataset, and how to deploy/run the report application in the Report Server. I have covered all the required things. If you find anything which I missed in this article, please let me know. Please share your valuable feedback or comments and suggestions to improve future articles.