1 2 >   Sort: Rank

What Is sys.filegroups?
What Is sys.filegroups view in SQL Server? sys.filegroups is a system view in a SQL Server Database that contains information about each logical filegroups used by the database. Each record in the sys.filegroups table represents a single SQL Server Logical Filegroup with the following key fields: na...
2019-07-14, 121👍, 0💬

What Is sys.database_files?
What Is sys.database_files view in SQL Server? sys.database_files is a system view in a SQL Server Database that contains information about each physical files used by the database. Each record in the sys.database_files table represents a single SQL Server Physical File with the following key fields...
2019-07-14, 117👍, 0💬

SQL Server System Views and Functions
Where to find tutorials on using SQL Server System Views and Functions related to data storage and I/O? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team on using SQL Server System Views and Functions related to data storage and I/O. What Is a SQL S...
2019-07-14, 115👍, 0💬

What Is a SQL Server File
What Is a SQL Server File? A SQL Server File represents a physical file provided by the operating system to store information for a SQL Server Database. Every SQL Server Database uses 3 types of physical files: 1. Primary File - The primary data file contains the startup information for the database...
2019-07-14, 114👍, 0💬

What Is a SQL Server Filegroup
What Is a SQL Server Filegroup? A SQL Server Filegroup represents a logical group of one or multiple physical Files. Each Filegroup will be used as a single logical unit to allocate storage space for database tables. A SQL Server Database must have one Filegroup defined as the Default Filegroup, or ...
2019-07-14, 114👍, 0💬

What Is OBJECT_ID()
What Is OBJECT_ID() function in SQL Server? OBJECT_ID() is a system function in a SQL Server Database that returns the object_id value from the sys.objects table for a given object name. The following query will return the same result: SELECT OBJECT_ID('ADDRESS') AS object_id 211197 SELECT object_id...
2019-07-09, 136👍, 0💬

What Is sys.objects
What Is sys.objects view in SQL Server? sys.objects is a system view in a SQL Server Database that contains information about each data object like a table or an index used by the database. Each record in the sys.objects table represents a single data object with the following key fields: name - sys...
2019-07-09, 125👍, 0💬

List All Files in a Filegroup
How to List All physical Files in a logical Filegroup? In a large SQL Server Database, you may have multiple logical Filegroups. And a Filegroup may have multiple physical Files. To list all physical Files in a logical Filegroup, you need to join two system tables, sys.filegroups and sys.database_fi...
2019-07-09, 116👍, 0💬

What Is a SQL Server Partition
What Is a SQL Server Partition? A SQL Server Partition represents a logical data storage space area that is used to store data for a table or other data objects. By default all records in a table are stored in a single Partition. You may configure a table as Partitioned with use multiple partitions,...
2019-07-09, 116👍, 0💬

What Is sys.partitions?
What Is sys.partitions view in SQL Server? sys.partitions is a system view in a SQL Server Database that contains information about each data partition used by a data object in the database. Each record in the sys.partitions table represents a single data partition with the following key fields: par...
2019-07-09, 116👍, 0💬

What Is fn_virtualfilestats()
What Is fn_virtualfilestats() function view in SQL Server? fn_virtualfilestats() is a Transact-SQL function view that returns I/O statistics for database files, including log files. In SQL Server, this information is also available from the sys.dm_io_virtual_file_stats dynamic management view. fn_vi...
2019-06-29, 150👍, 0💬

I/O Tests on INSERT Statements
Where to find tutorials on testing I/O Tests on INSERT Statements on SQL Server Database? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team on testing I/O Tests on INSERT Statements on SQL Server Database. Use allocation_units for I/O Tests Page Siz...
2019-06-29, 148👍, 0💬

Find the File IDs of a Given Table
How to find the File IDs of a Given Table If you are performing an I/O test on a specific table and want to use the fn_virtualfilestats() function to gather I/O statistics, you need to follow this tutorial to find which files is used to store a given table. To find out which files are used to store ...
2019-06-29, 134👍, 0💬

