Quantcast
Browsing all 76 articles
Browse latest View live

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 Article


MANUAL 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 Article


sql 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 Article

merge 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 Article

Padding in sql

What is the equivalent for the RPAD function in SQL? Example RPAD(LTRIM(RTIM(Column1)) , 10 , '')

View Article


SQL TO GET XML

![alt text][1] [1]: /storage/temp/1124-xml.png

View Article

StoredProcedure 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 Article

SQL 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 Article


SSIS 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 Article


datasets 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 Article

SQL 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 Article

SQL 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 Article

SQL 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 Article


SQL 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 Article

SQL 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 Article


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 Article

MANUAL 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 Article


SQL 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 Article

SSIS 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 Article

SQL 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
Browsing all 76 articles
Browse latest View live