About 1,690,000 results
Open links in new tab
  1. TSQL: Create a view that accesses multiple databases

    Jan 26, 2010 · Yes you can - the t-sql syntax is the same as within any other cross database call (within a stored procedure for example). To reference your tables in the second database you …

  2. How do I create a view using existing tables from another

    Mar 24, 2022 · Hi, The solution is to use EXTERNAL table let's assume that you want to select data from Tbl01 in DB01 from DB02, then (1) Connect DB02 (2) Create master key if does not …

  3. SQL CREATE VIEW, REPLACE VIEW, DROP VIEW Statements - W3Schools

    You can add SQL statements and functions to a view and present the data as if the data were coming from one single table. A view is created with the CREATE VIEW statement.

  4. SQL creating view with JOIN - w3resource

    Apr 25, 2024 · In this page we are going to discuss, how two or more tables can be involved and join themselves to make a view in CREATE VIEW statement.

  5. Creating SQL VIEWs Step By Step - SQL Server Tips

    Apr 20, 2022 · Problem Views can be very useful to simplify queries, simplify reuse and to restrict access to certain columns in a table or tables. In this tutorial we look at how to create views in …

  6. sql server - Create a View from Multiple Databases - Database ...

    In SQL Server 2016 and above, you could specify the table name, column name (s), and a list of databases as a simple string and build your view dynamically: USE H; GO DROP VIEW IF …

  7. sql - Create Table from View - Stack Overflow

    Oct 8, 2016 · In SQL SERVER you do it like this: SELECT * INTO A FROM dbo.myView This will create a new table A with the contents of your view. See here for more info.

  8. create view using two different database - SQLServerCentral

    Jan 13, 2012 · Hi, you can use the full name of the tables of the different databases in your view select statement. select * from [database].[dbo].[tablename]

  9. Create view in a different database with dynamic SQL

    As part of a larger project I'm trying to create a new view on each database in a SQL Server instance. I've created a stored procedure that among other things is looping through the …

  10. CREATE VIEW SQL Server Examples with T-SQL and SSMS

    Mar 7, 2023 · Once you have created a view, you can use it like any other table in SQL. You can query the view using SELECT statements, join it with other tables, or use it as the source of …

  11. Some results have been removed
Refresh