Forum Replies Created

Viewing 15 posts - 301 through 315 (of 349 total)

  • RE: Need SQL Function to return qualified dates

    1 Final SQL adjustment needed. 

    This Statement returns the last DAY of the prior QTR.  Needs to be adjusted to return a TIME = 00:00:00.000

    SELECT

  • RE: Need SQL Function to return qualified dates

    These replies are near perfect for our solution.  ! additional question.  Using your SQL:

    select dateadd(day,-day(min(getdate())),dateadd(month,-3,dateadd(month,-((month(min(getdate()))-1)%3),min(getdate()))))

    HOW can I render this result w/ a TIME = 00:00:00.000?

    Many...

  • RE: Object Explorer "CREATE DATE" display for objects

    thx for the suggestion .. not to sound unappreciative, but I'm aware that I can query the catalog to derive attributes for various objects (eg. DateCreated) .. but this is quite...

  • RE: Add article to existing Txnl Repl Publ w/out re-genning the entire snapshot

    Scorpion - I'd really appreciate it.  I owe you one -

    -bt

     

  • RE: Add article to existing Txnl Repl Publ w/out re-genning the entire snapshot

    Yes, as I originally mentioned, I read the few articles on this and built out the following solution.  The subscription is not picking up CHANGED data at the subscriber side...

  • RE: DELETE 100 rows at a time - COMMITING after each 100 rows DELETED

    Thx for everyone's help across threads here.  Here's a solution which loops thru 135 million rows, deleteing 10,000 rows then commiting:

    DECLARE @x

  • RE: Txn Replication sp_addarticle requesting @force_invalidate_snapshot = 1

    I didn't tick the existing articles -- all I did was add 2 additional articles.   As I mentioned, E/M indicated a Reinitialization is required.   I watched the Snapshot Agent reintialize...

  • RE: Txn Replication sp_addarticle requesting @force_invalidate_snapshot = 1

    Thanks for the feedback -- here's exactly what I did

    Using E/M, I added the 2 articles and yes, SS 2000 alerted me that this requires a reinitialization of the subscritpion...

  • RE: Need to ADD to 2 articles to a Publication in Txnl replication

    I found this - can anyone confirm:

    Create the table on the subscriber (if not already there)

    DTS the data to the subscriber then -

  • RE: Delete (or reclaim) a secondary .LDF

    Jeff - thx for the feedback regarding the DELETION of a secondary SQL 2K Txn LogFile (.LDF).  I actually tested your method this morning (successfully). 

    Question I have - does...

  • RE: SELECT TOP n

    Tim - thanks for the excellent reply.  All 3 issues have been answered. 

    Hey, ANY recommendations on speeding up the Connection time to SQL Server 2005? 

    Whenever I do an...

  • RE: Retain SQL 2005 Register Server, Object Explorer selections

    I just received a SQL 2005 prompt msg:  DO you want to add previously registered SQL Servers from this machince?  Yesterday I answered YES -- I'm thinking this may have...

  • RE: Default RS Report parameters to predefined dates

    Steve - thanks for the reply.  I actually have the SQL to render the DATEs (see samples below)  What I need to know is how to render these in the...

  • RE: Need SQL to render FIRST day of the year

    --FIRST DAY of CURRENT MONTH

    select DATEADD(mm, DATEDIFF(mm,0,getdate()), 0)

    --FIRST Day of the Year

    select DATEADD(yy, DATEDIFF(yy,0,getdate()), 0)

    --FIRST Day of the Quarter

    select DATEADD(qq, DATEDIFF(qq,0,getdate()), 0)

    --LAST Day of Prior Month

    select dateadd(ms,-3,DATEADD(mm, DATEDIFF(mm,0,getdate()  ), 0))

    --LAST...

  • Viewing 15 posts - 301 through 315 (of 349 total)