Viewing 15 posts - 5,521 through 5,535 (of 6,036 total)
You cannot use set of values as a parameter for UDF.
t.StudentId is not a value, it's a set of values.
You need rewrite the function to have only @CompanyId as a...
March 11, 2006 at 8:41 am
Aaron, your trigger gonna fail of part of RecId from Inserted exist in tblTempCustomer and part does not.
DON'T USE "IF" FOR SETS!
There is "WHERE" clause for this.
March 9, 2006 at 5:39 pm
Use
UPDATE tblTempCustomer
SET ...
FROM iserted
WHERE inserted.RecID = tblTempCustomer.RecId
March 9, 2006 at 5:26 pm
What about UDF?
dbo.SalesAmount(@CustomerId, @PeriodStart, @PeriodEnd)
SELECT CustomerId,
dbo.SalesAmount(CustomerId, @Today, @Today + 1) as Todays$,
dbo.SalesAmount(CustomerId, @Today - 1, @Today) as Todays$,
dbo.SalesAmount(CustomerId, dateadd(mm, -(Datepart(mm, @Today) + 1, dateadd(dd, -(Datepart(dd, @Today) + 1, @Today)),...
March 9, 2006 at 4:11 pm
EXEC [dbo].[sp_get_admin_email] @address OUTPUT
March 9, 2006 at 4:04 pm
What exactly you did not understand in BOL article "UPDATETEXT"?
March 9, 2006 at 1:36 pm
IF NOT EXISTS (select procedure entry here)
EXEC('CREATE PROCEDURE ....')
March 9, 2006 at 1:28 pm
Me?
Nothing.
Your question is not about T-SQL.
Supply your algorithm and we will help you to implement it in SQL.
But seems solution is what you need.
March 8, 2006 at 8:55 pm
Actually, they pay me good salary for solving problems like this.
Including rounding issue in reports.
Will you?
![]()
March 8, 2006 at 6:05 pm
How you string suppose to look if you 1st flight to JFK airport in NY and 2nd flight from another airport?
Should you display taxi travel?
March 8, 2006 at 2:58 pm
What about indexes on joined fields?
Look on Execution Plan for this query.
March 6, 2006 at 6:44 pm
It will not work this way.
You will see the code of EM replacement character, not the one has been replaced.
SELECT ASCII(SUBSTRING(<ColName>, <StartPosition>, 1))
March 6, 2006 at 6:41 pm
Your approach prescribes to create orphaned records.
It's only point of not having DRI described in the article.
DRI allows to create clear SELECT statements without extra check if this record is...
March 6, 2006 at 5:50 pm
Viewing 15 posts - 5,521 through 5,535 (of 6,036 total)