I
I
Ivan2019-04-11 15:04:47
Stored procedures
Ivan, 2019-04-11 15:04:47

How to write data to two tables from one procedure?

Good afternoon.
I have a procedure that returns two different results

create proc Myproc
as
select top 10 * from clients
select top 10 * from Firms

Is there some way I can write both streams to pre-prepared temporary tables, or can I only do it inside the procedure?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2019-04-11
@tsklab

You can on the client. NextRecordset Method (ADO) .
How to get 2 tables in a stored procedure in SQL...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question