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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Old Forums
 CLOSED - General SQL Server
 SQL Question
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

seabaz2000
Starting Member

3 Posts

Posted - 03/05/2006 :  09:01:15  Show Profile
hi
I was just wondering if its possible to store more than one field of data in a variable. For example suppose you have a table as follows:
Table1
name password Username
John komodo johno
Jay cazouys jayzy
peep sooky seaba


If i declare a variable @x and try to store all the passwords in that variable, all that happens is I get one item in the variable.
ie


SELECT @x = password FROM Table1.....

Is there anyway around this, i.e. can u use arrays etc..
Regards

khtan
In (Som, Ni, Yak)

Singapore
17689 Posts

Posted - 03/05/2006 :  09:10:52  Show Profile
CSV ? see here http://sqljunkies.com/WebLog/amachanic/archive/2004/11/10/5065.aspx

----------------------------------
'KH'


Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000