Viewing 15 posts - 16 through 30 (of 74 total)
SQLkiwi (3/4/2011)
SELECT CONVERT(VARCHAR(12), Emp.empno) + ' | ' +
STUFF(CA1.marks.value('./text()[1]', 'varchar(max)'), 1, 1,...
March 4, 2011 at 5:17 am
Hai...
if i execute a procedure as my code starts as follows...
PROCEDURE PROC_SY_ADD_INSERT_FUNCTION
GO
IF EXISTS (SELECT * FROM sysobjects
WHERE id = OBJECT_ID('PROC_INS_FUNCTION')
...
February 28, 2011 at 10:28 am
it is solved...:-)
it's the problem of having different collation in column level. i just dropped the table(after taking backup of data). created again.. now it works properly..
Thanks a lot...
January 22, 2011 at 4:04 am
/****** Object: Table [dbo].[HR_COMPANY_HEADER] Script Date: 01/22/2011 12:59:50 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[HR_COMPANY_HEADER](
[COMPANY_ID] [int] IDENTITY(1,1) NOT NULL,
[TRADE_NAME] [varchar](50) NULL,
[COMMERCIAL_ACTIVITY] [varchar](50) NULL,
[GENERATE_RESERVATION_DOCUMENT] [char](1)...
January 22, 2011 at 1:11 am
Hi,,
Thanks a lot..
As u said i followed.. but i am facing new problem..
select case com_owner.owner_type
when 'Company' then com_header.trade_name
when 'Person' then per.first_name end
from hr_company_owner com_owner
left...
January 21, 2011 at 7:32 am
Exactly my requirement is more or less same like what tfifield mentioned.
And Jeff. i cant use AUTO INCREMENT for that column as it is requirement.
So i go with...
January 18, 2011 at 4:03 am
Can u provide sample table relevant to ur problem?.. so that it wil be easy to help out
January 18, 2011 at 3:51 am
Hi Grant.
yes. i am doing this for generating unique number. Thanks for ur valuable info.
January 9, 2011 at 9:16 am
Hi..
According to me following query is best possible way to insert mulitple record in a table....
insert into table2(col1,col2) select col1,col2 from table1 where session_id=1
December 20, 2010 at 1:32 am
Viewing 15 posts - 16 through 30 (of 74 total)