Forum Replies Created

Viewing 15 posts - 6,166 through 6,180 (of 7,164 total)

  • RE: Can we access Secondary Server in Logshiiping

    Leo.Miller (6/8/2011)


    Change is Required (6/8/2011)


    Can we access Secondary Server in Logshiiping or Can we mirror server in mirroring .?

    if yes explain

    As has been mentione the answer to the first...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Using xp_cmdshell to query active directory, global group names are truncated in results

    Jeff Moden (6/8/2011)


    opc.three (6/8/2011)


    Elliott Whitlow (6/7/2011)


    On most of my systems I disable xp_cmdshell and don't allow its use..

    +1000

    -1000 😉

    Why all the FUD about xp_CmdShell? Done properly, it's an incredible...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: programmatically dropping a default one constraint when there are more than one

    Cool, I am always happy to lend a hand in the eradication of a cursor 🙂

    Mine handles schemas now but I stopped short of (actually backed out of the...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: programmatically dropping a default one constraint when there are more than one

    Lowell, we all agree they are acceptable for system maintenance however there is no need to use one here so I'm just as happy having one less cursor in the...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Combining multiple rows of data into one row

    James A. Lawrence (6/8/2011)


    I have a table with the following data:

    A_Pfxa_policyA_DATE_ADDEDA_PROCESSDATEA_NUM_PROCESSEDEndRReq CertPremaud AudDisp

    GL69269509/15/200908/16/20090 ...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Create a look up in SQL similar to HLookup in Excel

    You are on the right track. You can cascade CTEs as well. See of something like this works for you:

    WITH StockSafety_CTE(ITEM, BU, Sub_Family_Desc, Sub_Family_Code, Current_ABC, CURRENT_ABC_WEEKS, Last_months_six_months_forecasts,...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Can we access Secondary Server in Logshiiping

    Change is Required (6/8/2011)


    Can we access Secondary Server in Logshiiping?

    To expound on what Suresh said, yes, you can, however when logs are applied no users can be connected to the...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: SQL Profiler: Capture writes for specific table(s)

    Depending on your requirements regarding tracking historical changes to the data either Change Data Capture or Change Tracking could be a good fit. Both are configurable at the table-level.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Create a look up in SQL similar to HLookup in Excel

    Jnrstevej (6/8/2011)


    Right i understand it perfectly now I just need to incorporate the caluculation in the StockSafety_CTE section of the code not add another CTE brilliant. Thanks alot for the...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Create a look up in SQL similar to HLookup in Excel

    Awesome, thanks. This code demonstrates how you can create the Current_Stock column.

    WITH StockSafety_CTE(ITEM, BU, Sub_Family_Desc, Sub_Family_Code, Current_ABC, CURRENT_ABC_WEEKS, Last_months_six_months_forecasts, Standard_Cost, A, B, C, D, E, Current_ABC1, Current_six_months_Forecast,...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: RID

    Not directly, just in some analysis. I am evaluating an ETL system where data store tables that are directly queries by users and are actively accepting new data nightly are...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: RID

    I think I found it but it was not as easy as I expected to find. From this article it looks like a physical RID occupies 8 bytes: [2 byte...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Create a look up in SQL similar to HLookup in Excel

    Sure, could you kindly post DDL for your tables and DML to add your test data? If you're not sure what I mean please refer to this article:

    http://www.sqlservercentral.com/articles/Best+Practices/61537/%5B/url%5D

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Create a look up in SQL similar to HLookup in Excel

    Jnrstevej (6/8/2011)


    I'm happy with the current results, however now i want perform a calculation using the case expression column called CURRENT_ABC_WEEKS. By create a new column '(LASTMONTHSIX/24)* CURRENT_ABC_WEEKS AS...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: SQL help

    Thanks. When I simply add those columns to the group I get more than one column per transId/radid/ProcID combination...which I see you do not want based on your expected results....

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 15 posts - 6,166 through 6,180 (of 7,164 total)