Viewing 13 posts - 1 through 13 (of 13 total)
Load data into temp table without join to tblcommunicationsSent. After join temp table with tblcommunicationsSent
July 18, 2007 at 9:51 am
May be data in table tblcommunicationsSent is exclusive locked? Is big table tblcommunicationsSent?
July 18, 2007 at 9:13 am
declare @Temp table (
Data nvarchar(14)
)
insert into @Temp
select '00000000000000'
insert into @Temp
select '000000'
insert into @Temp
select '00'
insert into @Temp
select '00000000000002'
insert into @Temp
select '00000000000100'
insert into @Temp
select '00000000002100'
insert...
July 17, 2007 at 6:49 am
I am not sure
declare @Temp table (
Data nvarchar(14)
)
insert into @Temp
select '00000000000000'
insert into @Temp
select '00000000000002'
insert into @Temp
select '00000000000100'
insert into @Temp
select '00000000002100'
insert into @Temp
select '000000000A4504'
select
replace(ltrim(replace(data,'0',' ')),' ','0')
from @Temp
where data...
July 17, 2007 at 6:11 am
Sorry. The null have column ShiftClosedBy
select s.ShiftID,dbo.ShiftStatus(s.ShiftStatus) as ShiftStatus,st.ShiftTypeName,
s.ShiftOpenDate,s.ShiftCloseDate, su1.FullName as OpenBY,
(select FullName from SystemUsers where SystemUserID = s.ShiftClosedBy ) as CloseBy
--,su.FullName as OpenBY
from ShiftsInformation s
left outer JOIN...
July 17, 2007 at 5:49 am
May be following
select s.ShiftID,dbo.ShiftStatus(s.ShiftStatus) as ShiftStatus,st.ShiftTypeName,
s.ShiftOpenDate,s.ShiftCloseDate, su1.FullName as CloseBy,
(select FullName from SystemUsers where SystemUserID = s.ShiftOpenedBy) as OpenBY
--,su.FullName as OpenBY
from ShiftsInformation s
left outer JOIN SystemUsers su1 on s.ShiftClosedBy =...
July 17, 2007 at 5:29 am
Malcolm I am sorry. I bad understand English and also writting. I want to see scripts of creation tables which are using in both procedures.
July 17, 2007 at 5:03 am
Also without isnumeric() function
declare @Temp table (
Data nvarchar(14)
)
insert into @Temp
select '00000000000002'
insert into @Temp
select '00000000000100'
insert into @Temp
select '00000000002100'
insert into @Temp
select '000000000A4504'
select
replace(ltrim(replace(data,'0',' ')),' ','0')
from @Temp
July 17, 2007 at 4:49 am
>I have tried my code on another table and it works fine
Can you shown scripts both tables?
July 17, 2007 at 2:11 am
IF EmployeeID is primary key then use only primary key in where
UPDATE Employees
SET
EmployeeNumber = @EmployeeNumber,
FirstName = @FirstName,
LastName = @LastName,
Title = @Title,
EmailName = @EmailName,
Extension = @Extension,
Address = @Address,
City = @City,
StateOrProvince =...
July 17, 2007 at 1:55 am
declare @Temp table (
Data nvarchar(14)
)
insert into @Temp
select '00000000000002'
insert into @Temp
select '00000000000100'
insert into @Temp
select '00000000002100'
insert into @Temp
select '000000000A4504'
select
case
when isnumeric(data) = 1 then cast(cast(data as bigint) as nvarchar(14))
else replace(ltrim(replace(data,'0','...
July 16, 2007 at 10:39 am
I am not sure
update telematchout
set telephone = isnull(areacodet,'') + phonet
when Telephone is null
and PHONET is not null
July 16, 2007 at 9:50 am
You have problem in 11 and 12 rows. Can you show this rows?
July 16, 2007 at 8:58 am
Viewing 13 posts - 1 through 13 (of 13 total)