Viewing 15 posts - 9,946 through 9,960 (of 18,923 total)
Only one allergy can be applicable at any time? Do you stop being allergic to peanuts once you become allergic to milk?
April 18, 2007 at 8:16 pm
Please post the link here for further referrences.
April 18, 2007 at 8:13 pm
You must list the columns you want to insert in the 2nd table. You must figure this list out yourself or give us all the info so we can build...
April 18, 2007 at 8:12 pm
Select * from dbo.TableName where valid_from <= @Date
The top 1 would limit the results to one row, which is most likely not what is wanted in this case.
April 18, 2007 at 3:58 pm
I meant the whole insert statment... I'm sure most folks smart enough to use searh engine are also smart enough to use books online
April 18, 2007 at 1:43 pm
Ya, those big concatenated queries are often full of surprises like this one
.
April 18, 2007 at 1:40 pm
Try this
if @TermID IS NOT NULL
begin
...
end
IF @TaughtCourseID IS NOT NULL
begin
...
end
April 18, 2007 at 10:37 am
Cancel my previous request.
IF EXISTS (SELECT * FROM dbo.SysObjects WHERE Name = 'ConcatDemo' AND XType = 'FN')
DROP FUNCTION dbo.ConcatDemo
GO
--Function to concatenate
CREATE FUNCTION dbo.ConcatDemo (@TableId INT)
RETURNS VARCHAR(8000)
AS
BEGIN
DECLARE @Return AS VARCHAR(8000)
SELECT @Return...
April 18, 2007 at 10:35 am
Why are you even using a cursor or a loop to do this?
Please post the tables' definition, some sample data and the required output from that sample data specifying weither you...
April 18, 2007 at 10:21 am
CREATE [UNIQUE] NONCLUSTERED INDEX IX_Name ON dbo.TblName (Col1, Col2) ON FileGroupName
If you were to do this with the clustered index, the whole table would be moved to this filegroup (not...
April 18, 2007 at 10:19 am
I see your concern, but what good is the list of procedures if they can't gain access to them? I'd like to hear your thaughts on the process as a...
April 18, 2007 at 10:15 am
SELECT CASE WHEN [Module] = 'Soarian Clinicals-Classroom Instruction' then [Module]
ELSE rtrim([Module])+'(Online Module)'
END as ModuleName
FROM [Module Name List SClinicals]
April 18, 2007 at 10:09 am
CREATE TRIGGER TR_Audit_TblName_A_U ON dbo.TblName
FOR UPDATE
AS
SET NOCOUNT ON
INSERT INTO dbo.AuditTbl (ColsList)
Select ColsList FROM dbo.Inserted
This would send the new data inserted in the table. Change Inserted to Deleted to have the...
April 18, 2007 at 10:07 am
Viewing 15 posts - 9,946 through 9,960 (of 18,923 total)