Convert horizontal table to vertical in Sql - I have the following table format: need to convert this table to following format:
Update table using inner join - SELECT x.pkproductid ,x.supplierbarcodecorrect ,x.Code ,x.pksupplierid from Entertainer.dbo. x left join dbo.supplierpack spk on spk.fkproductid = x.pkProductID and spk.fkSupplierID = x.pkSupplierID The above quer
float error in t-sql scalar function - Hello Everyone, The below code is giving me error: Msg 3623, Level 16, State 1, Line 27 An invalid floating point operation occurred. [code...
Need Help to convert DATETIME result into DATE on SQL Server - How can I convert the result into a DATE datatype as '0001-01-01' isn't supported with DATETIME? I've tried DATETIME2 but...
Licence doubt - Hi, How many SQLserver(2016 enterprise edition) licences required for two( 2) Virtual machines and four(4) Core machines each to build always...
AG over different subnets and using linked servers - We have a typical AG set up, there are 2 nodes in one data on same subnet and 1 node...
dm_db_index_usage_stats not accurately reflecting index usage - Hi all I'm trying to resolve a performance issue we are having with a stored proc - i've recently added a new...
Intermittent sql_variant problem on COMPATIBILITY_LEVEL >= 120 - I have encountered a reproducible but intermittent problem when working with sql_variant values in SQL 2016. The problem does not...
SQL Server 2012 : Error while scheduling database backup with multiple backup files - Hi, Receiving attached Error while scheduling database backup with multiple backup files. Job was working fine till last week but I wanted...
SQL Syntax HELP on merging enrollment spans - If object_id('tempdb..#SPAN1') IS NOT NULL DROP TABLE #SPAN1; If object_id('tempdb..#SPAN2') IS NOT NULL DROP TABLE #SPAN2; CREATE table #SPAN1( name VARCHAR(20),...
Trying to drop an invalid column name without recreating the table. - Hi all, Was wondering if it was possible to drop an invalid column on a table which a developer has somehow...
delete all apart first first record of episode? - I have a table full of episodes. So for one episode there might be 10 records. I want to delete...
View creation: Using UNION ALL on dynamic schemas - Hi, I want to create a VIEW that combines same as well as different tables from different as well as same...
A call to ‘LogonUserW’ failed with error code : ‘1385’ - I'm pulling data from a NAS share and have recently run into the following error. An error occurred during the execution...
Retrieving distinct values from two tables in vb.net -
SSIS package execution fails when trying to load large size Excel file via SSIS Catalog (SSISDB) - Hello, I was working on a SSIS Package which simply loads an excel file into a SQL table without any transformations. The...
SSIS Dataflow is not throwing any error when there is invalid column in the source flatfile with same datatype - Please help me asap. SSIS Dataflow is not throwing any error when there is invalid column in the source flatfile...
SQL Sever Scheduled Jobs - Hi, I'm trying to set up a scheduled job that runs daily and sends out an email to me when a...
How to write/ combine two expressions in Derived column - Hi, I have two expessions that I want to combine to be used in one column in derived column. How can...
How to convert INTEGER to TIME - Hello, I have a column which is integer data type and it represents number of seconds. I need to convert it into...