Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Saving ">" char in a varchar field

Author  Topic 

Bheenick
Starting Member

2 Posts

Posted - 2011-03-31 : 01:47:42
Hi everyone,

Am having an issue saving this particular character(">") in SQL Server 2005 in a varchar field.

Any hint on how to proceed to save the character as it is instead of ">" in the database!

Thanx in advance,
Cheers

Impossible is nothing...

raghuveer125
Constraint Violating Yak Guru

285 Posts

Posted - 2011-03-31 : 02:22:36
What is your problem exactly
See this is working


declare @t table (id varchar(6))
insert into @t values('">"')
insert into @t values('>')
insert into @t values('(">")')
select * from @t

Or

--drop table #t
declare #t table (id varchar(6))
insert into #t values('">"')
insert into #t values('>')
insert into #t values('(">")')
select * from #t


If you are not able to store that character then see you have enough space for that column to store values.

Raghu' S
Go to Top of Page
   

- Advertisement -