Forum Discussion

YLM1603's avatar
YLM1603
New Member
1 year ago
Solved

How to convert a SQL view into a table?

Can I convert a SQL view into a table to perform the necessary transformations without having to update the data?

  • Anonymous's avatar
    Anonymous
    1 year ago

    In SQL Server using TSQL :

     

    select *
    into <new_table>
    from <database>.<schema>.<view_name>

6 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    In SQL Server using TSQL :

     

    select *
    into <new_table>
    from <database>.<schema>.<view_name>

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi YLM1603 

    Thank you for reaching out to the Microsoft Fabric community forum. Also thank you Anonymous  and pankajnamekar25  for your inputs.

     

    Also, could you confirm which SQL platform you're using (e.g., SQL Server, PostgreSQL, MySQL)? The syntax for converting a view into a table differs slightly depending on the system.

     

    Thank you.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi YLM1603 ,

     

    May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

     

    Thank you.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi @YLM1603 ,

     

    May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

     

    Thank you.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi @YLM1603 ,

     

    May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

     

    Thank you.