• I found this out:

    'INSERT INTO ##all_logins SELECT name,'''+ @server_name +''' FROM ' + @sys_table )