How to share data between two session not using temp table

Sudip Bhatt 2,276 Reputation points
2020-11-08T19:15:51.907+00:00

Please tell me how two session can share data between them without using temporary table, please discuss all possible ways where one session can store data and other session can read data.

thanks

Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,620 questions
{count} votes

Accepted answer
  1. EchoLiu-MSFT 14,581 Reputation points
    2020-11-09T08:27:43.707+00:00

    Hi @Sudip Bhatt

    Could you describe the problem more clearly? In addition, if the temporary table can work, then why don't we choose it?

    If you have any question, please feel free to let me know.
    If the response is helpful, please click "Accept Answer" and upvote it.

    Regards
    Echo


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    Hot issues October--https://learn.microsoft.com/en-us/answers/questions/142427/users-always-get-connection-timeout-problem-when-u.html


1 additional answer

Sort by: Most helpful
  1. Erland Sommarskog 109.8K Reputation points MVP
    2020-11-08T19:51:14.483+00:00

    If you mean two sessions, that would have to be permanent tables, nothing else. (And temporary tables would not cut it).

    It could help if you could clarify your scenario, so that we can help you better.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.