Viewing 15 posts - 16 through 30 (of 79 total)
I think give it a try by using temp table instead of table variable , then crate index on temp table for the field whic is in where clause ,...
April 26, 2009 at 11:40 pm
Clear with the Max row size, it wont allow char to grow more than 8060 and varchar would reside in row upto 8060 and after that off tha page...
thanks a...
April 23, 2009 at 4:19 am
ok means the max row size is 8060 bytes and anything more than then resides off the page , right...
Thanks very much.....
Mithun
April 23, 2009 at 3:48 am
this row size me total columns size?
i mean i tried like this first,
create table my table (str1 varchar(3000),
...
April 23, 2009 at 3:10 am
Hey chris sir,,,
thanks for ur reply... now i know y we cant use dml in functions...
thanks , really thats usefulll
Mithun
April 22, 2009 at 2:48 am
Chris Morris (4/22/2009)
mithun.gite (4/22/2009)
Need understanding, that y v can perform DMLs in Functions?
We can use DMLs using table variable in fucntion then y can with actual tables..
Please guide me...
April 22, 2009 at 2:00 am
GilaMonster (4/21/2009)
mithun.gite (4/21/2009)
Can any one give me a link for Query Optimization, using that i can start optimizing my queries?
I can suggest some books.
Inside SQL Server 2005: Query Tuning and...
April 21, 2009 at 6:40 am
Florian Reischl (4/17/2009)
In SQL2k5 it is possible by a detour over a non-unique index and a CHECK constraint:
CREATE TABLE TestCheck
(
Id INT NOT NULL IDENTITY,
UniqueText...
April 17, 2009 at 6:31 am
Paul White (4/17/2009)
Mithun
I have one query likeselect * from emp where dept_no in(10,20,30)
Can anyone help me in using EXISTS instead of IN ?
Mithun,
Everyone else has posted the sensible answers, so...
April 17, 2009 at 5:31 am
GilaMonster (4/17/2009)
mithun.gite (4/17/2009)
See, anyone who sees the query can guess that its not the actual query to optimize,,
Then what was the point of posting it?
its just a matter of...
April 17, 2009 at 4:44 am
GilaMonster (4/17/2009)
mithun.gite (4/17/2009)
select * from emp where dept_no in(10,20,30)
As in this query only optimization...
April 17, 2009 at 4:13 am
Chris Morris (4/17/2009)
mithun.gite (4/17/2009)
April 17, 2009 at 3:39 am
Dear All,
I took some test data on adventureworks database...
below are the queries:::
Query 1
select * from HumanResources.EmployeeDepartmentHistory
where departmentid in(7,4,1,2)
(201 row(s) affected)
Table 'EmployeeDepartmentHistory'. Scan count 1, logical reads 4, physical reads 0,...
April 17, 2009 at 3:10 am
Dear ALL,
Actually I have been asked to Optimize the query and do the performance tunning to the query.
select * from emp where dept_no in(10,20,30)
As in this query only optimization we...
April 17, 2009 at 2:51 am
It is possible, one way i know which is pasted below, wanted to know anyone knows the other simple way????
SET NUMERIC_ROUNDABORT OFF;
SET ANSI_PADDING, ANSI_WARNINGS, CONCAT_NULL_YIELDS_NULL, ARITHABORT,
QUOTED_IDENTIFIER,...
April 17, 2009 at 2:07 am
Viewing 15 posts - 16 through 30 (of 79 total)