Forum Replies Created

Viewing 15 posts - 2,251 through 2,265 (of 2,917 total)

  • RE: Must-have hands-on reports for SQL Server DBA

    Alejandro Santana - Monday, March 12, 2018 10:18 AM

    Regarding backups verifications, do you guys even restore the system databases?

    You should test restoring...

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

  • RE: 15 seconds pending execution

    sgmunson - Thursday, March 8, 2018 9:49 AM

    I'd start with having your network team analyze the traffic and see exactly what's going...

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

  • RE: How do you have an append query run automatically based on a new record in table?

    DarthBurrito - Wednesday, March 7, 2018 12:19 PM

    Thanks all! Yeah, so all this is happening is in Access with Access tables.

    I seen...

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

  • RE: How do you have an append query run automatically based on a new record in table?

    WendellB - Wednesday, March 7, 2018 10:56 AM

    DarthBurrito - Wednesday, March 7, 2018 9:39 AM

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

  • RE: Must-have hands-on reports for SQL Server DBA

    Daily:
    The first thing I check each morning when I start work is if any of my backups failed.  
    Next I check for any failed SQL jobs on any...

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

  • RE: How do you have an append query run automatically based on a new record in table?

    This sounds like a job for a trigger.

    You would create an AFTER INSERT trigger on tbl1 and in that you put your append query.
    https://docs.microsoft.com/en-us/sql/t-sql/statements/create-trigger-transact-sql
    Syntax:

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

  • RE: Trouble with script that dynamically imports flat file. cmdshell

    I just tried a subset of this on my system (SQL 2016 SP1) and got the same result you did.  My subset test was:
    CREATE TABLE #test (s...

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

  • RE: Service Broker cryptographic error

    When you run these scripts, do you run the entire SB_Target_master.txt on the target server and then run the entire SB_Source_master.txt or even in the reverse order?  

    The...

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

  • RE: Help with Trigger emial

    I could be wrong on this as I have not built a trigger like that before, but I fairly confident that the INSERTED table is only visible to your trigger,...

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

  • RE: How can i solve the error: 'An expression of no-boolean type....

    I may be mistaken on this, but I think that the problem is that @Dimension is not containing a single int value.  You say that it is multiple selects.  So...

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

  • RE: Updating stats make things worse

    I agree with Sue here; the new CE wasn't indroduced in 2012.  Plus the OP indicated that updating statistics on the 2008 one caused the 10 minute run as well.

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

  • RE: change old store to new store

    I am glad you figured it out.  I am a little confused why what I wrote didn't work though.

    Did you change any of the code I posted?  It...

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

  • RE: GRANT UNMASK ON SCHEMA?

    From my understanding, UNMASK is a database level permission.
    I think what would likely be the best way to manage this would be to create a user without login that...

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

  • RE: Query to give sum of items with condition from multiple tables

    for others wanting to help, here is the DDL
    DECLARE @tblLineItems TABLE
        (
            [LineItemID] INT ,
            [JobID] INT
        );
    DECLARE @tblCostCodes TABLE
        (
            [costCodeID] INT ,
            [costCode] VARCHAR(25)

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

  • RE: change old store to new store

    rn is the "rn" column from the cte which is the row number partitioned by staff_id, ordered by transaction_Date
    What version of SQL are you using?  I ran the above...

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

Viewing 15 posts - 2,251 through 2,265 (of 2,917 total)