Send Dictionary Object to Stored procedure?

S

Shahid Juma

Hi,

I was wondering before I proceed much further whether it is possible to pass
in the Dictionary object (Scripting.Dictionary) from ASP to a stored
procedure in SQL Server. Any sample sites or simple code examples would be
really great.

Thanks,
Shahid
 
R

Ray Costanzo [MVP]

I think you'd have to pull the values of out your dictionary object and pass
them.

Ray at home
 
S

Shahid Juma

How about arrays? Can arrays be passed? The dictionary object has functions
that return the values as arrays.

Shahid
 
A

Aaron [SQL Server MVP]

SQL Server does not understand what dictionary objects or arrays are. You
will have to flatten them into strings in order to pass them to a stored
procedure. One way is through comma-delimited lists:
http://www.aspfaq.com/2248
 
B

Bob Barrows [MVP]

Shahid said:
Hi,

I was wondering before I proceed much further whether it is possible
to pass in the Dictionary object (Scripting.Dictionary) from ASP to a
stored procedure in SQL Server. Any sample sites or simple code
examples would be really great.

Thanks,
Shahid
In addition to Aaron and Ray's suggestions, Erland has several other options
in his article about Arrays and Lists here:

http://www.sommarskog.se/index.html

Bob Barrows
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top