Question : Create Temp Table in Microsoft SQL using CSV file

Hi all,

I have a CSV file that will be created daily in the same format.  I want my app to create a temp table every time the application opens from this file.  Where do I start?
1:
2:
Format of CSV
*10001,0,MARK & TREV SHOW,901 S BRISTOL SP B 411,,SANTA ANA,NC,92703,,828,6678239,,0,0,,72.15,N,1

Answer : Create Temp Table in Microsoft SQL using CSV file

Since Q1_SUM_OF_BIS is derived in the column list, I'm not aware of any capability to use it in the same column list.

Assuming that you want this in a single statement/query and you can't create VIEWs, you might need to use a CTE to generate your base level derived columns; then refer to those in the final SELECT column list.

Tom
Random Solutions  
 
programming4us programming4us