Category SQL

Effortlessly Import XML Data into SQL Server with SSIS

Need to integrate valuable information from XML files into your SQL Server database? SSIS offers a powerful solution! Here’s a simplified guide: 1. Build your SSIS package: Launch SSIS and create a new project. Drag and drop these components: XML…

SSMS SHORTCUTS

Query Navigation and Editing: F5/Ctrl + E: Execute the current query. Ctrl + L: Clear the results pane. Ctrl + F5: Execute the current query and keep the results pane hidden. Alt + Break: Cancel a running query. Ctrl +…

HOW TO CHECK FOR MSSQL FRAGMENTATION

Index fragmentation is when the data in an index is not stored in a continuous order. This can happen when data is added, deleted, or changed in a table. If an index is fragmented, it can take longer for SQL…

SELECT STATEMENT – CREATE XML FILE

This is a SELECT statement in SQL that is used to retrieve data from multiple tables in a database. The statement begins by selecting a number of columns from the tables specified in the FROM clause. The first column…

MANAGING SQL ROLES AND PERMISSIONS

Server-level roles There are database-level roles and server-level roles. Server-level roles lets you manage the permissions on a server. The following are fixed server-level roles:sysadmin, serveradmin, securityadmin, processadmin, bulkadmin diskadmin, dbcreator, and public. Every SQL server login belongs to the…

CREATING A SQL USER

Creating a new user in Microsoft SQL Server is a common task that can be accomplished using a variety of methods, including Transact-SQL statements, SQL Server Management Studio, and the SQL Server Management Objects (SMO) .NET library. To create a…