Zum Hauptinhalt gehen

Search Tables

Kommentare

2 Kommentare

  • Ryan Cooney

    If there are no errors in the logs my first guess would be that there is an issue with the "LIKE" part of the query. Usually with a LIKE statement you'll need to add wildcards. You also may need to make the query case insensitive.

    Can you try changing the query to be an exact match and test it to see if we can get any results?

    SELECT GIS_ID, Owner1 FROM DOSSDE.GISDA.ROLL_MAIS WHERE Owner1 = @Owner

    If that doesn't work try something that will always return results like:

    SELECT TOP(10)  GIS_ID, Owner1 FROM DOSSDE.GISDA.ROLL_MAIS WHERE 1=1 OR  Owner1 = @Owner

    --Ryan

    0
  • Dan Griffin

    This worked:  WHERE OWNER1 LIKE '%' + @Owner + '%'

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.