Forum Replies Created

Viewing 15 posts - 2,296 through 2,310 (of 2,917 total)

  • RE: MDS: Polulate 3 tables

    Where is this information coming from?

    I am assuming that "Databases_Leaf" is a list of databases that will be coming from an external source and not the internal set...

    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: CREATE LOGIN from Windows... leaves hasaccess=0 sometimes?

    I know as the DBA where I work, if a script has errors when run, I run the rollback script and then contact the developer.  We have a "No script...

    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: Indexing strategy on a highly transient table

    If the data in the table is changing frequently, the statistics should be updated frequently.

    Basically the statistics are used to determine which plan should be used when performing...

    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: Indexing strategy on a highly transient table

    Adding to what Steve said, I think that this also falls under the "it depends" pile.  Having up to date statistics is important for sure, but knowing if indexes are...

    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: Getting the same value in last 3 or digits when using Datetime2 data type in SQL Server 2012

    I tried this on SQL 2008 R2, 2012 and 2016 (slightly modified script) and could not reproduce this.
    My script was a lot more simple:
    SELECT SYSDATETIME()
    GO...

    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: Uninstalling SQL Server 2012/14/16

    yrstruly - Thursday, October 5, 2017 12:14 AM

    Thank You for the feedback. I meant by different instances e.g MSSQLSERVER, MSSQLSERVER2, MSSQLSERVER3. That's what i...

    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: Uninstalling SQL Server 2012/14/16

    Is there a reason you want to uninstall?  I have found that if you integrate SQL Server into any other tool (such as Visual Studio) or if you install updates...

    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: Since looping is bad, how should I accomplish what I am trying to do?

    Jeff Moden - Sunday, October 1, 2017 4:22 PM

    The XML conversion method is as slow and sometimes slower than the use...

    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: Since looping is bad, how should I accomplish what I am trying to do?

    With the link I provided, I think you'd just need to run things through twice.  Using the code in the link and assuming the [city] column is there twice, something...

    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: Since looping is bad, how should I accomplish what I am trying to do?

    If I understand your request properly, I THINK that this will do exactly what you are asking, no:
    http://sqljason.com/2010/05/converting-single-comma-separated-row.html
    It uses cross apply and you don't need to worry...

    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: Automate Table Field Names In Query

    As much as I don't recommend this method, I believe it should be possible if you don't mind using a stored procedure for selecting from or insterting into the table.

    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: My favorite sql database

    The first thing I would do is a tail log backup and then restore your backups to a secondary system (if available) to see if there is any data in...

    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: Occasional mysterious time outs on SQL Server db table

    Thanks for the follow up.

    I'm curious what the cause of the problem is and am hoping that we can be of some help in resolving 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: Occasional mysterious time outs on SQL Server db table

    Did this happen again?  If so, did you figure anything out?

    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: A user you are following, "...", has posted new content: but I'm not following this user

    Just happened again to me.  I got a notice that a user I know I'm not following (BOR15K) posted, but it claims I am following them.

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