Forum Replies Created

Viewing 15 posts - 181 through 195 (of 1,248 total)

  • Reply To: certificate on a Sql Server Failover Cluster

    Not sure at what step you are at

    What do you see when you run

    select * from master.sys.certificates

     

    ----------------------------------------------------

  • Reply To: I need to delete 20 million rows from a table...

    Yes, attempting to approach this the wrong way will potentially hose your server for days, and rebooting a giant transaction half-way will only make things worse. I am confronted...

    • This reply was modified 4 years, 7 months ago by MMartin1.

    ----------------------------------------------------

  • Reply To: clustered index usage

    Brahmanand Shukla wrote:

    Brahmanand Shukla wrote:

    I've worked on several applications which ride on the external data being received as a flat file every day on an SFTP. The processing time was going beyond...

    ----------------------------------------------------

  • Reply To: clustered index usage

    Jeff Moden wrote:

    p.s.  We did do something great on this thread... although it's gotten a bit confrontational, it IS bringing a lot of things to light that people might not have...

    ----------------------------------------------------

  • Reply To: 3 calculations on different levels

    pietlinden wrote:

    I was pointing that out to the OP... Maybe read a little of The Data Warehouse Toolkit to learn how to build star schemas might be in order. I...

    ----------------------------------------------------

  • Reply To: clustered index usage

    ScottPletcher wrote:

    MMartin1 wrote:

    Brahmanand Shukla wrote:

    Yes, agree that it would benefit in the read loads. But we should also consider the overhead of CI on write operations. So if the database is...

    ----------------------------------------------------

  • Reply To: 3 calculations on different levels

    pietlinden wrote:

    I think writing summary queries in T-SQL is the wrong way to go if you're consuming the data in PowerBI. It's fine to create views using T-SQL to populate...

    ----------------------------------------------------

  • Reply To: Need help optimizing TSQL

    ScottPletcher wrote:

    aaron.reese wrote:

    It really depends on whether you understand the consequences of NOLOCK.  It can result in a 'dirty read' if there are uncomitted transactions in the database that affect...

    ----------------------------------------------------

  • Reply To: clustered index usage

    Brahmanand Shukla wrote:

    Yes, agree that it would benefit in the read loads. But we should also consider the overhead of CI on write operations. So if the database is read-intensive then...

    ----------------------------------------------------

  • Reply To: Customized Schedule Job through TSQL

    If you have source control at your shop (like GIT) you may be able to see how other Jobs are scripted and pull out the block of code that defines...

    ----------------------------------------------------

  • Reply To: Need help optimizing TSQL

    Jonathan AC Roberts wrote:

    Does an estimated execution plan find any missing indexes?

    To speed the query up you could try putting an index on the Customer table with the leading edge on columns...

    ----------------------------------------------------

  • Reply To: security related question

    One example would be when you want to allow select to a 'tableA' from the accountingGroup. Then you realise that there is a member of that group who you would...

    ----------------------------------------------------

  • Reply To: How to copy rows from the same table and update the ID column?

    BOR15K wrote:

    I appreciate it is utterly trivial question, and yet... When you have a small amount of columns, there is a simple solution, sort of

    INSERT INTO myTable
    SELECT...

    ----------------------------------------------------

  • Reply To: case Statement with Cte

    Seems like this user is posting exam questions on the forum.

    ----------------------------------------------------

  • Reply To: 3 calculations on different levels

    This will illustrate what I was trying to point out initially

    Try the following sample data and see results

    Create table #myTemp(
    area varchar(10),
    store varchar(10),
    totalStoreSales int
    );
    go

    insert into #myTemp
    values
    ('area_a', 'store1',...

    • This reply was modified 4 years, 9 months ago by MMartin1.

    ----------------------------------------------------

Viewing 15 posts - 181 through 195 (of 1,248 total)