Viewing 15 posts - 1 through 15 (of 74 total)
Yes.. But First name or MiddleNamee or Lastname would differ... I simulated my actual table into this one.. Thanks brown.. i will try to create clustered index on empno column....
Thanks...
September 13, 2012 at 10:21 am
Thanks to All...
create table #emp
(
empnoint,
firstname varchar(128),
middlename varchar(128),
lastnamevarchar(128)
)
Inside a Sp i m creating this temp table. is it possible to create a clustered index on the column that has duplication? .....
September 13, 2012 at 10:06 am
Thanks Brown!!!.. but i cant make column empno as autoincreament as per requirement....but i can additionally add one more column and make it auto increment. will that avoid table scan?.....
September 13, 2012 at 9:51 am
but i am using Express edition....i thk there wont be sql agent in it
March 31, 2011 at 3:34 am
Crystal Clear!!!!!!... Thanks a lot
March 29, 2011 at 1:42 am
thanks jeff.... but some other transaction may use this table..so i cant use truncate cmd...
March 14, 2011 at 1:00 pm
INSERT INTO SA_HR_LINES(PUB_ID,PD_NAME,
FROM_DATE,TO_DATE,
QT_NUM,STRD_YEAR,
ADVANCE_PID,STATUS,
TRN,SESSION_ID,
CREATED_BY,CREATED_DATE,
UPDATED_BY,UPDATED_DATE)
SELECT @PVC_PUB_ID,
ATTRIBUTE2,
CONVERT(VARCHAR(11), LTRIM(RTRIM(ATTRIBUTE3)), 106),
CONVERT(VARCHAR(11), LTRIM(RTRIM(ATTRIBUTE4)), 106),
ATTRIBUTE5,ATTRIBUTE6,
ATTRIBUTE7,1,
TRN,SESSION_ID,
@PVC_LOGIN_USER,GETDATE(),
@PVC_LOGIN_USER,GETDATE()
FROM TAB_TEMP WHERE ACTION_FLAG='I' AND
SESSION_ID=@PBI_SESSION_ID AND TRN=@PBI_TRN
UPDATE pub_lines SET
PUB_ID= tempTable.ATTRIBUTE1,
PD_NAME ...
March 14, 2011 at 10:37 am
Hello Jeff... i implemented it in my coding which has more columns..it works fine.. is there any other way to make it simple?:-)
March 9, 2011 at 10:39 pm
Thanks Derby... but i cant use SP.. just CTE or select - query kind of....thats the problem... 🙁
March 9, 2011 at 6:16 am
create table #sample(sno int identity,student_no int, head int,task varchar(50))
insert into #sample (student_no,head,task) values(1,10,'tactical')
insert into #sample (student_no,head,task) values(10,20,'basket')
insert into #sample (student_no,head,task) values(20,40,'aerospace')
insert into #sample (student_no,head,task) values(40,10,'robot')
insert into #sample (student_no,head,task) values(10,40,'tackle')
insert into...
March 9, 2011 at 4:59 am
Grant Fritchey (3/7/2011)
March 8, 2011 at 12:37 am
Hi Lowel,
We are making all business logic of the project into SP format.. so all logic is written as a SP.. having following skelton...
IF EXISTS (SELECT * FROM sysobjects
...
March 4, 2011 at 11:57 pm
i am not fond of copy and paste... just want to a better way to achieve it... since i m a beginner i dont knw how efficient to...
March 4, 2011 at 8:49 am
Viewing 15 posts - 1 through 15 (of 74 total)