Quantcast
Channel: Questions in topic: "query-tuning"
Browsing all 30 articles
Browse latest View live
↧

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 all 30 articles
Browse latest View live