need help with Invoice summary query
Hi,I am working on an Invoice summary query. I have multiple queries which need to be merged into one to get the accurate result. Even some column names come from data tables. Please help me merge...
View ArticleExecution plan
Hi Team,How to get execution plan of a SQL which has executed two days back?And how to compare two execution plans?
View ArticleCreate a trigger after insert to encrypt columns in a table
Hello All,I'm trying to create a trigger that will encrypt a column when an insert operation is done on table. Has anyone tried this before? I'm new to triggers. Any help is greatly appreciated.Thanks.
View ArticleMerge statement throwing Error !!
Hi Experts, Need some help on MERGE statement. It is failing, with below error message. Eventhough there are no duplicate records either at Source/Destination table, still below error is thrown. Msg...
View ArticleSpecial Character Being Inserted into Data
This is a strange issue, but I'm not sure how to troubleshoot this. Users are using an ERP system which is using .NET 4.6.1 that is tied to a SQL Database using 2014 and they are on Windows Server 2012...
View ArticleQuery displaying redundant data for a menu item, menu has choices, but...
Ugh, I know that topic was ugly...Ill try to explain this as best I can...I am writing a report for a POS systemI have a query here that works perfectly:[code language="sql"]SELECT DISTINCT Tick
View ArticlePlan Guides (Again)
Hello.Following on from a previous post about using plan guides as a short term fix, I am now looking at a different Applicationthat has an issue with Blocking.What I am attempting to determine is if...
View ArticleReconfiguring Data
I have a database that goes like below.ID, Value, Value Type1, 23, Location2, 34, &nbs
View ArticleREPLACE not effective ?!?
Hello,I've a problem with a REPLACE command that gives no error but is not effective and makes UPDATE command fail.It works perfectly for the first column "..n-1..." and not for the 2nd column...
View ArticleNot able to pass Parameters in Stored Procedure through SSRS
Hello SirI have created a stored procedure (fetching data from wonderware Historian).I want to pass parameter @Para from SSRS.But its not working.I have tags in Historian like Z1.energy,Z1.flow &...
View ArticleSyntax error - using OUTPUT clause with @tablevariable and UPDATE DML
I have a stored procedure where I am trying to update stock values in a table based on values in a table variable. After updating the values, I want to capture the before and after values and store in...
View ArticleQuery Tables for a Specific Value
I currently have a query that is pulling a list of tables from sysobjects based on a where clause. From these tables, I need to only output the ones that contain a certain value for one column in...
View ArticleStored Procedure Performance After Creation
I understand that stored procedures are compiled on the first run, possibly making the runtime longer. If I create a new procedure and run it multiple times in a loop within the same script, would it...
View ArticleBenefit of updating statistics after creating new index
Is there any performance benefit of updating statistics after creating a new index? I am in the process of creating up to 40 new indexes to improve performance in my database and curious to know if I...
View ArticleNegative Consequences of Too Many Indexes
Are there any negative consequences of adding too many indexes, such as in performance. What is considered too many?
View ArticleSSIS - dynamically populate remotepath in FTP task
I am working with SSIS 2014 and need to set up a foreach loop that will download all files that are present in each of the directories that I specify as a result of a query.So for example, on the FTP...
View ArticleInserting rows into a uniquely named global temp table from a UDTT via...
I may well be close to tearing my hair out. I've searched google, tried a thousand variations of the code and I'm typing so hard the keyboard may break. I need to have a global temp table with a unique...
View ArticleSSRS Dataset Sequential Execution order between parent and sub report
All,I'm upgrading all my SSRS 2005 reports to SSRS 2014 and finding that the order of execution of my datasets for both parent and sub report differs between these two versions. In 2005 we have relied...
View Article