Forum Replies Created

Viewing 15 posts - 106 through 120 (of 508 total)

  • RE: Someone Deleted a Table

    GilaMonster (9/20/2011)


    tfifield (9/20/2011)


    Anyone got any ideas?

    Todd Fifield

    Drop database, start again.

    You can put the DB back into restoring easy enough, but it still won;t allow another log restore.

    Thanks Gail. ...

  • RE: Someone Deleted a Table

    Ninja's_RGR'us (9/20/2011)


    tfifield (9/20/2011)


    Well, everything worked fine thanks to Gail. However, when we were restoring the logs we stopped one short of where we really wanted to be and then...

  • RE: Someone Deleted a Table

    Well, everything worked fine thanks to Gail. However, when we were restoring the logs we stopped one short of where we really wanted to be and then did the...

  • RE: Someone Deleted a Table

    Gail,

    Thanks a lot. I'm now going to try to bail my friend out of trouble.

    Todd

  • RE: Someone Deleted a Table

    Gail,

    Thanks. I've actually never restored logs to a different database than the original. Is there a write up of some kind on this?

    Todd Fifield

  • RE: sorting through duplicate data

    Here's another way to do it. I find that some people forget that COUNT and SUM are also windowing functions and can be used in a partition.

    declare @t table(

    MasterID...

  • RE: Activity Monitor questions

    I find as a first step that Adam Mechanic's free utility sp_whoisactive will find a good many problems right off the bat.

    Todd Fifield

  • RE: Selection in subquery

    Looks like the APPLY method worked out for you.

    Todd Fifield

  • RE: Advice on running totals using a cursor

    zapouk (9/15/2011)


    I'm actually opposed to storing running totals in permanent tables for various reasons we can get into later.

    Given the implications for me, you'd better tell me sooner rather than...

  • RE: disappearing user view in SQL Server 2008 database

    fiddi,

    I had something similar to this - missing GO statements causing a drop with no create. I finally created a little app in VB to concatenate the source files...

  • RE: Export Query Result to DBF file(foxpro)

    I've never exported directly from SQL Server to FoxPro. I've done it several times to an Access MDB where the Access MDB is a linked server. There were...

  • RE: Selection in subquery

    schillingt (9/12/2011)


    Looks like OUTER APPLY is not supported in SQL 2000 but I did get this to work on a SQL 2008 instance which we will be migrating to soon...

  • RE: Syntax problem using SELECT.. IN (@variable)

    It's fairly easy to convert a string into something that can be used like an IN predicate. Here's an article on it.

    http://www.sqlservercentral.com/articles/T-SQL/73838/

    Todd Fifield

  • RE: Selection in subquery

    schillingt,

    Let's make sure we all agree on what we're talking about. I've seen what are more properly called derived tables called sub-queries. A derived table is what you...

  • RE: Need information regarding Indexes

    GilaMonster (8/31/2011)


    tfifield (8/31/2011)


    If you really need all columns returned, then by all means use SELECT *.

    Even if every single one really is needed, they should still be explicitly named. Tomorrow...

Viewing 15 posts - 106 through 120 (of 508 total)