Some tips for designing SQL Server 2014 tables Create the table’s columns as narrow as possible. This can reduce the table’s size and improve performance of your queries as well as some maintenance tasks (such as backup, restore and so on). Try to reduce the number of columns in a table. The fewer the number of columns in a table,...
Tag: tips
Tips for using stored procedures in SQL Server 2014
Tips for using stored procedures in SQL Server 2014 Try to avoid using temporary tables and DDL (Data Definition Language) statements inside your stored procedure. Using temporary tables or DDL statements inside stored procedure reduces the chance to reuse the execution plan. Call stored procedure using its fully qualified name. The complete name of an object consists of four identifiers:...
Tips for using SQL Server 2014 file and filegroups
Tips for using SQL Server 2014 file and filegroups Set the reasonable sizes for the database and transaction log. First of all, before database creation, you should estimate how large your database will be. To estimate the reasonable database size, you should estimate the size of each table individually, add some additional space (10-20%) and then add the values obtained....
Tips for using SQL Server 2012 Integration Services (Part 3)
Tips for using SQL Server 2012 Integration Services (Part 3) Use SSIS 2012 Project Connection Managers. The SSIS 2012 allows you to create connection managers at the project level that can shared by multiple packages in the project. The connection manager you create at the project level is automatically visible in the Connection Managers tab of the SSIS Designer window...
Tips for using SQL Server 2012 Integration Services (Part 2)
Tips for using SQL Server 2012 Integration Services (Part 2) Deploy your projects to the Integration Services server. In SQL Server 2012 Integration Services, you can deploy your projects to the Integration Services server. This is the new project deployment model. The SSIS 2012 enables you to manage packages, run packages, and configure runtime values for packages by using environments....
Tips for using SQL Server 2012 Integration Services (Part 1)
Tips for using SQL Server 2012 Integration Services (Part 1) Integration Services (SSIS) were first introduced in SQL Server 2005 and replace the Data Transformation Services (DTS). By using the SSIS you can load data into or out from SQL Server relational databases or data warehousing. In this article, you can find some tips to boost the SQL Server 2012...
Useful Undocumented SQL Server 2012 DBCC Commands (Part 2)
Useful Undocumented SQL Server 2012 DBCC Commands (Part 2) DBCC is an abbreviation for Database Console Command. DBCC commands are generally used to check the physical and logical consistency of a database, although they are also used for a variety of miscellaneous tasks. Note, the command: DBCC TRACEON (3604) is issued before some of the following DBCC examples in order...
SQL Server 2012 DBCC Optimization Tips (Part 2)
SQL Server 2012 DBCC Optimization Tips (Part 2) Consider using the NOINDEX option with DBCC CHECKDB and DBCC CHECKTABLE command. This option specifies that intensive checks of nonclustered indexes for user tables should not be performed. Using the NOINDEX option decreases the execution time and should be used whenever possible. If you need to run DBCC CHECKDB or DBCC CHECKFILEGROUP...
SQL Server 2012 DBCC Optimization Tips (Part 1)
SQL Server 2012 DBCC Optimization Tips (Part 1) Before executing DBCC CHECKDB command, run this command with the ESTIMATEONLY option to estimate the tempdb space needed for CHECKALLOC and CHECKTABLE. So, you can calculate the tempdb database size and run the DBCC CHECKDB command without performance degradation. When this option is used, the actual database check is not performed. Use...
Tips for using SQL Server 2012 database settings
Tips for using SQL Server 2012 database settings To change the database settings, you can use the ALTER DATABASE SET Options or you can use the graphical user interface (GUI). To change the database settings using GUI, you can do the following: – In Object Explorer, connect to an instance of the SQL Server Database Engine, and then expand that...