Forum Replies Created

Viewing 15 posts - 8,341 through 8,355 (of 13,469 total)

  • RE: Convert computed column into a Date Type

    just alter the definition of the computed column so it includes a cast or convert;

    however, since a DATE datatype doesn't have the time portion, i think you could get...

  • RE: Deleted table log - Need help.

  • RE: Need more info on the sys.* tables

    they are easy to find, you just have to realize they are not real tables...they are Views...and they are also system views, so they are in a seperate folder in...

  • RE: LInked server

    newbieuser (12/2/2010)


    Thanks Lowell.

    CREATE SYNONYM dbo.citydata@ProdServer FOR MyLinkedserver.master.dbo.CITYDATA

    Is 'ProdServer' linkedserver name in the example?

    a synonym is an alias...it can be anything, but obviously it needs to make sence to...

  • RE: LInked server

    yes, you can create a synonym that points to the linked table.

    a synonym must point ot an object...procedure,function, table view, etc.

    it cannot point to part of a name.

    sp_tables_ex MyLinkedserver

    DROP SYNONYM...

  • RE: index columns datatype

    same datatype as the column it's on....there's rare exceptions where you make an index on a persisted calculated column that is the substring of a column, so then it's the...

  • RE: Turning off auto update of statistics

    Indianrock (12/2/2010)


    The execution plans were missing the number of rows involved by a mile.

    exactly;

    I've got one table, for example, that i update every two hours during biz hours , and...

  • RE: Turning off auto update of statistics

    I still disacgree with this, that's not what i got from TheSLGuru's comments:

    2. Turn auto update off on certain indexes with alter index.... set norecompute=on and update manually as needed

    As...

  • RE: DROP Index problem

    it's the tablename: the table is not "testen.strasse", it is "testen" or "dbo.testen"

    the code is looking for a schema testen and a table strasse, which does not exist.

    ALTER INDEX strasse...

  • RE: Results to merge customer names

    i think you'll have to have some ugly cleanups to try to find possible matches:

    SELECT * FROM

    (

    Select PK,

    REPLACE(

    REPLACE(

    REPLACE(

    REPLACE(

    REPLACE(

    ...

  • RE: Copying Tables Between Databases

    ok, as Seth identified, there's plenty of ways to script tables...GUI, SMO, lots of script contributions.

    one of my articles out there is how to script a table via TSQL[/url]. by...

  • RE: SELECT ...... WHERE .. NOT IN (SELECT...)

    the why is easy; NOT IN requires it a comparison to each value in the sub-select.

    really that is the same as saying :

    WHERE GR.NumDoc <> 1

    AND GR.NumDoc...

  • RE: SELECT ...... WHERE .. NOT IN (SELECT...)

    when you use NOT IN, you have to prevent NULLs in your dataset:

    change query1 to this, and you'll get the expected resultsi think.

    select GR.NumDoc As Query1 from GR Where GR.NumDoc...

  • RE: Searching Multiple Trace Files ?

    homebrew01 (11/30/2010)


    Lowell, I tweaked that a bit for my situation, and it worked quite nicely ... Thanks !

    sweet ! i was hoping to fiddle with that old thing after you...

Viewing 15 posts - 8,341 through 8,355 (of 13,469 total)