Forum Replies Created

Viewing 7 posts - 16 through 23 (of 23 total)

  • RE: Primary and Foriegn Keys on Temp Tables

    http://www.sqlservercentral.com/questions/Foreign+Keys+(FK)/144670/

    CREATE TABLE #TableTest1 (

    ID INT NOT NULL,

    CONSTRAINT PK_ID1 PRIMARY KEY(ID)

    );

    CREATE TABLE TableTest2 (

    ID INT NOT NULL

    CONSTRAINT FK_TableTest1_ID FOREIGN KEY (ID) REFERENCES #TableTest1(ID)

    );

    INSERT INTO #TableTest1 (ID)

    VALUES

    (1);

    INSERT INTO TableTest2 (ID)

    VALUES

    (2);

    select * from...

  • RE: Automatic update of outdated statistics

    modification_counter

    bigint

    Total number of modifications for the leading statistics column (the column on which the histogram is built) since the last time statistics were updated.

  • RE: Table Variables

    Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64) Apr 2 2010 15:48:46 Copyright (c) Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.0...

  • RE: SQL Server Browser & DAC

    The DAC port is assigned dynamically by SQL Server during startup. When connecting to the default instance, the DAC avoids using a SQL Server Resolution Protocol (SSRP) request to the...

  • RE: TRUNCATE TABLE and ROLLBACK TRAN

    CREATE TABLE t(id INT IDENTITY, i INT)

    BEGIN TRAN

    INSERT INTO t VALUES (4),(2),(3)

    SELECT * FROM t

    ROLLBACK TRAN

    SELECT * FROM t

    INSERT INTO t VALUES (4),(2),(3)

    SELECT * FROM t

    where is rollback?

  • RE: Summing

    DECLARE @t TABLE (id INT)

    SELECT SUM(1) AS sum_, COUNT(*) AS cnt_ FROM @t

    sum_=NULL

    cnt_=0

  • RE: Transparent database encryption

    ms-help://MS.SQLCC.v10/MS.SQLSVR.v10.en/s10de_4deptrbl/html/c75d0d4b-4008-4e71-9a9d-cee2a566bd3b.htm

    The pages in an encrypted database are encrypted before they are written to disk and decrypted when read into memory

Viewing 7 posts - 16 through 23 (of 23 total)