Maximum number of CROSS APPLY functions - I can't find a maximum number for CROSS APPLY lines in a single query. I know this has to be...
Assign result of dynamic sql to variable - Hello Everyone, I have a problem This is the result what i get from my function ufn_GetHcmDesignFields ISNULL(cast( ExtTotalExperienceUS as nvarchar) + ',' , '') + ISNULL(cast(...
while and if condition within a case statement t-sql - I am trying to implement a while loop and if condition (with a function call) in a case statement. Basically,...
Need to restore 700+ DBs without any data - Hey all, I have a bit of a situation and wondering if someone can help me. I have 700+ DBs...
One to Many relations - Hi, I've a few different entities that need to hold photos (one or many), let's name them A, B and C....
maxrecursion Other Option - What are other option instead of using maxrecursion in sql server 2008 ?
How to get the previous weeks data based on week ending - I need to get a weekly count of records with Friday being the end of the week. So, the report...
query to repeat insert same rows - i want to make a query using cte to insert multiple rows with same field. i have a result query with...
Backup database only if changes happen - I have SQL2008 database with some 100s of tables. Every 2 hours transaction log backup to tape is triggered. Just...
split string by number of characters - I know about DelimitedSplit8K, however what I want is to split a long text (varchar(max)) field on a delimiter at...
Calculate time difference between two related visitors without using cursor - I have a table (see attached) listing visitors IDs, listed more than once, and Arrival DateTime. I need to find...
Finally got my SQL Server database into Azure! - I finally got my SQL Server database uploaded into Azure SQL! I posted a blog post about it. Rather than...
T-SQL Code Analysis Tools - I am researching T-SQL Code Analysis tools, like the equivalent of an FxCop for T-SQL that will scan thousands of...
How to extract a value from XML column in a SQL Table - Hi there I have a SQL table called dbo.AuditItem. This contains a column called [OldRow]. This column is in XML format I want...
Errors while trying to copy files to UNC path using Powershell - Hello experts, I found the promising script below at the following link: [b][url=https://sqlactions.com/2015/03/30/powershell-script-to-manipulate-sql-server-backup-files/]https://sqlactions.com/2015/03/30/powershell-script-to-manipulate-sql-server-backup-files/[/url][u][/u][/b] The purpose of the script is to allow copy of...
Storing XML Config files in SSIS - I am new to SSIS,Need some ideas and thoughts of creating XML configuration (dts config) file (Common file) one SSIS...
Modelling grain and fact table key - Hi, I'm new to datawarehousing and am really working through a lot of concepts with no guidance or mentor. I have...
From SSAS 2012 to SSAS 2016 - Has anyone upgraded from 2012 to 2016 yet? If so, what are some challenges? How did you verify that the...
Microsoft SQL Server, Error : 2 - While connecting to SQL Server 2005, I am getting the following error. "An error has occurred while establishing a connection to...
How to get date?? - Hello , I would like to find right date. Example: year = 2016 week = 40 day = 3 (tuesday) How can I get date? Thank you.