I want to move database files to another folder, should I stop SQL Server...
SQL Server uses at least two files for maintaining a database: a data file (extension mdf) and a log file (extension ldf). If the database is an OLTP database, it is not uncommon to see a large data...
View ArticleDoes Database backup contain a copy of the database as it was at started time...
Unlike database restore operation, SQL Server allows us to take a backup of our database while it is being used, placing some insignificant limitations such as not allowing execution of ALTER...
View ArticleSQL Server Brain Basher of the Week #024 - Partitioning
Here is the this week Brain Basher.How many partitions can be created per table or index with SQL Server 2014? 1) 256 2) 1,000 3) 1,024 4) 15,000 There are two answers for this based on SQL Server...
View ArticleGranting only SELECT permission on all tables on all databases quickly
Different requirements pop up at different time, unexpectedly. What if someone needs to access all your databases and needs to see all records? This someone could be an Auditor, Security Consultant,...
View ArticleWays of seeing Query Execution Plans
When it comes to troubleshooting, most of the time, first thing we do is, checking the query execution plan related to the query for understanding what has happened with the query, whether added...
View ArticleCan I disable all constraints when loading data?
Generally, when loading a large data set, we disable constraints and drop indexes for speeding up the loading process. Constraints help us to enforce integrity rules making sure that no inconsistent...
View ArticleFinding user tasks that are waiting longer than expected time
Performance tuning is one of the common operations in database world and is always done for optimizing queries. When performing Performance Tuning first thing we generally do is, checking tasks that...
View ArticleDifferences between BCP and BULK INSERT
It is not uncommon to see importing data from other sources and exporting data into other sources as not all data can be entered row-by-row. Generally, either import or export, it can be considered as...
View ArticleSQL Server Brain Basher of the Week #025 - DMVs and DMFs
The best and easiest way of getting real-time state information and recent historical information related to SQL Server is using Dynamic Management Views and Dynamic Management Functions. This week...
View ArticleEncrypting backups and restoring encrypted backups
Your applications cannot be survived without database backups! Database backup is a fundamental requirement and it is the key task among maintenance tasks. It protects both application and data...
View ArticleStored procedure parameters: Setting default values with functions
Stored procedures are common objects in SQL Server databases as it gives many benefits for us. One important thing with Stored Procedure is, allowing us to pass parameters for executing the procedure...
View ArticleDeleting records based on another table: Should I use standard delete or...
When you have to delete records from a table based on a filter set with another table, what type of statement generally you use? DELETE based on a join or DELETE based on a sub query? The standard way...
View ArticleSQL Server Brain Basher of the Week #026 - Variable types
Similar to other programming languages, SQL also offers a facility to create variables for holding values temporarily. Variables are created in the memory and can be accessed only within the batch in...
View ArticleWho modified my tables: tracking SQL Server table changes
What is the easiest way of capturing changes on tables? I was asked this question and what immediately came to my mind was DDL Triggers. Though this is not a new feature of SQL Server, it is still...
View ArticleProduct review: CloudBerry Backup - Cloud Backup for Microsoft SQL Server
One of the important assets to an organization is data, because it holds valuable information related to the business, such as customers info, products info, financials info and info related to...
View ArticleFree Xamarin Subscriptions for Windows Phone Developers
Are you developing Apps for Windows phone and looking for a free subscription for Xamarin? Here is a chance, grab it before 31st of August 2015.Free Xamarin Subscriptions for Windows Phone...
View ArticleWhy we need Analytical Data Models?
Among the key elements of business intelligence solution such as data sources, ETL, data warehouse and data models, data models play a major role related to the solution. For the sake of arguments,...
View ArticleChanging authentication mode without using management studio
.Microsoft SQL Server can be accessed using logins created with Windows accounts/groups or logins created with SQL Server instance. Accessibility is determined with authentication mode set with the...
View ArticleSQL Server Brain Basher of the Week #027 - Business Intelligence
Well known three functionalities provided by a business intelligence solution are; Drilling down, Drilling through and Slicing and dicing. This week question is based on it, here is the question;What...
View ArticleFinding server level permission (principals) of a login
We create SQL Server login principal for allowing users to connect with the instance of SQL Server. A standard logins are the most common logins but some logins have special permission making them...
View Article