Forum Replies Created

Viewing 15 posts - 2,341 through 2,355 (of 2,497 total)

  • RE: Calculated Alias T-SQL with CASE

    You can define and use the alias [Set Disc] in the same statement using the following model SQL:

    SELECT

    [Set Disc] * 2 AS [New Disc]

    FROM

    (SELECT Value * 0.10 AS [Set Disc]...

    Original author: https://github.com/SQL-FineBuild/Common/wiki/ 1-click install and best practice configuration of SQL Server 2019, 2017 2016, 2014, 2012, 2008 R2, 2008 and 2005.

    When I give food to the poor they call me a saint. When I ask why they are poor they call me a communist - Archbishop Hélder Câmara

  • RE: Attach DB - Network Device Not Supported?

    If you want a site that does not give the very wise warning from MS, then check http://www.sql-server-performance.com/rd_traceflags.asp 

    This just tells you what various trace flags do, but it is up...

    Original author: https://github.com/SQL-FineBuild/Common/wiki/ 1-click install and best practice configuration of SQL Server 2019, 2017 2016, 2014, 2012, 2008 R2, 2008 and 2005.

    When I give food to the poor they call me a saint. When I ask why they are poor they call me a communist - Archbishop Hélder Câmara

  • RE: Using DTS to FTP data to mainframe

    If Unix System Services (USS) are enabled on the mainframe, then FTP is a recognised mainframe command.  BTW, it is all but impossible to run a mainframe nowadays without having...

    Original author: https://github.com/SQL-FineBuild/Common/wiki/ 1-click install and best practice configuration of SQL Server 2019, 2017 2016, 2014, 2012, 2008 R2, 2008 and 2005.

    When I give food to the poor they call me a saint. When I ask why they are poor they call me a communist - Archbishop Hélder Câmara

  • RE: BUILTIN\administrators

    Our standard is to have a windows domain group holding the DBA accounts, and give this group Sysadmin authority in SQL.  Having done that we delete the BUILTIN/Administrators entry.  We...

    Original author: https://github.com/SQL-FineBuild/Common/wiki/ 1-click install and best practice configuration of SQL Server 2019, 2017 2016, 2014, 2012, 2008 R2, 2008 and 2005.

    When I give food to the poor they call me a saint. When I ask why they are poor they call me a communist - Archbishop Hélder Câmara

  • RE: BCP and xp_cmdshell security concerns ...

    In my opinion, SQL batch job security is a total mess. 

    If you do not have the SQL Agent proxy account enabled, then only members of sysadmin can run xp_cmdshell. ...

    Original author: https://github.com/SQL-FineBuild/Common/wiki/ 1-click install and best practice configuration of SQL Server 2019, 2017 2016, 2014, 2012, 2008 R2, 2008 and 2005.

    When I give food to the poor they call me a saint. When I ask why they are poor they call me a communist - Archbishop Hélder Câmara

  • RE: Effect of moving system databases

    I have moved system databases, but not where replication is involved.  However, I do not see how replication will care where the database files are physically located.  One of the...

    Original author: https://github.com/SQL-FineBuild/Common/wiki/ 1-click install and best practice configuration of SQL Server 2019, 2017 2016, 2014, 2012, 2008 R2, 2008 and 2005.

    When I give food to the poor they call me a saint. When I ask why they are poor they call me a communist - Archbishop Hélder Câmara

  • RE: sql server 2k on win2000 in development and sql 2K on win 2003 in production?

    There were some MDAC issues, as W2003 MDAC is at a higher level than we were migrating from.  There were also some problems with a few apps moving from VB6...

    Original author: https://github.com/SQL-FineBuild/Common/wiki/ 1-click install and best practice configuration of SQL Server 2019, 2017 2016, 2014, 2012, 2008 R2, 2008 and 2005.

    When I give food to the poor they call me a saint. When I ask why they are poor they call me a communist - Archbishop Hélder Câmara

  • RE: Need help with tsql syntax

    In the statement below from Aaron you should use UNION ALL, not UNION.  A UNION on its own ALWAYS forces a sort to remove duplicates regardless of if duplicates actually exist.  A...

    Original author: https://github.com/SQL-FineBuild/Common/wiki/ 1-click install and best practice configuration of SQL Server 2019, 2017 2016, 2014, 2012, 2008 R2, 2008 and 2005.

    When I give food to the poor they call me a saint. When I ask why they are poor they call me a communist - Archbishop Hélder Câmara

  • RE: sql server 2k on win2000 in development and sql 2K on win 2003 in production?

    If you upgrade your production environment to W2003 before you upgrade Dev, you are asking for downtime.

    We had some application coding issues when we upgraded, but these got found and...

    Original author: https://github.com/SQL-FineBuild/Common/wiki/ 1-click install and best practice configuration of SQL Server 2019, 2017 2016, 2014, 2012, 2008 R2, 2008 and 2005.

    When I give food to the poor they call me a saint. When I ask why they are poor they call me a communist - Archbishop Hélder Câmara

  • RE: Best Database to use with SAP

    "And honestly, I think an online community can't help you much with this question. That depends on too many factors in your company. And almost always it is a rather...

    Original author: https://github.com/SQL-FineBuild/Common/wiki/ 1-click install and best practice configuration of SQL Server 2019, 2017 2016, 2014, 2012, 2008 R2, 2008 and 2005.

    When I give food to the poor they call me a saint. When I ask why they are poor they call me a communist - Archbishop Hélder Câmara

  • RE: BLOBs in Database or File System

    My preference is to keep everything under transactional control.  This normally means everything in a database, but also allows for MQ (etc) messaging.

    If you have mixed flat file and database...

    Original author: https://github.com/SQL-FineBuild/Common/wiki/ 1-click install and best practice configuration of SQL Server 2019, 2017 2016, 2014, 2012, 2008 R2, 2008 and 2005.

    When I give food to the poor they call me a saint. When I ask why they are poor they call me a communist - Archbishop Hélder Câmara

  • RE: Best Database to use with SAP

    What DBMSs do you already have in-house?  If you only have SQL Server, go with that.  The support costs of bringing in anything else will outweigh any other advantages, unless...

    Original author: https://github.com/SQL-FineBuild/Common/wiki/ 1-click install and best practice configuration of SQL Server 2019, 2017 2016, 2014, 2012, 2008 R2, 2008 and 2005.

    When I give food to the poor they call me a saint. When I ask why they are poor they call me a communist - Archbishop Hélder Câmara

  • RE: Subquery Result

    The following partial example only has one pass through your CRM_CFM table, which should perform faster...

    SELECT

     CASE

       WHEN CM_SHURA = 5 THEN RIGHT(CM_SADE,5) 

       else 0 end as amount1,

     CASE

       WHEN CM_SHURA = 1 THEN...

    Original author: https://github.com/SQL-FineBuild/Common/wiki/ 1-click install and best practice configuration of SQL Server 2019, 2017 2016, 2014, 2012, 2008 R2, 2008 and 2005.

    When I give food to the poor they call me a saint. When I ask why they are poor they call me a communist - Archbishop Hélder Câmara

  • RE: PLEASE HELP NEEDED? - with a select avg

    I think this can be done in 1 SQL statement.  I suggest you build the statement bit by bit, until you have what you need.

    The first stage is probably to...

    Original author: https://github.com/SQL-FineBuild/Common/wiki/ 1-click install and best practice configuration of SQL Server 2019, 2017 2016, 2014, 2012, 2008 R2, 2008 and 2005.

    When I give food to the poor they call me a saint. When I ask why they are poor they call me a communist - Archbishop Hélder Câmara

  • RE: Cross tab or CASE ?

    It is difficult to tell exactly what you want.  I think you should be able to get what you want in one SQL statement. 

    My suggestion is to build your...

    Original author: https://github.com/SQL-FineBuild/Common/wiki/ 1-click install and best practice configuration of SQL Server 2019, 2017 2016, 2014, 2012, 2008 R2, 2008 and 2005.

    When I give food to the poor they call me a saint. When I ask why they are poor they call me a communist - Archbishop Hélder Câmara

Viewing 15 posts - 2,341 through 2,355 (of 2,497 total)