Viewing 15 posts - 1 through 15 (of 54 total)
If you'd like our help in optimising this, please post table definitions, index definitions and execution plan
my query is :
select top 1 [name],address,nextmedia1,[description] from media where look=1 and name ='100942885226.jpg'...
September 8, 2010 at 5:38 am
I'm not sure I fully understand what you're asking.
I think the fluctuating CPU usage by sqlservr.exe, may cause for this heavy reads. how can i fix these?
September 8, 2010 at 4:15 am
Does that particular query always run with that many reads? (There's only one entry for it in the profiler trace)
Does it do the same number of reads when run manually?
I...
September 8, 2010 at 3:37 am
GilaMonster (5/31/2010)
Sorry, still not completely clear what you're looking for? Background on the query operators? On how the queries are processed? Something else?
yes, i mean both about background on the...
May 31, 2010 at 7:47 am
GilaMonster (5/31/2010)
dr_csharp (5/31/2010)
do u know any references to understand these differences scientifically ?
My explanations weren't scientific enough? Did you read through the posts referenced in the first of those links?...
May 31, 2010 at 7:31 am
GilaMonster (5/31/2010)
If you test them out, which is faster? Do note that they are not necessarily equivalent queriesThese may be of interest -
http://sqlinthewild.co.za/index.php/2010/04/27/in-exists-and-join-a-roundup/
http://sqlinthewild.co.za/index.php/2010/01/12/in-vs-inner-join/
thanks, it was helpful.
do u know any...
May 31, 2010 at 7:06 am
Paul White (2/16/2010)
dr_csharp (2/16/2010)
Yes Paul, data are numeric stored in NVarchar fields in persian. and the function i did, is going to convert any number to latin format.
Any other details...
February 16, 2010 at 11:17 pm
Paul White (2/16/2010)
You have data stored in...
February 16, 2010 at 10:49 pm
Paul White (2/16/2010)
I hope everyone that reads this thread appreciates the limitations of that function.Yikes!
i dont know what do u mean by limitation, cause this function has one goal and...
February 16, 2010 at 9:25 pm
eventually i forced to write a function.
i put here for friends like use :
CREATE FUNCTION [dbo].[CONVERTOR](
@string nvarchar(10)
)
returns nvarchar(10)
AS BEGIN
declare @converted nvarchar(10),
@charnvarchar(10),
@counterint,
@lengthint,
@unicodeint,
@asciiint
set @counter = 1
set @converted=N'';
set @length=LEN(@string)
while(@counter <= @length)
begin
set @char=substring(@string,@counter,1)
set...
February 16, 2010 at 5:20 am
Carl Federl (2/14/2010)
This is not possible as national characters in SQL Server are stored in UCS-2 (Universal Character Set 2 byte)...
February 15, 2010 at 10:24 pm
CirquedeSQLeil (2/14/2010)
You may need to check your collation settings. Not the same issue - but similar and with their solution
i create new database with SQL_Latin1_General_CP1_CI_AS collasion, but still same...
February 14, 2010 at 12:48 am
CirquedeSQLeil (2/13/2010)
You can do it - but data can be truncated, only partially displayed, or an error returned because the result is too short to display. Use the link...
February 13, 2010 at 11:42 pm
Eddie Wuerch (1/11/2010)
SELECT Title,Subject, Max(Price) OVER(PARTITION BY Subject)...
January 11, 2010 at 9:45 pm
hooRRRa ,i do like this :
SELECT * FROM Book Inner JOIN
(
SelectSubject,Max(Price) as Price
FROMBook
GROUP BYSubject
)T
On T.Subject=Book.Subject AND T.Price=Book.Price
but please guide me if there's any better solution :O)
January 11, 2010 at 12:27 pm
Viewing 15 posts - 1 through 15 (of 54 total)