What sets SSIS Package to stop in OnError event handler
I have an SSIS package that appears to be stopping after a ForEach Loop container. The container passes in an ID returned from a query. When no records are returned from the query, no ID is passed in...
View ArticleQuery optimizaton - Suggestions
I Need help in optimizing the query ,Could you please throw some techniques or any valid query for replacement of this query . Help is highly appreciated as i am in dead lock to finish this . SELECT...
View ArticleDefault Value RAND issue
What is wrong with this Statement?[code="sql"]ALTER TABLE tblCallADD CONSTRAINT DF_ReinspectTagDEFAULT (RAND) FOR ReinspectTag[/code][code="plain"]Msg 128, Level 15, State 1, Line 219The name "RAND" is...
View ArticleCertification for MSBI
Hi, I am a sql developer with lil experience on (SSIS,SSAS,SSRS). I earned MS SQL querying 70-461 certification recently. To acquire certification on the above technologies (SSIS/SSRS/SSAS) what...
View ArticleStored Procedure runs fast only after execute first in SQL Manager
Hi,I use SQL Express 2014. I have a table with approx 45.000 rows.I use a Stored Procedure to select (with filter) from this table.When I execute the SP from my VB.Net app, it's execution time is...
View ArticleHow to Prevent insert duplicate value by check constraint
Hi There is a table which has one field with some duplicate values.we can not drop or update these duplicate values and have accepted them.But after now, we have to prevent insert duplicate keys. can I...
View ArticleFull Text indexing of Word and PDF Documents
Evening All,Has anyone had any good success / experience of importing and indexing Word and PDF documents; in particular using the Adobe and MS Office iFilters?Did you opt to extract the text and store...
View ArticleAutomate data script generation.
How do I automate a process which willa) select all tables from my database. some tables have auto identity columns.b) generate insert script that will turn on/off identities and save that script in a...
View ArticleSSIS - ForEach Loop Container (Excel load)
Hi,Having a problem getting a package to work.This package is supposed to load multiple sheets, from a single Excel workbook, into SQL Server 2014.I am using Visual Studio 2012 Integrated (Shell) and...
View ArticleHow to set the Flag for Only one Record
Hi,I have a requirement where I have to check for records and if Record is present for both the values, then Flag is 0 and if it is present for only one value then flag is 1.For ExampleID Value1...
View ArticleUse Different Group By and Order By Columns with Sub-query
I'm trying to only display certain columns and order by different columns from an aggregate group by query using a grouping set. To do this I'm using a sub-query.I have two questions:1. Is there a...
View ArticleJust fetches one record in 10 lakhs
Hi ,When i run this query i am getting only one record .The one with the comented policy id DLKB6663 alone comes here . I have almost 1o lakhs of records . How to make all the records to be displayed...
View ArticleResults of sys.dm_exec_procedure_stats are disordered
Hi I'v daily saved result of sys.dm_exec_procedure_stats in order to monitor number of execution of storedProcedures . (By subtraction Of today value and Prevday)I know that this results may reset if...
View ArticleNatively Compiled Stored Procedure Workaround for this case
Hello everyone.Could anyone please tell me if there any workaround to implement update in natively compiled stored procedure of one memory optimized table using the data from another mem optimized...
View ArticleLooking for opinions on updating data and minimizing locking
We are currently working on creating a portal website. The backend database will contain customer information. The current load process loads each table from different source systems one table at a...
View ArticleValues not adding up correctly when rolling up
I will first of all draw out my issue:EmpID Date FieldName FieldValue Total1234 1/1/16 approver John 3001234 2/1/16 approver tom 4001234 1/1/16 cost center ab 3001234 2/1/16 cost center ab 400This is...
View ArticleSQL Query - Nested SQL
Hi All,I hope that this is in the correct place! I have a single table with the following columns of interest.[code]DateOfBusiness FKStoreId CheckNumber FKItemId QSQuickComboID2016-04-01 00:00:00.000...
View ArticleHow to Get Query Plan During Execution
Is it possible to capture the text of an RPC SELECT statement from within the view which it calls? I have tried using [i]dm_exec_cached_plans[/i], [i]dm_exec_query_stats[/i] and [i]dm_exec_sql_text[/i]...
View ArticleSQL Server 2008 R2 to 2014 upgrade - performance degradation
I posted this question on the SQL Server 2008 forum as well:We upgraded SQL Server from 2008R2 to 2014 and we've seen severe performance degradation of stored procedures that user table variables (@)....
View ArticleInsert values into single record
Using While Loop i want to insert the values into single record like thisEmpid empname D1 D2 D3...D301 asd 2Loop Executes second timeEmpid empname D1 D2 D3...D301 asd 2 2Loop Executes third timeEmpid...
View Article