Forum Replies Created

Viewing 15 posts - 1 through 15 (of 282 total)

  • Reply To: Pivot Help

    Arrgh! At least in my browser the output from my post above isn't rendered correctly, even though I have used the Plain type format and it shows correctly when I...

  • Reply To: Pivot Help

    If you don't want to do a group by pivot, but simply want to place the price in a separate column, something simple like this might work for you:

  • This reply was modified 19 hours, 12 minutes ago by  kaj.
  • This reply was modified 18 hours, 53 minutes ago by  kaj.
  • This reply was modified 18 hours, 51 minutes ago by  kaj.
  • This reply was modified 18 hours, 46 minutes ago by  kaj.
  • This reply was modified 18 hours, 40 minutes ago by  kaj.
  • Reply To: Concatenating Multiple Row Values into a Single Comma-Separated List

    drew.allen wrote:

    Sukhdevsinh Dhummad wrote:

    Thanks for the critical feedback! I appreciate your point, but the intent of my script wasn't to compare performance between the two methods. It was focused on providing...

  • Reply To: Deduplicating rows by choosing the row with the shortest string

    Maybe something like this?

    declare @Teams table (
    TeamCode varchar(10),
    Description varchar(30)
    )

    INSERT INTO @Teams (TeamCode, Description)
    ...
  • Reply To: query help

    Bruin wrote:

    Wow that seems very fast...

    I'm not sure why some of this code exists and its logic wasn't up front when developed

    Much appreciated for your reply.

    Thanks, but... on second thought...

  • Reply To: query help

    ... also, why do you group by d.attValue when you have a MAX() on that column in the SELECT?

  • Reply To: query help

    I find it curious that you use so many self-joins only to do some sums. I would probably move the additional criteria from the WHERE section to CASE statements in...

  • Reply To: Error loading multiple CSV files in SSIS

    Might be a driver issue. Are you using an OLEDB driver or something else? 32 bit or 64 bit?

  • Reply To: How can I tell if an UPDATE command updated any rows?

    Michael J. Swart has a nice write-up about different kinds of upserts (and what's good and what's not):

    https://michaeljswart.com/2017/07/sql-server-upsert-patterns-and-antipatterns/

     

  • Reply To: service is not available

    Not sureI understand your question correctly.

    You get the database connect error when you try to call a report through Report Manager?

    The first thing that comes to my mind is that...

  • Reply To: way to check email addresses

    A different T-SQL function to check for valid email format is shown here:

    https://www.mssqltips.com/sqlservertip/6519/valid-email-address-check-with-tsql/

    I have also found that a simple select filter like

    WHERE EmailAddress LIKE '%_@_%_.__%';

    while not perfect, will...

  • Reply To: running in a circle looking for ibm db2 connector

    This old web page shows how to set up a linked server to an IBM i system (the page makes references to SQL Server 2000 and SQL Server 2003 which...

  • Reply To: running in a circle looking for ibm db2 connector

    Looking at the page you linked to, it looks like the driver is probably optimized for accessing a DB2 database for the Windows/Linux/Unix platforms (https://www.ibm.com/docs/en/db2/10.5?topic=overviews-db2-database-linux-unix-windows).

    The driver can be...

  • Reply To: running in a circle looking for ibm db2 connector

    If you are connected to what was formerly known as an AS/400, when it was sold as an integrated system (for more than 10 years it has been sold as...

    • This reply was modified 1 month, 2 weeks ago by  kaj.
  • Reply To: SSRS Report Server can't use IIS to make available from local host

    Sorry, it's not clear to me what you want to achieve. You write very well, but somehow still fail to describe what you want in a way that I can...

  • Viewing 15 posts - 1 through 15 (of 282 total)