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

How to call dynamic sql table into WEB API

$
0
0

HI Team

Greenting!

I have an SQL table where columns are added  dynamically by a job which runs daily once. Now I need to call this dynamic table with data through stored procedure using GET method in WEB api and Show them in Web page using HTML, Boot Starp and JSON.

I'm using ADO .net in my WEB API. Till now i've alll fixed columns so i created models with attributes and returning them. now I'm not getting how to write a controller and call the SP using ADO .net in WEB API. Please help me. Here is how my table looks

 IDEmailaddress1 address2CityCityEnglish CityNative District1 Validated DateVerified DateJoinType
2213456testemail@lsr.comStreet #123ssBostonEnglistYRR2/4/20192/4/2019test
2213457testemail@lsr.comStreet #123ssBostonEnglistYRR2/4/20192/4/2019test
2213458testemail@lsr.comStreet #123ssBostonEnglistYRR2/4/20192/4/2019test
1213456testemail@lsr.comStreet #123ssBostonEnglistYRR2/4/20192/4/2019test
2213454testemail@lsr.comStreet #123ssBostonEnglistYRR2/4/20192/4/2019test
2213451testemail@lsr.comStreet #123ssBostonEnglistYRR2/4/20192/4/2019test

AFter join type columns may increase tommarow. and the same table as above i need to show in Webpage, Please help me for this how to code in all 3 layers

Thanks

Sundari


Sundari



Viewing all articles
Browse latest Browse all 7129

Trending Articles



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