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 2008 Forums
 Transact-SQL (2008)
 Recordset Object in a Store Procedure

Author  Topic 

riadeasleh
Starting Member

8 Posts

Posted - 2011-12-28 : 10:27:05
Does SQL Server 2008 has any object similar to the Recordset Object in vb.net

Besides the Cursor object in Sql, is there an object where i can reference the data by index or column name


Sincerely yours

Riade

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-12-28 : 11:34:33
you need to see this for an approximate equivalent of arrays

http://www.sommarskog.se/arrays-in-sql.html

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

riadeasleh
Starting Member

8 Posts

Posted - 2011-12-28 : 12:14:09
Still No luck

Thanks
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-12-28 : 12:15:38
what does that mean?
can you explain what else you're expecting?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

riadeasleh
Starting Member

8 Posts

Posted - 2011-12-28 : 12:35:19
Here is what I am expecting in SQL 2008 Store procedure

let' say, that I have table named table1 that contains 100 columns and 500 rows

I want to dump the data of table1 into @MyRecodeset

where I can do the following

declare @Value varchar(50)
declare @col int
delcare @row int

set @col = 10
set @row = 5
set @Value = @MyRecodeset (@col,@row)

therefore the @Value should be equal to whatever data in the 10 column at row 5.

Thanks


Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2011-12-28 : 12:47:37
Let's say I have a table with 100 columns...you're fired

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/


Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-12-28 : 12:53:07
then what you're looking at is table variable or table valued function

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-12-28 : 12:53:40
then what you're looking at is table variable or table valued function

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

DonAtWork
Master Smack Fu Yak Hacker

2167 Posts

Posted - 2011-12-28 : 13:37:10
Sorry, i agree with Brett.

http://weblogs.sqlteam.com/jeffs/archive/2008/05/13/question-needed-not-answer.aspx
How to ask: http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

For ultra basic questions, follow these links.
http://www.sql-tutorial.net/
http://www.firstsql.com/tutor.htm
http://www.w3schools.com/sql/default.asp
Go to Top of Page

Sachin.Nand

2937 Posts

Posted - 2011-12-28 : 13:43:26
quote:
Originally posted by X002548

Let's say I have a table with 100 columns...you're fired

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/






Then in that sense designers of the sharepoint database at Microsoft also should be fired...

http://msdn.microsoft.com/en-us/library/dd585240(v=office.11).aspx

lol...

PBUH

Go to Top of Page
   

- Advertisement -