Data warehouse Loading strategy question
Hi All,We have an SQL Database in DWH design, which is truncated and loaded every night in a batch process. However, sometimes the DW Load fails and leaves the DW tables empty due to data issues. The...
View ArticleSelect query block inset query
Hi,Recently we found some blocking scenario in SQL Server Production environment. After checking I found it was select query which was executing on a 'employee' table at the same time another insert...
View ArticleData Model for Incremental data laod
Hi All,I have a request for loading larger set of data on a daily basis. Expecting to get minimum 2.5 lakhs of data per day. We need to generate reports out of it. Basically, we are getting some order...
View ArticlePermission question
What are the minimum permissions needed to view a database diagram, and what permissions are needed to create a database diagram in sql server management studio?
View ArticleIncremental Load: What is the best approach and db design to deal with...
Hi All,Lots of questions came to my mind when I started designing an incremental approach in one of our requirement. Please suggest the best options to resolve those issues.We are having millions of...
View Articlecheck if the field value is in last 13 month value if not assign the last...
Hi All, I have this scenario where I do not have a record in the table but iam trying to associate associate the row with a...
View ArticleTempdb not using all files
SQL 2017Our tempdb is comprised of multiple data files, and 1 log file. The very first data file appears to be the only one getting used. But I'm only basing that assumption on the fact that it...
View ArticleDatabase design
Suppose I have employees and departments where one employee can belong to different department with different role.For example Emp 1 belongs to Dept 1 with role manager. where the same employee can...
View Articleover terabyte database with a single datafile
Hi We have 2016 enterprise edition , and always on enabled. DB size is now over 2 TB on one data file(mfd) . creating multiple data file would that get advantage in case corrupted one file will...
View ArticleSQL Server 2016 - Always On
Hi Team,The SQL server we are currently with 2016 clustering, based on the organization we are moving from clustering to Always On.Overview of our DB:All are OLTP databases and SSIS is running to fetch...
View ArticleLCK_M_S locks are matter to consider
Hi I have seen following waits on sql server and seen it LCK_M_S. So would that be matter to consider as performance point . select resource_type, --resource_database_id,ex.login_name,...
View Article[Announcement] SQL server related Forums will be migrated to a new home on...
This SQL Server related Forum will be migrated to a new home on Microsoft Q&A!We’ve listened to your feedback on how we can enhance the forum experience. Microsoft Q&A allows us to add new...
View ArticleTrailing Spaces
HiI have a pretty simple table setup with 3 columns-ID (PK)SettingName (nvarchar(100))SettingValue (nvarchar(100))The data in SettingValue column varies in length. When i first add the data into the...
View ArticleSQL Cluster date integrity
Hi there,We are evaluating database solutions for our upcoming eCommerce project, and trying to finalize if we use MS SQL cluster or MySQL. Besides many aspects to be considered, one of elements has...
View ArticleDiscussion board type of forum based on SQL
Hello,I have been asked to find a discussion board type of forum based on SQL that can be used in the office internally. We are not looking for anything that is cloud based but an application that can...
View ArticleOne database vs. multiple-- which is better?
Is it better to separate concerns if I'm using several dozen tables, into separate databases, or to keep all tables together in a single database?I have a few dozen tables in a single database, with a...
View ArticleHelp me to create ERD?
Each club member is expected to attend all book review sessions . For each book review session to go ahead, several club members must register to attend it. Every book review session is identified by a...
View ArticleAdding mulitple MDF /NDF files to large databases
We are provisioning a database which is expected to grow rate 2 TB per year. Sql server 2016 SP2 Enterprise question related to creating multiple files with in primary file group to re-balance the...
View ArticleAlways Encrypted
Hi, As everyone we are aware of the limitations on Always Encrypted concept like below. a. Look for unsupported query patterns in ETL and identify alternatives. eg:- 1. BULK INSERT INTO SELECT FROM...
View Articledatabase -allow_snapshot_isolation on and read_committed_snapshot
Hi our sql server versions 2016 SP2 enterprise and having deadlock our the period of time. so Application team adviced to enable following setting DB level . Pleas note these DB are always on...
View Article