Viewing 15 posts - 586 through 600 (of 726 total)
This has got to be one of the most frequently asked questions, and there is likely an article on it (which if I find, I'll start linking to), but in...
March 29, 2007 at 11:05 am
I'm guessing that you're not passing the output parameter. Your best bet is to look at the BOL examples under CREATE PROCEDURE, as they show you examples of how to...
March 29, 2007 at 11:00 am
webrunner, my method should work fine. Derived tables (which is what you are seeing in my query) are not only not typically problematic, but in many cases are the ideal solution....
March 29, 2007 at 8:19 am
Koji, I'm confused when you say "If you prefer not to use an intermediate table, try this", when we both use the "roster" table, which appears to me to be...
March 29, 2007 at 5:40 am
SSRS sees the sysout cursor just as it sees a SELECT statement from a T-SQL stored proc. Where exactly are you having problems? Are you getting errors, etc?
If you are...
March 28, 2007 at 8:05 pm
If you are using SS 2000 or later, this should work for you.
ALTER DATABASE DatabaseName MODIFY FILE ( NAME = logical_file_name, NEWNAME = new_logical_name )
March 28, 2007 at 7:54 pm
I don't use it, but my understanding is that it understands a large subset of the T-SQL language. I'd highly doubt a 100% conversion rate for most people, but I'll...
March 28, 2007 at 4:13 pm
Untested, and I don't have your data, so not optimized in any way.
SELECT
c.Course_ID
,c.Course_Title
,i.Instructor_ID
,i.Instructor_Name
FROM
(
SELECT
Course_ID = r.course_id
,Instructor_ID = Min(r.instructor_id)
FROM
roster AS r
GROUP BY
r.course_id
) AS x
INNER JOIN courses AS c ON
x.course_id = c.course_id
INNER JOIN instructors...
March 28, 2007 at 4:03 pm
William, the reason I alias column names even when the source columns are unique is because the alias is often later needed, so if I have it now, everything lines...
March 28, 2007 at 3:48 pm
I'm so anal that I use both table and column aliases, even when it's just one table, and when the final column name is the same as the source. I truly...
March 28, 2007 at 1:51 pm
This is a common enough question that we should probably have a sticky for it, but here's what I answered the last time. It is easily modifiable for your needs,...
March 1, 2007 at 9:52 am
You can, but I'd personally do this on the server side, having your stored proc create an alias named "Success" or something similar, combining the results from both columns, and using that as...
February 19, 2007 at 3:26 pm
Not trying to be Captain Obvious here, but have you turned on full-text indexing on the database, table, or column?
February 15, 2007 at 8:44 pm
Viewing 15 posts - 586 through 600 (of 726 total)