Forum Replies Created

Viewing 15 posts - 2,146 through 2,160 (of 2,917 total)

  • Reply To: Why Index column is NULL for DMV - sys.dm_db_index_physical_stats

    I can think of a few reasons for this, but could you post your full query?

    I am not sure if it is that I am running that DMV wrong, but...

    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.

  • Reply To: Win 7+SQL Server 2008->Win 7+SQL Server 2014->Win 10+SQL Server 2014?

    As far as I know, that should work as long as you are not wiping the disk when you go from 7 to 10.  If you wipe the disk, you...

    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.

  • Reply To: Powershell script to list all sysadmins on many SQL Servers

    I think what you are looking for is something similar to this website:

    https://key2consulting.com/how-to-execute-and-store-transact-sql-t-sql-queries-results-in-a-powershell-array/

    Basically, you create the objects then throw a query at it.  After getting the result, store it somewhere...

    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.

  • Reply To: How to generate a CSV listing of all objects in a database

    A nice easy question once you know where to look.  Have a look at the table sys.objects for that.

    The [name] column shows you the name of the object, the [type_desc]...

    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.

  • Reply To: Slow query vs. comments in the code

    In the execution plan, are you getting any extra memory grants or spills to tempdb or anything?  I expect that something is different somewhere.

    And I believe you; I've seen weird...

    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.

  • Reply To: Slow query vs. comments in the code

    That is very strange.  Can you post the execution plan?  If not, I'd start by examining that.

    My understanding is that comments SHOULD be stripped out when it gets to 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.

  • Reply To: Migrating a box with SQL server 2008 from Win 7 to Win 10: SSMS prep required?

    Step 1 is going to be to upgrade your SQL Server unfortunately.

    https://social.technet.microsoft.com/Forums/en-US/4fdede66-c47e-4c88-8e39-4f63dad29a03/can-you-install-sql-server-2008-on-windows-10

    SQL Server 2008 and 2008 R2 are not supported on Windows 10 or Windows Server 2016.

    IF the SQL...

    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.

  • Reply To: SSIS with Multiple Databases

    Phil Parkin wrote:

    The (admittedly obscure!) intention of my post was not to criticize your response, but to highlight the fact that in making things dynamic, SSIS slides out of the equation....

    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.

  • Reply To: SSIS with Multiple Databases

    That is true that it doesn't relate to SSIS directly.  My intent with the post was to determine what the end result was and if SSIS could handle it well.

    You...

    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.

  • Reply To: Backup compression

    It also depends on how "full" your database is.  A 400 GB database file that has 1 MB in use will compress most of that.  We have a database 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.

  • Reply To: SSIS with Multiple Databases

    This sounds like it could be handled by linked servers and some dynamic SQL and some fun stored procedures to gather all of the schema level data and compare 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.

  • Reply To: Is SSIS really that bad?

    My opinion, overall SSIS is nice and easy to work with.  Has a bit of a learning curve and I think as long as you aren't trying to do anything...

    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.

  • Reply To: How to update a record by checking a value in another record in same table

    That sounds like a pretty easy task:

    WITH cte AS (
    SELECT [RANGE], [STATUS], LAG([DATE]) OVER (PARTITION BY [ID] ORDER BY [RANGE]) AS [PrevDATE]
    FROM <table name>
    )
    UPDATE [cte]
    SET [STATUS]='Y'
    WHERE [RANGE]='001'...

    • This reply was modified 6 years, 8 months ago by Mr. Brian Gale. Reason: Code cleanup - was pulling data that is never used

    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.

  • Reply To: Is SSIS really that bad?

    My recommendation would be to try it out.  You are licensed for it; give it a shot.

    Build up a proof of concept data migration and compare it to the C#...

    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.

  • Reply To: Laptop Recommendations for 2019

    I have only had budget laptops with upgraded parts (such as an upgraded drive).

    My HP Envy was problematic from day 1.  Had a stuck pixel.  Got it returned under warranty...

    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,146 through 2,160 (of 2,917 total)