Viewing 15 posts - 5,521 through 5,535 (of 6,036 total)
Simplest solution:
select patindex('%[^0-9]12[^0-9]%',' ' + @String + ' ')
_____________
Code for TallyGenerator
March 11, 2006 at 8:59 am
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...
_____________
Code for TallyGenerator
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.
_____________
Code for TallyGenerator
March 9, 2006 at 5:39 pm
Use
UPDATE tblTempCustomer
SET ...
FROM iserted
WHERE inserted.RecID = tblTempCustomer.RecId
_____________
Code for TallyGenerator
March 9, 2006 at 5:26 pm
March 9, 2006 at 5:18 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)),...
_____________
Code for TallyGenerator
March 9, 2006 at 4:11 pm
EXEC [dbo].[sp_get_admin_email] @address OUTPUT
_____________
Code for TallyGenerator
March 9, 2006 at 4:04 pm
What exactly you did not understand in BOL article "UPDATETEXT"?
_____________
Code for TallyGenerator
March 9, 2006 at 1:36 pm
IF NOT EXISTS (select procedure entry here)
EXEC('CREATE PROCEDURE ....')
_____________
Code for TallyGenerator
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.
_____________
Code for TallyGenerator
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?
![]()
_____________
Code for TallyGenerator
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?
_____________
Code for TallyGenerator
March 8, 2006 at 2:58 pm
What about indexes on joined fields?
Look on Execution Plan for this query.
_____________
Code for TallyGenerator
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))
_____________
Code for TallyGenerator
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...
_____________
Code for TallyGenerator
March 6, 2006 at 5:50 pm
Viewing 15 posts - 5,521 through 5,535 (of 6,036 total)