Forum Replies Created

Viewing 15 posts - 676 through 690 (of 813 total)

  • RE: Make string columns unicode compliant

    It doesn't actually disable constraints that were previously disabled; run a quick test and see for yourself.

  • RE: Make string columns unicode compliant

    Here's a variant for FK's and CK's that fully mirrors the Trusted/Untrusted, Enabled/Disabled states (it also generates more than one column at once, suitable for greater automation).

    If you're going to...

  • RE: DMV sys.dm_db_index_physical_stats

    You've got a hardcoded 'mytable' in there; try to see if there's a significant speed difference in putting the object_id of 'mytable' directly into the DMV parameters as a number...

  • RE: Script all Indexes

    To cross-pollinate this article discussion with a closely related article that includes a very simple SQL statement for limited scripting of SQL 2005 indexes:

    http://www.sqlservercentral.com/scripts/T-SQL/71058/[/url]

  • RE: Make string columns unicode compliant

    Thank you for the useful and very compact script. While I understand not supporting SQL 2008 features like filtered indexes and data compression, you're also missing support for include...

  • RE: Script all Indexes

    EDITED - minor IsClustered bug fixed

    Alteration in the middle - the "Disallowed" requires a double negation logic:

    IF INDEXPROPERTY(@idxTableID, @idxname, 'IsPageLockDisallowed') = 0

    SET @sParamSQL = @sParamSQL + 'ON,'

    ELSE

    ...

  • RE: Script all Indexes

    Minor alterations at the end:

    -- Commas removed from the end of ON and OFF so variable following arguments work properly with leading commas

    IF (INDEXPROPERTY(@idxTableID, @idxname, 'IsStatistics') = 1)

    SET @sParamSQL =...

  • RE: Script all Indexes

    This is wonderful!

    But does anyone know how to figure out what the DATA_COMPRESSION setting is for a given index (none, row, or page)?

    It doesn't appear to be in...

  • RE: Performance tuning

    Turn on SQL Profiler with TextData, HostName, ApplicationName, CPU, Reads, Writes, and Duration (and whatever else you like) for the SQL:BatchCompleted and RPC:Completed events only.

    Set it to run...

  • RE: When To Touch

    I regularly set up routine index maintenance and backups on 3rd party databases.

    I often add a new database containing my preferred basic tools into the SQL Server instance (a smallint...

  • RE: Disk configuration for TempDB

    One other trick is to put TempDB on, say, a pair of local SSD's in RAID1; keep it off the SAN.

    Given the price per SAN spindle, and the...

  • RE: The Logic, Mathematics, and Utility of NULLs

    Simple example:

    DISK ROTATIONAL SPEED

    A 15000

    B ...

  • RE: Foreign Key ...CHECK constraint

    Check both systems for Untrusted constraints; it's very common to disable a constraint, add data, and re-enable it without the required "WITH CHECK CHECK" syntax.

    SELECT

    CASE OBJECTPROPERTY(soConstraint.id,'CnstIsNotTrusted')

    ...

  • RE: The Logic, Mathematics, and Utility of NULLs

    I'll simply agree with statements from two prior posts, slightly reworded:

    1) In practice, with normal humans using the data, NULL must have an explicit operational definition to be meaningful. ...

  • RE: Requirements to use Excel 2010 to SQL 2008 Analysis server

    I don't know, but I'm very interested in the answer as well.

    Are you using plain Excel 2010, or PowerPivot for Excel 2010?

Viewing 15 posts - 676 through 690 (of 813 total)