Thanks for the advice.
How then do you recommend I get a primary+secondary table(s) insert or
update completed under transaction control by SQL Server?
Patrick.
"Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)>
wrote in message news:***@TK2MSFTNGP02.phx.gbl...
With ADO.NET, it's possible to stream directly into memory but with ADO, I
don't know. In your case, using a single SP to do everything might be
tempting but I would advise you against doing so; because it will be a lot
of trouble to streaming that and after that, in the SP, to unstream it.
Streaming into XML might be a good idea when you have to transport your data
using an intermediary format, for example for emailing it or for going over
the WAN but when you have a direct connection to the SQL-Server, I don't see
any point of doing this.
In your case, using the regular features of ADO is quite probably your best
bet.
--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)
"Patrick Jackman" <***@wimse.com> wrote in message news:***@TK2MSFTNGP05.phx.gbl...
Thanks Sylvain.
I'm working on a plan to upsize and was hoping to get my primary/secondary
table inserts and updates into a single stored procedure where the
secondary table rows would come in through this new Table parameter type.
Perhaps I could get secondary table rows from my temp tables in Access to
a SQL Server stored procedure string parameter via XML. Is it possible to
get
the contents of an ADO recordset returned as XML without first persisting it
to file?
Patrick.
"Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)>
wrote in message news:u5v8v%***@TK2MSFTNGP02.phx.gbl...
Yes and no. ADO and ADO.NET 3.5 are two very different things with
practically nothing in common between them; excerpt for the first part of
their names. With VBA code and COM/DCOM/ActiveX, you are using ADO; not
ADO.NET, so the answer will be no.
However, you can merge the two worlds of Access and the .NET Framework by
using the .NET Interoperability and VSTO (2008?) ; so the answer would be
yes in this second case. But, of course, probably that it would be a bad
idea to enter the complexity of using the .NET Framework with Access only to
make use of the table parameter type.
--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)
"Patrick Jackman" <***@wimse.com> wrote in message news:***@TK2MSFTNGP02.phx.gbl...
Will it be possible to use ADO 3.5 from Access 2002 to make use of the new
Table parameter type in SQL Server 2008?
Patrick
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Patrick Jackman
Vancouver, BC
604-874-5774