Viewing 15 posts - 256 through 270 (of 1,086 total)
I don't have any data to try this with, but you may also try this approach:
SELECT topics.topic_id, topics.topic_title, posts.post_time
FROM tbl_topics topics
INNER JOIN( SELECT DISTINCT TOP 5 tbl_posts.topic_id,...
April 4, 2006 at 3:07 pm
Is this what you want?
DECLARE @t TABLE( Field1 varchar(10))
INSERT INTO @t VALUES( 'Admit')
SELECT * FROM @t
April 4, 2006 at 2:02 pm
Yeah, but there are like thousands, so I was hoping for some internal function, (quick and dirty select, you know?). Short of something nice like that, I may have to...
April 4, 2006 at 1:59 pm
My initial reaction is two-fold. One, are you jumping between databases? Two, is the BETWEEN @Date + '00:00:00' working?
What error are you getting?
April 4, 2006 at 1:56 pm
SELECT @t will give you a result.
SELECT * FROM @t is treating @t as a Table Variable...
April 4, 2006 at 1:53 pm
Thanks, but it errored.
Server: Msg 1540, Level 16, State 1, Line 1
Cannot sort a row of size 8098, which is greater than the allowable maximum of 8094.
I can do...
April 4, 2006 at 1:52 pm
Me too. (Generally when I have used CHARINDEX, I subtract one for replacement or parsing...)
April 3, 2006 at 7:31 pm
Have you tried including the no_output parameter?
xp_cmdshell {'command_string'} [, no_output]
April 3, 2006 at 6:15 pm
Not the best solution, but should work.
(Thanks sue)
April 3, 2006 at 6:07 pm
Glad to help. I did not know your tables, so I just had to wing what I saw.
April 3, 2006 at 4:42 pm
Here is a possible way to do it dynamically so you do not have to hardcode the Project Code:
(chances are good you can do this more efficiently through an...
April 3, 2006 at 3:34 pm
I had to re-write this so I could understand it a bit better. I believe your change is superior and accomplishes the same thing. Basically, you use a direct join...
April 3, 2006 at 2:48 pm
I am hoping you have some knowledge of the datatypes that could be passed in.
Use IF statements with the various "IS" functions, (ISDATE, ISNUMERIC, ISNULL...) to test and you...
March 7, 2006 at 10:25 am
That's true too. If that table has a "most recent date", (or something like that) you can do it as an INNER JOIN( SELECT Address, MAX( RecentDate) FROM EmployeeAddress GROUP...
February 21, 2006 at 3:08 pm
Take u3.CHECKDATE out of your GROUP BY
February 21, 2006 at 2:49 pm
Viewing 15 posts - 256 through 270 (of 1,086 total)