473,398 Members | 2,393 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,398 software developers and data experts.

Passing a set to SQL Server

Hi all,

Is it possible to pass a DataTable, XML or some other representation of a
set of data to a SQL Server stored procedure? I have some vague
recollection of that being possible but am unsure and can't seem to find
much that tells me either way.

TIA,

John
Jul 21 '05 #1
2 1190
Not sure what you want to do. But take a look at Table-valued functions in
SQL Server BOL.

Greg

"John Spiegel" <js******@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:Oz****************@TK2MSFTNGP09.phx.gbl...
Hi all,

Is it possible to pass a DataTable, XML or some other representation of a
set of data to a SQL Server stored procedure? I have some vague
recollection of that being possible but am unsure and can't seem to find
much that tells me either way.

TIA,

John

Jul 21 '05 #2
Hey Greg,

I'm trying to figure out if it's possible to call a stored procedure from a
..NET app and give that procecdure a representation of a table that it could
then use as a cursor or temporary table, perhaps. For example, I have an
app where changes can be made to data that came from a parent table. Based
on the changes, I'd like to send a set of key values to a sproc that
performs the necessary updates to child tables. Since the application
itself doesn't need any of the child data records, it would be nice to not
have to pull them through a data adapter just to alter them and send back.

Thanks,

John

"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in message
news:ON****************@TK2MSFTNGP10.phx.gbl...
Not sure what you want to do. But take a look at Table-valued functions in SQL Server BOL.

Greg

"John Spiegel" <js******@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:Oz****************@TK2MSFTNGP09.phx.gbl...
Hi all,

Is it possible to pass a DataTable, XML or some other representation of a set of data to a SQL Server stored procedure? I have some vague
recollection of that being possible but am unsure and can't seem to find
much that tells me either way.

TIA,

John


Jul 21 '05 #3

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

Similar topics

4
by: Jason Us | last post by:
Does anyone have experience with passing variables from an ASP page to a JSP page. The way it currently works in passing the SSN in the URL. This cannot be good. I thought that storing a...
5
by: Jack | last post by:
Hi, I need to pass multple variables in a link in order to go to a asp page with the two varables. The following are the values of the variables using response.write: <%'Response.Write Mypage...
6
by: Mark Anderson | last post by:
I have code to develop result page links (like a search engine) for some results being passed from a database where I've no server-sdide acces - thus JS. The code is below and works fine except...
10
by: vbMark | last post by:
Hello, I am doing this: window.location="page2.php?subj="+subj+"&body="+body; to send information to another page. However, I don't want that second page to show up or display in any way....
11
by: comp.lang.php | last post by:
On one of my sites, I have a TCL CGI script that has a security hole in spite of it having effective server-side validation (the fact that it's CGI IS its security hole). The front end is a PHP...
7
by: Harolds | last post by:
The code below worked in VS 2003 & dotnet framework 1.1 but now in VS 2005 the pmID is evaluated to "" instead of what the value is set to: .... xmlItems.Document = pmXML // Add the pmID...
6
by: Catherine Jones | last post by:
Hi all, we need urgent help in a matter. We are trying to pass a COM object from the client to server and are facing some problems in the same. We've our client in C# as well as the Server...
7
by: Ken Allen | last post by:
I have a .net client/server application using remoting, and I cannot get the custom exception class to pass from the server to the client. The custom exception is derived from ApplicationException...
9
by: laurenq uantrell | last post by:
I've gotten sort of fed up with dealing with regional date settings on the client side and am considering the following scheme - just wondering if anyone has a negative view of it or not: ...
0
by: kencana | last post by:
hi All, I got problem in passing data (more than one) from soap client to the soap server. but if i only passing one data at a time, it works successfully.. The following is the error message i...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.