Login failed for user 'mydomain\myservername$'. Reason: Could not find a login matching the name - I upgraded a SQL 2014 to 2017 server. Today I see SQL log filled up with error below : Login failed for...
Sql query row value if exists - Dear All, i would like to create the virtual column result with if exist condition. Example : If column1 value is equal to...
Get 2 decimals in my query - SELECT 'Per Category' AS Category, , , , , , , , FROM (SELECT CategoryID, AVG(UnitPrice) as UnitPrice FROM Products GROUP BY...
increase performance for SSIS package with BULK INSERT - I have created a package for our company that takes all the data from a table in our ERP production...
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...
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...
LEFT JOIN with CASE subquery ? - I am joining several tables together to do get pricing (a column) based on a code value (a column) and a...
How to roll up quantities > 1? - Hello everyone, I have not worked with rolling up quantities before and I am looking for some help. I need (or would...
Pivot the data - I am wondering if I can get some help here. I am joining 2 tables which brings me the result...
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),...
Recover free space in multi-terabyte db with minimal downtime - We have a multi-terabyte DB that is part of an HA Group, which, due to a lot of archiving now...
Need help in real time query tuning scenario in Adventure works - Hi all, I have been working in TSQL for 7 years but till now i have never faced to tune...
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...
Joining large tables to small tables. - Hi I hope this is an easy question to answer. :-) I'm joining a large table to a small table and results...
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...
two databases...same name...same instance...is it psbl? - just to give bckgrnd about my process...we are inserting data into different environments with the same db...so we need to...
How to change the database server for case sensitive - hi, In my database I created one table and add one column. column name is : column1 .. when i used select query...
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...