Forum Replies Created

Viewing 15 posts - 13,291 through 13,305 (of 49,552 total)

  • RE: Checking for index in another database

    IF EXISTS (SELECT 1 FROM OtherDatabase.sys.tables t inner join OtherDatabase.sys.indexes i on t.object_id = i.object_id WHERE i.name = 'IndexOfInterest' AND t.name = 'TableOfInterest')

    PRINT 'Index Exists';

  • RE: Rebuild or DBREINDEX

    SQL Show (4/30/2013)


    mah_j (4/28/2013)


    4.What would happen if it is canceled during the rebuild or dbreindex ?

    Gail, dbreindex or alter reindex is not single unit of transaction? is it?

    Rebuilding an...

  • RE: Shrinking the log file does not reduce size

    Did you read the article I referenced? Specifically the section on replication and if necessary the kb article it links to?

  • RE: Rebuild or DBREINDEX

    adb2303 (4/30/2013)


    GilaMonster (4/28/2013)


    1) DBCC DBREINDEX is deprecated, is included only for backward compatibility with SQL Server 2000 and should not be used any longer

    2) Up to you. Depends on your...

  • RE: Rebuild or DBREINDEX

    alistair.mc14 (4/30/2013)


    if you have a table that has a clustered index and non-clustered index(es), bear in mind that the non-clustered index use pointers to the clustered index key, to locate...

  • RE: creating table error?

    mode_of_travel nvarchar(1100),

    seat_type nvarchar(1100),

    What kinds of seats or travel options require 1000 unicode characters to explain? I'd think of seat type as 'economy', 'premium', 'business', etc, not half a novel.

  • RE: Table variable is not automatically dropped in TempDB

    Temp table caching was added in SQL 2005 to alleviate the contention on the TempDB allocation pages caused by frequent creation of temp tables. You can probably find a few...

  • RE: TDE and Page-Level Compression

    Something or someone (connected on session_id 51) ran two alter database statements there (or went and clicked them in the GUI)

    ALTER DATABASE <db name> SET PAGE_VERIFY = NONE

    ALTER DATABASE <db_name>...

  • RE: TDE and Page-Level Compression

    To disable TDE, one would run an ALTER DATABASE, that's all.

    Take a step back, what was the last point in time when you knew that the DB was encrypted? How...

  • RE: Database Engine vs. UI SQL Statements

    fsuoj (4/29/2013)


    GillaMonster,

    Our argument was not over SELECT statements but more over DML.

    SELECT is a DML statement.

    Exactly the same for insert, update, delete, why would a statement sent from across...

  • RE: TDE and Page-Level Compression

    Or someone could have disabled it manually. Should be in the default trace.

  • RE: TDE and Page-Level Compression

    Like with just about all database settings, SQL won't randomly change them for you.

    Disabling TDE - ALTER DATABASE <db name> SET ENCRYPTION OFF.

  • RE: TDE and Page-Level Compression

    No, removing compression on a table or set of tables will not disable TDE. As for decrypting the pages, SQL does that every time they're pulled into memory, then they're...

  • RE: Database Engine vs. UI SQL Statements

    fsuoj (4/29/2013)


    Would you consider it bad programming to use SQL Stored Procs vs. Adhoc queries?

    No, absolutely not. Other way around.

    His argument is that when you are hitting a large...

Viewing 15 posts - 13,291 through 13,305 (of 49,552 total)