Forum Replies Created

Viewing 15 posts - 136 through 150 (of 337 total)

  • RE: Interpreting JSON data in SQL Server for Reporting purpose

    I would say simply create a deserializer class in .Net and use it as a CLR obect to query the data through SQL Server.Of course this would come at expense...

    --------------------------------------------------------------------------------------------------
    I am just an another naive wannabe DBA trying to learn SQL Server

  • RE: Trying to find a more simplistic way to execute this complicated Aggregation Query

    You say "..of average revenue by account... " so why are you averaging it based on fiscalyear.

    Sum(revenue)/count(distinct fiscalyear) AvgByAccount

    You could easily replace it with the Average function AVG(revenue) which will...

    --------------------------------------------------------------------------------------------------
    I am just an another naive wannabe DBA trying to learn SQL Server

  • RE: Second Last work day of month

    Since you have posted the question in SQL Server 2012 TSQL category I assume you are using SQL Server 2012.If that's the case then you can simply use the EOMONTH...

    --------------------------------------------------------------------------------------------------
    I am just an another naive wannabe DBA trying to learn SQL Server

  • RE: Ranking value based on row value

    Appreciate the effort Micky.

    It works perfect.

    --------------------------------------------------------------------------------------------------
    I am just an another naive wannabe DBA trying to learn SQL Server

  • RE: SQL Database code comparison

    If you are already using Visual studio you can use GDR functionality that comes up VS 2008/2010 database edition.

    --------------------------------------------------------------------------------------------------
    I am just an another naive wannabe DBA trying to learn SQL Server

  • RE: T-SQL Advice on Update Statement Needed

    Brandie Tarvin (8/2/2012)


    ....

    LEFT OUTER JOIN DimTime dt1

    ON ... (last update date column in staging table)

    LEFT OUTER JOIN DimTime dt2

    ON ... (Another date column in staging table)

    LEFT OUTER JOIN DimTIme dt3

    ON...

    --------------------------------------------------------------------------------------------------
    I am just an another naive wannabe DBA trying to learn SQL Server

  • RE: Witness server location

    Not sure what would that manual intervention be and when in this scenario.

    The only time I have to do any manual intervention in a DB mirroring is when I have...

    --------------------------------------------------------------------------------------------------
    I am just an another naive wannabe DBA trying to learn SQL Server

  • RE: Witness server location

    GilaMonster (7/29/2012)


    Sachin Nandanwar (7/29/2012)


    But if safety is OFF then any problem on the remote data center would not affect the principal as such.

    The OP states that he wants automatic failover....

    --------------------------------------------------------------------------------------------------
    I am just an another naive wannabe DBA trying to learn SQL Server

  • RE: Witness server location

    Lynn Pettis (7/26/2012)


    Just remember, if the witness server is located in the remote data center with the mirror server, and you lose communication between the data centers that the mirror...

    --------------------------------------------------------------------------------------------------
    I am just an another naive wannabe DBA trying to learn SQL Server

  • RE: compression and transactional replication

    Theoretically yes it should work.

    But for some reason if you have to re-run the snapshot agent and re-initialize the subscriber then I believe you will need to reset the compression...

    --------------------------------------------------------------------------------------------------
    I am just an another naive wannabe DBA trying to learn SQL Server

  • RE: temp tables work oddly

    Does this work ?

    ....FROM #ddb_temp_DDB tdb

    where not exists (select 1 from deposits_daily_balance ddb_t

    where ddb_t.num_cue_s =tdb.num_cue_s and ddb_t.val_date_d = @t_date_d and ddb_t.reg_date_d = @t_date_d)

    ...

    --------------------------------------------------------------------------------------------------
    I am just an another naive wannabe DBA trying to learn SQL Server

  • RE: Permissions on Service Account

    Under which account is the sql server service running ?

    --------------------------------------------------------------------------------------------------
    I am just an another naive wannabe DBA trying to learn SQL Server

  • RE: Data Deletion in DB

    shiv-356842 (7/26/2012)


    Hi Team,

    Some data deletion was happend in our Environment.

    Now i m planning to implementing AUDIT of the database & Server level any suggestions

    In various level we have...

    --------------------------------------------------------------------------------------------------
    I am just an another naive wannabe DBA trying to learn SQL Server

  • RE: compression and transactional replication

    First data compression works only with Enterprise edition.So make sure your edition is Enterprise.

    Second compression is a property which does get replicated in replication.So if your table is compressed on...

    --------------------------------------------------------------------------------------------------
    I am just an another naive wannabe DBA trying to learn SQL Server

  • RE: Witness server location

    Kwisatz78 (7/26/2012)


    Hi thanks for the replies.

    So there would be some manual intervention involved in certain scenarios, but I think they are something we could live with.

    I am actually hoping we...

    --------------------------------------------------------------------------------------------------
    I am just an another naive wannabe DBA trying to learn SQL Server

Viewing 15 posts - 136 through 150 (of 337 total)