Forum Replies Created

Viewing 15 posts - 13,351 through 13,365 (of 18,923 total)

  • RE: Unique Values

    Select Machine, Software, min(date) as FirstInstall

    from dbo.Devices

    group by Machine, Software

  • RE: Bulk Insert TSQL in DTS – Rows Affected Count

    You have an option with the bulk inserts. You can add the keyword "FIRETRIGGERS" so that the triggers still fire with the insert. You can do the same...

  • RE: Full-Text Search

    This is a good start... but you'll have to dig around for the status column meanings :

    Select CT.ftcatid, O.name as TableName, CT.name as CatalogName, CT.Status from dbo.sysfulltextcatalogs CT inner...

  • RE: HELP!. Want a Cross Join with null values!

    Select * from

    (

    Select null

    union all

    Select season from dbo.saisons

    ) dtNulls

    cross join days

  • RE: Roll it up just like a Burito

    Books online.

  • RE: Send Message to Client

    Well it fails if the receiver has it off, and now I'm assuming when the sender had it off too. Why can't you just start those services?

  • RE: SELECT LIKE statment

    alter table..

    add colname as replace()

  • RE: Generating a text file

    No you don't need to, you can flag the new rows and have a job send the information to a text file when needed, which is the recommended method...

  • RE: SELECT LIKE statment

    The server will do it for you.

  • RE: SELECT LIKE statment

    Because it'll still do a scan if it's not indexed. Also the trims just don't do squat because the replace already wipped out all the spaces.

    SCAN : open the...

  • RE: SELECT LIKE statment

    Yes it does :

    Select whatever from dbo.YourTable where YourIndexCol like 'sdfk%'

    This uses a seek

    this however results in a scan

    Select whatever from dbo.YourTable where YourIndexCol like '%sdfk%'

  • RE: Generating a text file

    Why not make the server generate that file 2 minutes before the service starts?

  • RE: Why does this scan an entire NC index?

    Nice catch, confirmed :

    GO

    Create table test

    ( id int not null identity(1,1) primary key clustered,

    someBit bit not null

    )

    GO

    CREATE INDEX IX_text_Somebit on dbo.Test (SomeBit)

    GO

    Insert into dbo.Test (SomeBit) values (1)

    Insert into...

  • RE: Generating a text file

    Why a text file?

  • RE: How can I do the following

    use max or min... but I doubt that it'll solve your problem in this case since I assume you have more than 1 row to present.

Viewing 15 posts - 13,351 through 13,365 (of 18,923 total)