connect othe userthrough procedure from one user ,pass value to procedure

  • How i connect to othe user inside a procedure;

    how i pass a table name to procedure at the time of execute the procedure

  • not sure what you are saying but i think this is what you need:

    SET ANSI_NULLS ON

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    create procedure tsst

    @tbl_name nvarchar(50)

    AS

    BEGIN

    insert into @tbl_name

    select * from tbl_2

    END

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply