Quantcast
Channel: Questions in topic: "query-tuning"
Browsing latest articles
Browse All 30 View Live

Complex LEFT OUTER JOIN or OUTER APPLY / NULL problem

Afternoon All, Help me check my thinking on this one. And please pardon then lack CREATE TABLES…I’ll post those when I get back to the office. I have a table of daily flight activity for airplanes...

View Article



query timeout

I have a report builder,User can add any field that need and also can filter on any field/s. the base table has more than 20 million records and I show only 20-30 rows [using paging]. when I filter the...

View Article

Tuning SQL Query - Running too long

Hello! I have a query that does exactly what I need it to but I know there has to a better way to write this because it runs for 17 minutes. The problem is in the where logic because when I take the...

View Article

Indexing tips

Hi All, I need your ideas and tips to performance tune a massively expensive query. How do I get around attaching the xml file over here please ? [Link to Execution plan (rename as .sqlplan)][1] [1]:...

View Article

Please tune the code

Dear All, Have wrote a script. Could you please tune the code. bit urgent. select J.RouteID TripID, J.JourneyAlias Journey_Trip_Id, J.OwningDepotDropPointID Depot, JD.DropPointID LocationID,...

View Article


sql command getting truncated after max value is reached

hello everyone, I have a stored procedure where we declared a variable sql with nvarchar(4000) as datatype. Now, this variable stores a sql query coming from a result set of a table.Once the variable...

View Article

To calculate the Tempdb utlization by query

Some of the queries causing the tempdb full. I need to know how much space is use by query. So that I can tune the query.

View Article

Improving Query Execution

[link text][1][link text][2] Hi! I have a few queries that I really need to improve the performance on because they take too long to return the data. How could I improve the following query? DECLARE...

View Article


Can anyone help me fine tune this Query

CREATE TABLE #TMPLOCALE(key_val NVARCHAR(255),value NVARCHAR(255),locale NVARCHAR(2000),source_value NVARCHAR(255),module NVARCHAR(255)) DECLARE @key NVARCHAR(255) DECLARE @value NVARCHAR(255) DECLARE...

View Article


SQL QUERY NIGHTMARE!

Hi Guys Greetings for the day, Can you please read my blog and answer. It is regarding a query running very slow in PROD against the DEV. Here is the url:-...

View Article

Querying huge volume Data

Hi, We have developed an In-house Productivity Monitoring tool on our organization. Objective is, a client tool will be installed on all the users' desktop/Laptop, which will track all the activities...

View Article

Any ideas on why Query-two would run so slow ?

1-Query one--index seek SELECT P.Date_Send_Ins,C.* FROM DATABASE1..TABLE1 P WITH (FORCESEEK) JOIN DATABASE2..TABLE2 C ON P.COLUMN1 = C.COLUMN1 AND P.COLUMN2 = C.COLUMN2 WHERE LEFT(C.COLUMN3 ,7) LIKE...

View Article

SQL query performance issue on SQL 2016 standalone Enterprise edition

Hello, We have recently migrated database from SQL 2012 to 2016 and encounter very strange query performance issue ,The below CTE inner query is executing in 5 sec and returning the 27 records but when...

View Article


Long running query.

Hello,We have a table with half million records. There's a column which is storing xml data but the datatype of that column is varchar. This column alone is consuming 4097 bytes.When i query the below...

View Article

High Row Estimate Due To Where Column In Joined Table

Hi I am having a pretty basic problem. I have an orders table which I am joining with some other table.I am filtering the orders table to get back the orders of just the last 30 days and also the...

View Article

Browsing latest articles
Browse All 30 View Live




Latest Images