Forum Replies Created

Viewing 15 posts - 6,871 through 6,885 (of 26,490 total)

  • RE: How efficiently delete the old data?

    What is the recovery model on the database in question? If you need to control the growth of your transaction log, you may want to consider another alternative.

    My I...

  • RE: Sql help

    SQL_Surfer (3/28/2014)


    This works perfect. Can you explain what this is doing? I'm new to cross apply.

    ScottPletcher (3/28/2014)


    Ignoring any potential performance issues, a CROSS APPLY can do what you want fairly...

  • RE: SQL Licensing

    arrjay (3/29/2014)


    Hi there - We have multiple SQL environments, a few of them are production which run Enterprise version of SQL Server.

    Most of our development and QA environments...

  • RE: selecting top 1 from multiple ranges...

    Eric Stout (3/28/2014)


    So I have data like the following:

    ID COUNTER DATA

    1 10 ...

  • RE: select query based on compare date and not datetime

    Bob McClellan-320407 (3/28/2014)


    I always use this when I need to compare dates...

    select convert(char,getdate(),112)

    RESULT = 20140328

    hth,

    ..bob

    Faster...

  • RE: Are the posted questions getting worse?

    Koen Verbeeck (3/27/2014)


    W00t w00t, this one makes my 12000th point. 😎

    Congrats!

  • RE: Records for last 2 hours

    If you would like some real help solving your problem please read the following article. It will show you what you need to post and how to post it...

  • RE: Periodic Differential Backup Failures

    kaplan71 (3/26/2014)


    Hello --

    The third-party backup program can be configured to exclude the directory where the log files reside.

    That brings me to another question: Correct me if I am wrong,...

  • RE: Are the posted questions getting worse?

    Grant Fritchey (3/25/2014)


    The Dixie Flatline (3/25/2014)


    My poster child interview disappointment: Good resume' on paper, but then the man walked in, opened up his laptop, and scrolled through...

  • RE: Records for last 2 hours

    sharonsql2013 (3/25/2014)


    Out Table has date as '2014-04-25' and time as 12:00 AM , 1:01 Am ,12:10 pm etc....

    I need to see records for last two hours ...

    How should I do...

  • RE: Identify duplicates where the date is the latest

    Abu Dina (3/25/2014)


    The truth is I'm no longer using SQL server.

    Using Sybase which doesn't have these functions in ASE.

    Okay. You might want to mention that up front when asking for...

  • RE: Converting calendar date into fiscal year

    Here is a SQL way to do this easily:

    declare @Date date = '20140201';

    select cast(YEAR(dateadd(month,9,@Date))-1 as varchar(4)) + '-' + cast(YEAR(dateadd(month,9,@Date)) as varchar(4))

    set @Date = '20140612';

    select cast(YEAR(dateadd(month,9,@Date))-1 as varchar(4)) + '-'...

  • RE: Identify duplicates where the date is the latest

    Why do you NOT want to use RANK or ROW_NUMBER functions?

  • RE: A simple query needs your help

    Is this a good start? Without your expected results based on the sample data it is hard to know what you are actually looking for here.

    CREATE TABLE [dbo].[Doc](

    [ID] [int]...

  • RE: Removing 2000 Compatibility Mode - New Problem

    homebrew01 (3/25/2014)


    We came across a "gotcha" while testing our application without being in 2000 compatibility mode. We fixed all the *= left join syntax, but in another stored...

Viewing 15 posts - 6,871 through 6,885 (of 26,490 total)