Welcome to Sign in | Help
in Search

database schema

Last post 11-10-2006, 10:18 AM by xmldeveloper. 3 replies.
Sort Posts: Previous Next
  •  11-09-2006, 3:43 PM 822

    database schema

    Creare schemelor aferente unei bd se poate crea in sql express 2005. Si daca da e posiibla crearea acestora si cu sqlmanagemnet sau numai din tsql cu create schema?
    Secolul XXI ori va fi religios ori nu va fi deloc
    Filed under:
  •  11-09-2006, 4:52 PM 824 in reply to 822

    Re: database schema

    Se poate:

     


    Cristian Andrei Lefter, SQL Server MVP
    MCT, MCSA, MCDBA, MCAD, MCSD .NET,
    MCTS, MCITP - Database Administrator SQL Server 2005
    http://sqlserver.ro
  •  11-10-2006, 8:04 AM 834 in reply to 824

    Re: database schema

    merci ,era si foarte greu.

    As avea o alta intrebare exista vreo posbilitate de a modifca schema unui obiect si visual si scripting?

    Multumesc


    Secolul XXI ori va fi religios ori nu va fi deloc
  •  11-10-2006, 10:18 AM 836 in reply to 834

    Re: database schema

    Se poate!

    Din T-SQL:

    USE tempdb;

    GO

    CREATE SCHEMA S1;

    GO

    CREATE SCHEMA S2;

    GO

    CREATE TABLE S1.T(i INT);

    GO

    -- Move T from S1 to S2

    ALTER SCHEMA S2 TRANSFER S1.T;

    GO

    SELECT * FROM S2.T;

    GO

     

    -- Clean-up

    DROP TABLE S2.T;

    DROP SCHEMA S1;

    DROP SCHEMA S2;

    Visual - right click in Object Explorer pe tabel, Design:


    Cristian Andrei Lefter, SQL Server MVP
    MCT, MCSA, MCDBA, MCAD, MCSD .NET,
    MCTS, MCITP - Database Administrator SQL Server 2005
    http://sqlserver.ro
View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems