Viewing 15 posts - 13,546 through 13,560 (of 13,876 total)
You need to use a join to get the best performance. Indexing on the id fields would also help a lot.
select * from table2 t2
left join table1 t1 on...
June 20, 2005 at 3:09 am
Use CONVERT in your SELECT statement to format the results that are returned by the SELECT statement - this will not affect the underlying data:
SELECT CONVERT(blah blah) as NiceDate, ....
will display...
June 16, 2005 at 7:55 am
This is difficult to achieve outside of EM - see the following link for more info. if the EM solution is not what you want.
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=5&messageid=126116&p=1
Regards
June 16, 2005 at 4:45 am
To prove your suspicions, you could try changing the offending select statements by adding WITH (NOLOCK)? I do not know the answer to your @@isolation question.
Regards
Phil
June 15, 2005 at 10:18 am
Chuck, this is certainly possible. The outline of what you need to do is
select data1, data2, etc
from tablelist
where (change varchar field to date) > targetdate
This does not require you to...
June 15, 2005 at 9:55 am
Hmmm - my assumption is surely valid? Assuming Doctor Who's absence, how can 'dateinput' be a future date? ![]()
June 15, 2005 at 9:19 am
How about this WHERE clause:
where ContractDate >= cast(floor(cast(getdate() as float)) as datetime)
Phil
June 15, 2005 at 8:06 am
I've never used this solution - though I see no reason for any drawbacks - except, perhaps, for the ugly message that could be sent back to client apps -...
June 15, 2005 at 7:56 am
Check out this link for more info on this:
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=9&messageid=157147#bm157159
June 15, 2005 at 6:16 am
Or you could use
where isnumeric(column1) = 0
Cheers
Phil
June 15, 2005 at 6:09 am
Depends on your table - eg does it have a key field that gets bigger and bigger with each new record? Eg if the data look something like this:
ID,...
February 1, 2005 at 5:07 am
The multiple [null] occurences are treated as duplicates: the index is therefore not unique and cannot be created as such. As far as I know, there is no simple...
January 23, 2005 at 3:11 pm
Several ways to do this. One is to create a new calculated field in your Products table:
NumericID = (convert(int,right([productid],6)))
and then it's just a straightforward query to find the next...
January 22, 2005 at 3:22 pm
Having a single db for multiple disparate applications sounds like a bit of a maintenance nightmare to me. I would keep them separate, but perhaps create an extra database...
January 20, 2005 at 11:09 pm
Viewing 15 posts - 13,546 through 13,560 (of 13,876 total)