Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

How to create a select statement in a Table-adapter using Where Like

$
0
0

Hello

I would like to create a Select statement unsing the where like but i am just no getting the syntax right this is what i have

SELECT        Codigo, Descripcion, IdCategoria, FechaVencimiento, IdMarca, IdTipo, IdUsuario, FechaEditado
FROM            dbo.TareaArticulos 
where          Codigo   Like '%  + @ Codigo  + %'

Basically what i want is that when i sand the parameter codigo it does not have to be a exact match it will still bring it up.

so if i send in Codigo Xm it will bring up XM100.

Any help in this will be appreciated


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>