Join sys.allocation_units with fn_virtualfilestats()
How to join the sys.allocation_units system view with the fn_virtualfilestats() system function view? If you want to watch the I/O statistics of physical files related to a give table, you need to join sys.allocation_units system view with fn_virtualfilestats() as shown below: -- fyi_get_io_stats_by...
2019-06-29, 133👍, 0💬

What Is sys.allocation_units
What Is sys.allocation_units view in SQL Server? sys.allocation_units is a system view in a SQL Server Database that contains information about each allocation unit of a data partition to a physical file. Each record in the sys.allocation_units table represents a single allocation of a data partitio...
2019-06-29, 130👍, 0💬

Test Script for SELECT with CURSOR
Where can I get a SQL script to do I/O performance test with SELECT statement using CURSOR to loop through records? Here is a SQL script to do I/O performance test with SELECT statement using CURSOR to loop through records. It uses the fn_virtualfilestats() function table to calculate the I/O statis...
2019-06-11, 190👍, 0💬

Test Script for INSERT with MEMORY_OPTIMIZED
Where can I get a SQL script to do I/O performance test with INSERT statement using BIGINT with MEMORY_OPTIMIZED? Here is a SQL script to do I/O performance test with INSERT statement using BIGINT with MEMORY_OPTIMIZED. In this case, the table content should be cached in memory as much as possible. ...
2019-06-11, 169👍, 0💬

Test Script for INSERT with PRIMARY KEY
Where can I get a SQL script to do I/O performance test with INSERT statement using BIGINT with PRIMARY KEY? Here is a SQL script to do I/O performance test with INSERT statement using BIGINT with PRIMARY KEY. -- fyi_insert_primary_key.sql -- Copyright (c) FYIcenter.com DECLARE @Count INT SET @Count...
2019-06-11, 159👍, 0💬

I/O Tests on SELECT Statements
Where to find tutorials on I/O tests on SELECT Statements on SQL Server Database? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team on I/O tests on SELECT Statements on SQL Server Database. Test Script for SELECT with CURSOR No Reads on SELECT with ...
2019-06-11, 154👍, 0💬

No Reads on SELECT with CURSOR on SQL Server 2016
Why is there no reads recorded by fn_virtualfilestats() on SELECT statements with CURSOR on SQL Server 2016? If you run the SQL script, fyi_select_cursor.sql, presented in the last tutorial with different @Count and @Size on SQL Server 2016, you will see that the fn_virtualfilestats() function view ...
2019-06-11, 150👍, 0💬

Test Script for SELECT with BIGINT
Where can I get a SQL script to do I/O performance test with SELECT statement using BIGINT as the search criteria? Here is a SQL script to do I/O performance test with SELECT statement using BIGINT as the search criteria. It uses the fn_virtualfilestats() function table to calculate the I/O statisti...
2019-06-01, 192👍, 0💬

SELECT with BIGINT on SQL Server 2016
What is the data read performance with the SELECT statement using BIGINT as the search criteria on SQL Server 2016? To see the data read performance with the SELECT statement using BIGINT as the search criteria on SQL Server 2016, you can run the SQL script, fyi_select_bigint.sql, presented in the l...
2019-06-01, 180👍, 0💬

SELECT with BIGINT on Azure SQL Database
What is the data read performance with the SELECT statement using BIGINT as the search criteria on Azure SQL Database? To see the data read performance with the SELECT statement using BIGINT as the search criteria on Azure SQL Database, you can run the SQL script, fyi_select_bigint.sql, presented in...
2019-06-01, 176👍, 0💬

Test Script for SELECT with PRIMARY KEY
Where can I get a SQL script to do I/O performance test with SELECT statement using BIGINT PRIMARY KEY as the search criteria? Here is a SQL script to do I/O performance test with SELECT statement using BIGINT PRIMARY KEY as the search criteria. It uses the fn_virtualfilestats() function table to ca...
2019-06-01, 167👍, 0💬

1 2 >   Sort: Rank