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

string split

$
0
0

In my table EmpName column has some names .I want  to  display  both column values  but im not able to display both  in gridview

Miranda Breaed

Miranda

in the below query  .im able to pass either one of above names but both names are related to same person. How can I get both names  with firstname and lastname   or firstname .In the Emp table I don't have Firstname ,LastName columns ,I have only EmpName .

SqlCommand cmd = new SqlCommand("select distinct EmpID,EmpName,StartDate,EndDate,

Total from Emp where ClientID = @ClientID and EmpName=@EmpName order

by EmpID desc ", sqlConn);



Viewing all articles
Browse latest Browse all 7129

Trending Articles



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