Search code examples
Trying to preserve data types when duplicating a table, dynamically...


sqlsql-servert-sqlsql-server-2019

Read More
sp_executesql In Loop Taking FOREVER to Run. Slowing down as it runs. Memory Leak?...


sql-servert-sqldynamic-sqlsp-executesql

Read More
Why does using CONVERT(DATETIME, [date], [format]) in WHERE clause take so long?...


sqlsql-servert-sql

Read More
Getting list of tables, and fields in each, in a database...


sqlt-sql

Read More
Optimizing SQL Server performance: merging budget and actuals tables after same CTE transformations ...


sql-servert-sql

Read More
Combining (concatenating) date and time into a datetime...


sqlsql-serversql-server-2008t-sqldatetime

Read More
How to see the execution plan of a multi-statement table valued function in SQL Server?...


sqlsql-servert-sqlssmssql-execution-plan

Read More
Used statistics from XML plan cache for query with given QueryPlanHash...


sql-serverxmlt-sqlxml-parsingsql-execution-plan

Read More
TSQL: ORDER BY - either use a column or nothing (empty)...


sqlt-sql

Read More
Workaround maximum key length for a nonclustered index in SQL Server...


sqlsql-serverdatabaset-sql

Read More
Query to create new data column with alphabetical concatenating the data...


sqlsql-servert-sqlconcatenation

Read More
String_Agg concatenating duplicated value when there is multiple Ids exist...


sqlsql-servert-sql

Read More
Convert varchar to datetime without millisecond...


sqlsql-servert-sql

Read More
GROUP BY clause with a sum of zero (and non-zero) data...


sqlsql-servert-sql

Read More
Difference from the first row but aggregating from second row till the end...


sqlsql-servert-sql

Read More
XML output from SQL Server based on header and details...


sql-serverxmlt-sqlxpath

Read More
Can I add a not null column without DEFAULT value...


sqlsql-serversql-server-2005t-sql

Read More
Filter out codes under certain conditions...


sqlt-sqlwhere-clause

Read More
Identify and label each branch in a hierarchical structure...


sql-servert-sqlgroupingcommon-table-expressionhierarchy

Read More
SELECT INTO USING UNION QUERY...


sqlsql-servert-sqlunionderived-table

Read More
STRING_SPLIT and ROW_NUMBER() - maintaining order...


sql-servert-sqlwindow-functions

Read More
Using RegEx in SQL Server...


sql-serverregexsql-server-2008t-sql

Read More
Get top 1 row of each group...


sqlsql-servert-sqlgreatest-n-per-group

Read More
How to convert number of minutes to hh:mm format in TSQL?...


sql-servert-sqlsql-server-2008type-conversiondatediff

Read More
Retrieving last record in each group from database - SQL Server 2005/2008...


sql-server-2005t-sqlsql-server-2008distinct

Read More
What is the difference between using a cross join and putting a comma between the two tables?...


sqlsql-servert-sqlselectcross-join

Read More
How to split a single column values to multiple column values?...


sqlsql-servert-sqlstring

Read More
Loading JSON file with nested elements into a T SQL table...


jsonsql-servert-sqlnested

Read More
Given a view in SQL Server with a union query, can I find out which source columns from each source ...


sql-servert-sql

Read More
Generate row for each month year if product sold in that year...


sql-servert-sql

Read More
BackNext