473,397 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Send Dictionary Object to Stored procedure?

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
Jul 19 '05 #1
5 5029
I think you'd have to pull the values of out your dictionary object and pass
them.

Ray at home

"Shahid Juma" <sh*****************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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

Jul 19 '05 #2
How about arrays? Can arrays be passed? The dictionary object has functions
that return the values as arrays.

Shahid

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:%2****************@TK2MSFTNGP10.phx.gbl...
I think you'd have to pull the values of out your dictionary object and pass them.

Ray at home

"Shahid Juma" <sh*****************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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


Jul 19 '05 #3
Nope. You can join an array and then split it again in your stored
procedure, example:
http://vyaskn.tripod.com/passing_arr...procedures.htm

Ray at home

"Shahid Juma" <sh*****************@hotmail.com> wrote in message
news:eb*************@tk2msftngp13.phx.gbl...
How about arrays? Can arrays be passed? The dictionary object has
functions
that return the values as arrays.

Shahid

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:%2****************@TK2MSFTNGP10.phx.gbl...
I think you'd have to pull the values of out your dictionary object and

pass
them.

Ray at home

"Shahid Juma" <sh*****************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
> 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
>
>



Jul 19 '05 #4
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

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Shahid Juma" <sh*****************@hotmail.com> wrote in message
news:#c**************@TK2MSFTNGP11.phx.gbl...
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

Jul 19 '05 #5
Shahid Juma wrote:
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
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ivan divandelen | last post by:
Hi, How can i pass a parameter SQL stored Procedure from ASP pages
4
by: Tom | last post by:
I want to open a recordset object on an .asp page. When I open the recordset I would like to use a stored procedure that expects a parameter to be passed for the stored procedure. I will then use...
1
by: aish | last post by:
I want to send email using sql stored procedure.my code is work fine in my local sqlserver account. when I use my online sql server it display this error. EXECUTE permission denied on object...
11
by: Tim Smallwood | last post by:
Hi, I have an Access project that I use to allow a client to hit an SQL server at my host. This project has several forms that are used to udpate tables, etc, but I'd also like to be able to...
11
by: Leon | last post by:
I have six textbox controls on my webform that allows the user to enter any numbers from 1 to 25 in any order. However, I would like to sort those numbers from least to greatest before sending them...
3
by: Patrick | last post by:
Hi Can anyone tell me how can I send email through stored procedure in sql server ? I want to send attachment with this email too. TIA
15
by: JIM.H. | last post by:
Hello, Can I send a dataset as a parameter into stored procedure and import data to a table in the stored procedure? Thanks, Jim.
2
by: shahnawaz shaikh | last post by:
hi friends i want to send email thoruth stored procedure or i want to give functionality like alert which is send email automaticaly from database. just like a news or any ad email weekly or...
1
by: GVDC | last post by:
Example server-side JavaScript Web script, Dictionary class //Dictionary class, hash array unlimited length configurable speed/efficiency // printf("<html><body>"); printf("<b>Creating...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.