Forum Replies Created

Viewing 15 posts - 31 through 45 (of 201 total)

  • RE: SQLCMD returns --- column header

    Look up sqlcmd in Books Online.

    The command line argument you're loking for is "-h" the value you should supply is -1.

    ML

    ---
    Matija Lah, SQL Server MVP
    http://milambda.blogspot.com

  • RE: User-defined, Database-level constant: is there a 'best' technique?

    In a SQL Server database you basically store data in tables, so using a table for this kind of storage seems like the most logical solution.

    A couple of hints: familiar...

    ML

    ---
    Matija Lah, SQL Server MVP
    http://milambda.blogspot.com

  • RE: List Objects with in a procedure across multiple Database

    Try this:

    declare@querynvarchar(max)

    set@query

    = (

    selectleft(Script.Query, len(Script.Query) - 9)

    from(

    selectScript.Query.query('Query').value('.', 'nvarchar(max)') as Query

    from(

    selectQuery

    = N'

    selectTABLE_CATALOG + ''.'' + TABLE_SCHEMA + ''.'' + TABLE_NAME collate Latin1_General_CI_AS as QualifiedObjectName

    from'

    + sys.databases.[name]

    + '.INFORMATION_SCHEMA.TABLES

    union all'

    fromsys.databases

    for xml path(''), type

    ) Script (Query)

    )...

    ML

    ---
    Matija Lah, SQL Server MVP
    http://milambda.blogspot.com

  • RE: SQL Contains Statement Question

    Single characters and most symbols are excluded from full-text indexing. Most of them are listed as "noise words" (look them up in Books Online) and are listed in noise-word files...

    ML

    ---
    Matija Lah, SQL Server MVP
    http://milambda.blogspot.com

  • RE: Row versionnning and isolation levels

    Changing the isolation level of a transaction to SNAPSHOT will cause an exception.

    Repro:

    -- step 1 start

    create databaseSnapshotPromotion

    go

    alter databaseSnapshotPromotion

    setallow_snapshot_isolationon

    go

    alter databaseSnapshotPromotion

    setread_committed_snapshoton

    go

    useSnapshotPromotion

    go

    create tabledbo.test

    (

    cint

    )

    go

    -- step 1 end

    -- step 2 start

    settransaction isolation level read committed

    begin...

    ML

    ---
    Matija Lah, SQL Server MVP
    http://milambda.blogspot.com

  • RE: Simple error on Update

    Turning ANSI_WARNINGS off should not be a permanent solution. ANSI warnings prevent data corruption that may be caused by inconsistent use of data types (e.g. truncation) and operations where divide-by-zero...

    ML

    ---
    Matija Lah, SQL Server MVP
    http://milambda.blogspot.com

  • RE: Row versionnning and isolation levels

    Answers inline.

    Carl B. (4/21/2009)


    Hi Matija,

    I don't suggest to set these database settings at connection time. I wrote : "I ask this question because our ALTER DATABASE statements are not...

    ML

    ---
    Matija Lah, SQL Server MVP
    http://milambda.blogspot.com

  • RE: Row versionnning and isolation levels

    Are you suggesting setting these database settings whenever you connect to the database? That's not necessary. You should set this when the database is created, and only use those that...

    ML

    ---
    Matija Lah, SQL Server MVP
    http://milambda.blogspot.com

  • RE: How do I turn on multi phase data pump in DTS in SQL Srvr 2005?

    You're using DTS on SQL 2005? Any special reason?

    With SSIS you can redirect error rows in the Data Flow Source.

    IMHO, if "getting through the project" is the goal then why...

    ML

    ---
    Matija Lah, SQL Server MVP
    http://milambda.blogspot.com

  • RE: Simple error on Update

    What's the data type of the MCTR_ENTITY column?

    Is this a typo?

    SET [MCTR_ENTITY] = '#PCA'

    WHERE MCTR_ENTITY = '#PCA'

    The values are the same.

    Are there any triggers on that table?

    ML

    ---
    Matija Lah, SQL Server MVP
    http://milambda.blogspot.com

  • RE: Problem Updating Unique Nonclustered Index

    As stated in the error message, you cannot drop an index that is being referenced by a foreign key constraint.

    You need to drop all constraints referencing the index before you...

    ML

    ---
    Matija Lah, SQL Server MVP
    http://milambda.blogspot.com

  • RE: JPGs added to Image column are truncated at 1024 bytes (but only when import executed as a Job)

    What does the dbo.Eur_RMISWebInterface_GetProductImagesForWeb procedure do?

    ML

    ---
    Matija Lah, SQL Server MVP
    http://milambda.blogspot.com

  • RE: Join two tables and use contain ??

    No problem. 🙂

    Post Back and let us know how you get on!

    ML

    ---
    Matija Lah, SQL Server MVP
    http://milambda.blogspot.com

  • RE: Defining a Full Text index search on a view

    I am not aware of such a limitation but it would seem that indexes on computed columns are not supported by FTS.

    Is there another unique column that you can use...

    ML

    ---
    Matija Lah, SQL Server MVP
    http://milambda.blogspot.com

  • RE: Join two tables and use contain ??

    You can join the two tables and use a CONTAINS predicate on each of them with the same search argument.

    E.g.:

    select<column list>

    from<table 1> t1

    <inner or outer?> join<table 2> t2

    ont2.<common key> =...

    ML

    ---
    Matija Lah, SQL Server MVP
    http://milambda.blogspot.com

Viewing 15 posts - 31 through 45 (of 201 total)