Please start any new threads on our new site at 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
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  

Starting Member

3 Posts

Posted - 03/05/2006 :  09:01:15  Show Profile
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:
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.

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

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

In (Som, Ni, Yak)

17689 Posts

Posted - 03/05/2006 :  09:10:52  Show Profile
CSV ? see here


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