i create one function string split. i am calling that function in below select query.
My function name is dbo.StringSplits
SELECT [dbo.StringSplits](A.farm_detailsdata),A.farmer_id,A.farmer_season,A.farm_visitno
FROM dbo.tbl_farmer_farmdetails A
INNER JOIN dbo.tbl_farmerregistration B ON B.farmerctscode = A.farmer_id
WHERE B.farmerseason = '2018' When i execute the above query shows error as follows
Incorrect syntax near 'A'.
what is mistake in my above query. please help me.

Nitin SontakkeRank #264 · 9.6K reputationPosted May 21, 2018, 8:54 PM EDT
Posted May 21, 2018, 9:36 PM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted May 21, 2018, 9:44 PM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted May 21, 2018, 9:46 PM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted May 21, 2018, 10:02 PM EDT
Rajeev PunhaniRank #551 · 4.4K reputationPosted May 22, 2018, 1:44 AM EDT
Hi Narasiman,
What you are trying to achieve is that you have a tabled value function that return multiple rows when you call a function that splits column values seperated by a seperator.
Posted May 22, 2018, 1:56 AM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted May 22, 2018, 2:05 AM EDT
Posted May 22, 2018, 2:24 AM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted May 22, 2018, 2:28 AM EDT
Posted May 22, 2018, 2:44 AM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted May 22, 2018, 3:30 AM EDT
Rajeev PunhaniRank #551 · 4.4K reputationPosted May 22, 2018, 8:23 AM EDT
Rajeev PunhaniRank #551 · 4.4K reputationPosted May 21, 2018, 9:13 PM EDT
Posted May 21, 2018, 9:55 PM EDT