Viewing 15 posts - 3,046 through 3,060 (of 5,103 total)
July 26, 2005 at 2:09 pm
the syntax to tell if a column was updated is:
IF update(Column_Name)
but I don't understand what are you trying to accomplish?
July 26, 2005 at 2:05 pm
Sorry try this!
Select number
from MyTable
order by
ISnull(cast(parsename(Number + replicate('.0',3 - len(Number) + len(replace(number,'.',''))),4) as int),0)
,ISnull(cast(parsename(Number + replicate('.0',3 - len(Number) + len(replace(number,'.',''))),3) as int),0)
,ISnull(cast(parsename(Number + replicate('.0',3 - len(Number) +...
July 26, 2005 at 1:58 pm
CREATE PROCEDURE up_GetAccountNumber
@TypeFlag as varchar(3),
@CostCentre as varchar(5),
@AccountNumber as int OUTPUT AS
begin
SET NOCOUNT ON
UPDATE tblnumberingsystem SET @AccountNumber = nmb_latest= nmb_latest +1 WHERE nmb_type=@AccountType AND nmb_costcentre=@CostCentre
end
July 26, 2005 at 1:36 pm
if you have four dots('.') (IP addresses)
then
Select *
from Table
order by
cast(parsename(ColX,4) as int)
,cast(parsename(ColX,3) as int)
,cast(parsename(ColX,2) as int)
,cast(parsename(ColX,1) as int)
![]()
July 26, 2005 at 1:04 pm
I am in shock!!! These are unbelievable close answers ![]()
July 26, 2005 at 10:32 am
Not sure why you want to do that but: ![]()
declare @sql varchar (1000)
declare @tablename varchar (50)
set @tablename = 'a'
SELECT @sql = Replacte(strSQL,'@tablename',@tablename 
July 26, 2005 at 10:30 am
Let me warn you that this sort of code is not good when multiple rows are affected !
July 26, 2005 at 10:22 am
Not sure if after_total is a running sum or not but here is my first guess:
Update P
Set [after_sum]= A.Tot
From
product P
join
( select id, int_Product,...
July 25, 2005 at 3:50 pm
Apparently we'll be crossing Filghts! I am going to London 2 weeks before I go to PASS ![]()
July 25, 2005 at 3:39 pm
I have tested his many many times for skeptic developers that needed proof all the time and I can assure you that there are no performance benefits whatsoever in searching!! I/O...
July 25, 2005 at 3:36 pm
The ones that I've tried lately are comming with only one almond ![]()
July 25, 2005 at 3:03 pm
Viewing 15 posts - 3,046 through 3,060 (of 5,103 total)