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.
| Author |
Topic |
|
rnbguy
Constraint Violating Yak Guru
293 Posts |
Posted - 2007-02-13 : 21:01:46
|
| I think this is possible without using a cursor, i know how to do this with a cursor but would like the set based approach.I would like to copy a column frrom a table to a variable. so for exampleName----MikeLarywould go into variable @namesso:print @nameswould bring up Mike Lary |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2007-02-13 : 21:29:03
|
| http://www.sqlteam.com/item.asp?ItemID=11021Tara Kizer |
 |
|
|
rnbguy
Constraint Violating Yak Guru
293 Posts |
Posted - 2007-02-13 : 22:39:16
|
| i dont think that link has what im trying to do is go from table to variable... not create or insert into a table |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
|
|
rnbguy
Constraint Violating Yak Guru
293 Posts |
Posted - 2007-02-13 : 22:45:00
|
| perfect... thanx |
 |
|
|
rnbguy
Constraint Violating Yak Guru
293 Posts |
Posted - 2007-02-13 : 23:24:38
|
| i dont know if i should start a new post for this but just quickly how would i use the replace function to replace single quotes with double quotes, i know how to use replace just not in the sense of quotes |
 |
|
|
rnbguy
Constraint Violating Yak Guru
293 Posts |
Posted - 2007-02-13 : 23:48:54
|
| SET QUOTED_IDENTIFIER OFFGOworked |
 |
|
|
|
|
|