Viewing 15 posts - 2,356 through 2,370 (of 5,103 total)
I do think that there are ambiguities in the results you expect but here is something to help you define better what you really need:
-- create table data (sequence_number int,...
April 6, 2006 at 12:07 pm
Just create a calculated column on the table and then set an index on it
your query will end up been like:
select ...... calculated_column > 0
Cheers,
April 6, 2006 at 9:53 am
What do you mean that you can't specify an order on stored data?
Example: select * from statement_report order by sequence_number
That order, is on the retrieved data not on the the...
April 5, 2006 at 4:19 pm
I second Sergiy opinion you can't specify an order on stored data. Please post DDL and we may be able to help you.
![]()
April 5, 2006 at 4:02 pm
UPDATE m
set status = mb.status
FROM master m
join mastermasterbackup mb
on m.number = mb.number
April 5, 2006 at 3:56 pm
Standard Edition is only supported on SERVER platforms Windows XP is a DESKTOP platform. If you want to install SQL Server locally on Windows XP use the DEVELOPER EDITION
April 4, 2006 at 5:23 pm
Make sure you have an index in
FILE_NAME and FIELD_NAME
![]()
April 4, 2006 at 5:20 pm
I am pretty sure that is not the order by is the JOIN TYPE!!! Can you post the query plan you are getting? Merge joins require ordered input or at...
April 4, 2006 at 5:18 pm
Isn't that what I just posted ? ![]()
April 4, 2006 at 5:13 pm
try appending ... OPTION(ROBUST PLAN) ... to the query
I don't have sp4. This error tends to happen with "text" columns and merge joins!!
Cheers,
April 4, 2006 at 5:05 pm
Sorry for the delay
Yes I goofed when writing the post but it si easy to fix:
select object_name(id) n, sum(datalengh(text)) char_cnt
from syscomments
group by object_name(id)
order by...
April 4, 2006 at 4:42 pm
This works for me:
select object_name(id) n, sum(datalengh(text)) char_cnt
from syscomments
group by n
order by char_cnt desc
![]()
April 4, 2006 at 3:08 pm
You can do it ... sort of with temp tables:
...
select 1 as record_id, c.costumer_name, a.address, s.order_number
into
#T1
FROM salesorders s, addressess a, customers c
where 1=2
April 4, 2006 at 3:01 pm
I may not have been in this field as long as you have but I don't consider myself a newbie ![]()
Your "standard" SQL 92...
April 4, 2006 at 1:46 pm
If you are posting a solution that does not works with MS SQL Server in an MS SQL Server Forum what sense does that makes???
April 4, 2006 at 1:17 pm
Viewing 15 posts - 2,356 through 2,370 (of 5,103 total)