Viewing 15 posts - 151 through 165 (of 1,156 total)
WHERE CONVERT(VARCHAR,MyDateColumn,101) =
CONVERT(VARCHAR,DATEADD(dd,-1,GETDATE()),101)
April 1, 2008 at 11:05 am
I tried Full outer joins but seems like it throws a huge bunch of unwanted records
It sounds like you need a left join. A left join will return all...
April 1, 2008 at 10:43 am
If restoring the Master resolved your issue, then you have setting that is different between instances. The Master database stores all system information for an instance. The meta data...
April 1, 2008 at 6:57 am
Unfortunately, I think the stored procedure will have to be modified. I would open the stored procedure and do a search for 'EXCL'. There may be 100s of lines,...
March 31, 2008 at 7:31 pm
Sounds like you have an implict conversion that SQL 2000 did not mind, but 2005 is throwing a fit. SQL 2005 is a lot more strict that 2000 when...
March 31, 2008 at 6:46 pm
Just putting a solution that is new to SQL 2005. It works the same way as not in, except nulls do not throw it off.
select id
from tblA
except
select...
March 31, 2008 at 5:19 pm
I would like to also add that some of the best practice you can get is by helping others solve problems on sites such as SQL Server Central. Solving...
March 31, 2008 at 5:04 pm
A pretty good source is w3schools. This site offers lots of differnent tutorials and practices, with easy to understand examples.
March 31, 2008 at 5:01 pm
Unfortunately, you cannot use the XML method or row number method in 2000. You should use a simple select statement to concatenate the string from you.
SET NOCOUNT ON
GO
create table...
March 31, 2008 at 4:54 pm
Did you change the quotes? Post your code, as it stands now.
March 31, 2008 at 4:44 pm
Your quotes are messed up. You have to put 2 single quotes around items the need to be in quotes. E.g. select ''adam''.
try this. I cant test...
March 29, 2008 at 8:23 am
Rbarryyoung,
Thanks for the reply :). My post wasnt meant to pick at your or say you were wrong. I misinterpreted your post by thinking that you were saying...
March 28, 2008 at 6:42 am
You can use XML to concatenate the results from the subquery. All you have to do is structure your subquery to look like the following.
You should keep...
March 27, 2008 at 8:34 pm
I thought that was old school and in 2005
This is somewhat true, system views should be used in most cases. The old school method to query tables you...
March 27, 2008 at 8:11 pm
Viewing 15 posts - 151 through 165 (of 1,156 total)