Forum Replies Created

Viewing 15 posts - 6,601 through 6,615 (of 13,469 total)

  • RE: Precedence Constarint

    it looks like you are testing the number of records that match...so i'd cosnider changing ti to simply IF EXISTS:

    IF EXISTS(SELECT f.name

    ...

  • RE: How To restore/attach DB with alternate mdf file (holds indexes only)

    YSLGuru (10/10/2011)


    I guess what I don't understand about this is that because the file does not contain any data, just index information then I would think you could do something...

  • RE: Audit 2008 r2

    GSquared (10/10/2011)


    It depends on what you need to audit.

    Are you just auditing the commands, or do you need to audit the actual data changes as well?

    C2 will audit both, but...

  • RE: SQL Server undocumented commands

    no...I say use the undocumented stuff whenever it's needed.

    technically sp_MSForEachdb and sp_MSForEachTable are undocumented and unsupported, but widely used.

    many times, MS is calling something an "undocumented feature", but added needed...

  • RE: SQL Server 2008 R2 Full Text search ContainsTable NOT working properly

    maybe i'm oversimplifying, but can't you simply wrap the query results with the RANK function ?

    SELECT RANK() OVER (ORDER BY [MashupMetaInfo_Id], MashupMetaInfo_Title, MashupMetaInfo_Tag) AsTheRank,

    MySubQuery.*

    FROM

    (

    ...your original query goes here....

    ) MySubQuery

    ORDER...

  • RE: Searching for misspelled keywords.

    yes, Full Text indexing has a thesaurus ; so if you searched for "camero", that's a synonym for "chevy"

    you can do the same for expected misspellings of your search terms,...

  • RE: Query Running Slow due to IS NULL in Where Clause.

    reformatted for readability:

    SELECT wooBillingAmount_Cp,

    worIsBillable,

    bcoUserValue1,

    bcoID,

    ...

  • RE: Using column alias in my where filter

    Steve Jones - SSC Editor (9/16/2008)


    Which results?

    The alias ones? Use

    where [10%] > 1000

    Jeffry Williams nailed the right techniques;

    you can reference an alias in the ORDER BY clause, but not the...

  • RE: E-mail notification for creating new db through triggers

    one of the more advanced features in SQL Server is the ability to use Extended Events.

    those events allow you to capture certain events and respond to them asynchronously, like logging...

  • RE: E-mail notification for creating new db through triggers

    shilpa.shankar87 (10/7/2011)


    Hi Friends,

    Is there any way to get email notifications from triggers if any new db is created in the sql server?

    Thanks in advance.

    you would have to use Extended...

  • RE: SQL Server Side trace stop

    when the trace is running and active, the operating system will not be able to report the file size, so it's not suprising it's still showing 0kb;

    only when a rollover...

  • RE: Database Mail + Linux?

    WaitingWonder2 (10/1/2011)


    We use Database Mail with gmail account to send email. Our clients uses mail server based on Linux. Is it possible to use Database Mail and mail server on...

  • RE: Aging Payments query help

    Tom would some4thign like this bee what you are looking for?

    select

    InvoiceNumber,

    InvoiceDate,

    Month(InvoiceDate) AS Mn

    from sometable

    where InvoiceDate < dateadd(dd,-45,getdate)

    Group By

    InvoiceNumber,

    ...

  • RE: Pls help me

    Ninja's_RGR'us (10/6/2011)


    Lowell (10/6/2011)


    Ninja's_RGR'us (10/6/2011)


    you're telling the server to do this, which is impossible :

    update set colum = (SELECT col1, col2, ... FROM )

    sigh...Ninja'd again...well deserved nickname, for sure.

    Well you...

  • RE: Pls help me

    Ninja's_RGR'us (10/6/2011)


    you're telling the server to do this, which is impossible :

    update set colum = (SELECT col1, col2, ... FROM )

    sigh...Ninja'd again...well deserved nickname, for sure.

Viewing 15 posts - 6,601 through 6,615 (of 13,469 total)