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
 General SQL Server Forums
 New to SQL Server Programming
 Amazing !!! Problem - SQL Insert- SQLServer 2005

Author  Topic 

paramu
Posting Yak Master

151 Posts

Posted - 2009-06-07 : 07:16:56
"insert into itemmst (itm_description) values (&itm_description)"

Problem raises from the values of description....is if the value

itm_description=BULB .........working nice....But if the
itm_description=COUPLING 54"x64" is not insering...because of this " and '

Better ideas are always welcome.!!

Paramu @ PARANTHAMAN

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-06-07 : 08:52:46
Maybe you can use QUOTENAME().
See BOL.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

LoztInSpace
Aged Yak Warrior

940 Posts

Posted - 2009-06-07 : 09:31:55
Do it properly using parameters and not creating SQL strings.
Go to Top of Page
   

- Advertisement -