Transaction Log full Reasons??
Hi , Recently my transaction log in QA environment became full and caused an issue. When I looked in to that I found an issue with a stored procedure.The SP is executed for each Employerid (say a 50...
View ArticleMANUAL INCREMENT COLUMN IN MERGE
Hi All, I am using merge statement to insert and update my Destination Table. My destination table has id a primary key column which should be manualy incremented. It should be identity but for some...
View Articlesql 2012 certifications
Hi All, I am not very clear about the new certifications for SQL Server 2012. I already have the certifications MCITP in Business Intelligence sql 2008 (70-452 & 70-448) and also MCTS ,Database...
View Articlemerge perfomance improvement
Hi All, I am using a merge query to do an update(Please find the query below, There are around 30 columns in each table but i have just provided three here) There are about 30 million records in the...
View ArticlePadding in sql
What is the equivalent for the RPAD function in SQL? Example RPAD(LTRIM(RTIM(Column1)) , 10 , '')
View ArticleStoredProcedure Changes Tracking
Hi All, I Need to identify stored procedure Changes(i.e altered by anyone) through DML triggers even if the stored procedure is encrypted. Please let me know any useful tips references to start with....
View ArticleSQL Query Help
Hi Please find below mytable structure and expected result. I have tried joining the same table with LastModified less than the other. But I still couldnt it in this order. Thanks in advance [1]:...
View ArticleSSIS INSERT/UPDATE Perfomance improvement
I HAVE 40 MILLION RECORDS IN MY PERSON TABLE I HAVE 100000 RECORDS FROM MY SOURCE TABLE WHICH I NEED TO COMPARE WITH PERSON TABLE AND DO AN INSERT,UPDATE OR DELETE ACCORDINGLY. UPDATE IF PERSONID...
View Articledatasets compare
Hi I have two datasets ![alt text][1] [1]: /storage/temp/1198-untitled.png now i need to compare the entire dataset not row by row for example i need to compare Table A & Table B since there is a...
View ArticleSQL Query Help needed!
Hi , I am quite stuck at this point in arriving at my expected result. Kindly provide your suggestions. My expected result.I need to Group the data together and give that an id ![alt text][1] CREATE...
View ArticleSQL QUERY HELP
Hi All, I have a table such as ![alt text][1] My expected result is Kindly let me know which is the best way to come to this result. switch case or row number ? ![alt text][2] [1]:...
View ArticleSQL Query Logic
My Table data is like ![alt text][1] My expected result is ![alt text][2] My Numerator is calculated on the following logic For Duration 0 : Sum of all values For Duration non 0 :Sum of all Values...
View ArticleSQL SELECT QUERY HELP
Hi All, I have a table as below TableA (Code,Description,effectivedate) ![alt text][1] We have identified a list of possible duplicates , in the above case there are 2 Codes with the same description...
View ArticleSQL Query Logic
Hi , I have the following scenario Kindly let me know which is the best way to do it. Thanks in advance. ![alt text][1] [1]: /storage/temp/1555-screen+shot+2014-06-24+at+12.14.06+pm.png
View ArticleTransaction Log full Reasons??
Hi , Recently my transaction log in QA environment became full and caused an issue. When I looked in to that I found an issue with a stored procedure.The SP is executed for each Employerid (say a 50...
View ArticleMANUAL INCREMENT COLUMN IN MERGE
Hi All, I am using merge statement to insert and update my Destination Table. My destination table has id a primary key column which should be manualy incremented. It should be identity but for some...
View ArticleSQL UPDATE PERFOMANCE IMPROVEMENT ??
I have a table SiteIdTable . I would like to fill ids to Locationid field in an incremental fashion for those records the LocationId is null . There are a million records in the table CREATE TABLE...
View ArticleSSIS execute sql task VS storedprocedure
I HAVE STORED PROCEDURE WHICH TAKES SEVERAL HOURS. What it does is basically import data to the database from other servers using linked query. The stored procedure comprises of around 10 such imports...
View ArticleSQL LINKED QUERY VS SSIS
Hi , I am using a linked query to join two tables from different servers and insert the data to a table. It takes hours to execute and I am trying to improve its performance. I thought of using Join...
View Article