MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
<cfloop index="record" list="#csvfile#" delimiters="#chr(10)##chr(13)#"> <cfset arr = ListToArray(record, ",", true)> <cfif arrayLen(arr) gte 5> <cfset b_id= arr > <cfset b_name= arr > <cfset b_date= arr > <cfset b_nav= arr > <cfset b_ytd= arr > <cfif NOT listFindNoCase("HEADER RECORD,Fund Number,TRAILER RECORD", trim(b_id))> <cfquery name="importcsv" datasource="dsn"> INSERT INTO table (FundNumber,Fund_Name,Date,nav_now,YTD) VALUES ('#b_id#','#b_name#','#b_date#','#b_nav#','#b_ytd#') </cfquery> </cfif> </cfif> </cfloop>
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Search Text in Views||2||28|
|How to sort columns on a continuous form populated by resetting the recordet, as when a recordset is returned from a stored procedure?||5||50|
|SQL - Subquery in WHERE section||4||34|
|Importing from CSV to SSMS||2||15|
Join the community of 500,000 technology professionals and ask your questions.