Forum Replies Created

Viewing 15 posts - 901 through 915 (of 2,917 total)

  • Reply To: To extract the Nth record out of grouped records (avoiding NTile)

    An alternate, but similar, approach would be to add a sequential integer column to the table rather than the row_number approach.  This should have better SELECT performance than row_number() at...

    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: (OLEDB)Alert Repository failed validation and returned error code 0xC020801C

    What I am seeing is it failed validation.  If I remember right, failed validation is thrown when metadata changed.  So you will need to edit the SSIS package to update...

    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: DBA - Checklist - TempDB Is Full

    Grow TEMPDB is another step where possible.  I try to ensure I have enough disk space to allow for autogrowth and I try to monitor for abnormal autogrowth on all...

    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: DB Naming

    For the database itself, our naming convention is to either name it after the application that uses it, or if multiple applications are using it, then the processes that 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.

  • Reply To: DB Naming

    "best" standards really depend on your environment and how often objects will change and how your team works.

    For example, I like naming my tables with the name of the entity...

    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 Perfomance Tuning / Build logic

    My approach would be to get this working in TSQL then put the TSQL into SSIS as your source.

    My approach (likely not the most efficient) would be to do 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: SQL query on existing query results

    Alternately, you could use windowing functions to sum the decals column like:

    SUM(decals) OVER (PARTITION BY a.FSTRJURISDICTION, d.fstrFormattedID, inv.flngNumItems, ar.fstrStreet, lic.fstrStatus, a.fstrFuelType)

    Not ideal as you will get 1...

    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: data flow Join - Inspect tab

    I do not know a lot about Azure data factory, but looking at the screenshots, it LOOKS to me like you are only pulling 1 column from ParquetSource.  When 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: Migrated DB to SQL Azure very slow

    One other thing to look at would be bandwidth.  On-Prem, you may have a Gb ethernet connection between you and the server.  In the cloud, you may have reduced bandwidth.

    As...

    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: Inserting a substring value into an already existing entry

    First, welcome to the SQL Server forum... next, you posted this in the wrong section.  You are not running SQL Server 2019, you are running MariaDB.

    I would recommend looking up...

    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: log file of primary replica database is full

    I think the easiest way to fix a "log file full" is to increase the size of the log file, but that assumes you have disk to do so.

    When 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: replace chain of function calls with better code

    To add to everyone else asking about the code, are you sure it is the function that "crashed the ETL - it now never finishes."?  I am wondering if MAYBE...

    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: Reading a json file

    I've not worked with JSON in SQL before, but my first debugging step would be to do a SELECT @json to make sure that you got the full data from...

    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: Memory issue

    The other thing to keep in mind is do you have anything else running on that server?  From a SQL Server standpoint, SSIS, SSAS, and SSRS all use their own...

    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: Limit Logins From Connecting To Database Engine

    If you don't need the end user connecting as themselves, you could have it connect as a specific user on the remote machine.  Downside is you may need to create...

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