Quantcast
Channel: VBForums - Mobile Development
Viewing all articles
Browse latest Browse all 78

Get Row of Column By Value

$
0
0
Using the TSQL code doesn't work when I want to search a column with a value..

Code:

CREATE PROCEDURE [dbo].[SearchPeople]
        @FieldName        NVARCHAR(50), --Column Name
        @FieldValue        NVARCHAR(50)  --Value To Search
AS
        SELECT *                                                                 
        FROM [dbo].[People]
        WHERE @FieldName = @FieldValue
GO


Viewing all articles
Browse latest Browse all 78

Trending Articles



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