Viewing 15 posts - 451 through 465 (of 1,086 total)
Let's look at this backwards. You have a known structure for a final output table, [Project, various ErrType counts]. Rather than use a CURSOR to run each of the six...
October 12, 2005 at 11:26 am
While most of your explanation is thorough and well stated, I am a bit confused on your question. Do you want one SP, so you can change it if needs...
October 12, 2005 at 10:15 am
This is the correct approach if in fact both fields are always the same...
October 12, 2005 at 8:12 am
I agree with Jo! Have them do it with Access and then perform a dual report for the "more complicated" easy reports and show them how their results may conflict...
October 12, 2005 at 8:11 am
I agree with rsharma. I was not sure if there was a finite set, hence the clunky dynamic sql approach. If you have a finite set, I would follow that...
October 12, 2005 at 7:47 am
This 'may' work, but it is much more helpful when you supply us with sample data.
The -- PRINT @sql statements should help...
October 11, 2005 at 9:24 pm
I was working under the assumption that you were doing this from Query Analyzer with the database already defined. Where are you planning on running this statement?
October 11, 2005 at 2:59 pm
UPDATE TableName SET
CoumnB = ColumnA
[Note: this update will change the all of the values for ColumnB since there is no WHERE statment. Is this what you want?]
October 11, 2005 at 2:23 pm
DECLARE @t TABLE( Resource varchar(25), Task varchar(10), TaskStart smalldatetime, TaskEnd smalldatetime)
INSERT INTO @t
SELECT 'John Doe', 'task1a', '09/01/05', '12/01/05' UNION ALL
SELECT 'John Doe', 'task1c', '8/01/05', '10/01/05' UNION ALL
SELECT 'Sue...
October 11, 2005 at 12:25 pm
Noel beat me to the punch.
ALTER PROCEDURE My_First_Transaction
@FirstName varchar (50),
@LastName varchar (50)
AS
BEGIN TRANSACTION
INSERT INTO Employees( FirstName, LastName) VALUES( @FirstName,@LastName)
IF...
October 11, 2005 at 12:02 pm
You should always have an ELSE when using IF's...
October 11, 2005 at 4:21 am
Sorry. I did not read that closely enough. (being a bit of a doooomas, I guess...)
Since you need to name each return...
October 10, 2005 at 10:38 pm
What is the datatype of FullName and why did you select nvarchar for your @FullName variable?
October 10, 2005 at 9:40 pm
Viewing 15 posts - 451 through 465 (of 1,086 total)