Forum Replies Created

Viewing 15 posts - 8,236 through 8,250 (of 8,753 total)

  • RE: Upgrading cardinality

    Testing on Sql Server 2014 Dev,

    Trace flag 9481 forces CardinalityEstimationModelVerion 70

    and 2312 forces 120.

    The correct answer for the question should be traceflag 2313.

    😎

  • RE: Mysterious performance issue when joining a view

    Quick thought, if the view is returning in 20-30ms, that looks like once per row in the table

    😎

  • RE: Upgrading cardinality

    sestell1 (5/15/2014)


    Does anyone know if the trace flag should actually be 2312?

    I don't have a 2014 instance to test with. πŸ™

    I'm getting slightly confused, ran queries with SHOWPLAN_XML on...

  • RE: Foreign Key Question

    What do you find in the INFORMATION_SCHEMA for the constraints? Look for the table and column names in question.

    😎

    SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS

    SELECT * FROM INFORMATION_SCHEMA.DOMAIN_CONSTRAINTS

    SELECT * FROM INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE

    SELECT * FROM...

  • RE: Need help with creating unique constraint.

    A trigger with insert and update

    😎

    CREATE TRIGGER [dbo].[TRG_MY_CONSTRAINT]

    ON [dbo].[TestConstraint]

    INSTEAD OF INSERT, UPDATE

    AS

    BEGIN

    SET NOCOUNT ON;

    IF EXISTS

    ...

  • RE: Need help with creating unique constraint.

    Sorry about the misunderstanding, the first post was pre industrial strength tanker sized load of espresso:-P

    One solution is to use a trigger

    😎

    USE tempdb;

    GO

    CREATE TABLE dbo.TestConstraint

    (

    id INT...

  • RE: Asking on Image Data Type

    Quick test would be checking with the the datalength function, if it corresponds to the file size, it is in the table.

    😎

  • RE: Upgrading cardinality

    Good question, thanks!

    I got it wrong:ermm: or did I:w00t:

    Note, on Microsoft Support there is an article; Enable plan-affecting SQL Server query optimizer behavior that can be controlled by different trace...

  • RE: Need help with creating unique constraint.

    First the DDL

    USE tempdb;

    GO

    CREATE TABLE dbo.TestConstraint

    (

    id INT NOT NULL

    ,ProductID int NOT NULL

    ,Datecreated DATETIME NULL

    ,DateExpired DATETIME NULL

    );

    GO

    ALTER...

  • RE: horizontal to vertical rows conversion

    This query uses UNPIVOT in a CTE. A ROW_NUMBER function assigns a number for each header/value combination, which is then used to set the output column in the latter part...

  • RE: Flip two words

    mickyT (5/14/2014)


    Luis Cazares (5/14/2014)


    mickyT (5/14/2014)


    However having said that, this could be another way of attacking the problem

    Until you find that Gordon Abraham and Abraham Gordon (or any other combination of...

  • RE: Tally OH! An Improved SQL 8K β€œCSV Splitter” Function

    Usman Butt (5/14/2014)


    BTW, can someone test the physical tally table splitters as well? @paul-2 Can you be so kind to me :unsure:

    I'll do it as well, don't hold your breath:Whistling:...

  • RE: Tally OH! An Improved SQL 8K β€œCSV Splitter” Function

    Paul White (5/14/2014)


    Is everyone running Jeff's original/updated test rig from the article to get these results?

    If so, you might not be testing what you think you are. There is a...

  • RE: Flip two words

    For fun:-P, it always looks simple until one starts to meddle with it

    😎

    with Names as

    (

    select 'Mike Davis' as FullName union all

    ...

  • RE: Loading image from file system into SQL query using openrowset

    emilacosta (5/14/2014)


    Hi,

    Thank you for your answer. πŸ™‚

    My main question is how to get the path of the image file from the table where it is stored and load the image...

Viewing 15 posts - 8,236 through 8,250 (of 8,753 total)