Importing Comma Delimited File

I've been asked to develop a semi-automated type situation where we have a
database table (sql server) and periodically, there will be a comma
delimited file from which we need to import the data, replacing the old.

I naurally know that we can use [truncate tablename] to kill the other data,
but does anyone have any examples of importing a comma delimited file into
SQL Server with ASP?

View Replies


ADVERTISEMENT

Create Comma-delimited File From .asp Recordset

Is it possible to have a search page that queries a sql database and then writes the results to a comma-delimited text file instead of displaying the results.

I have no problem creating the search page and displaying the results I just don't know how to create the comma-delimited text file from the recordset results.

View Replies View Related

Form To Comma Delimited Text File

how to create a comma delimited text file from an asp form. Assume my fields are: Name, email, phone number.

View Replies View Related

Populate A Select List From A Comma Delimited Txt File

I would like to use ASP to populate a select list from a comma delimited txt file.....

View Replies View Related

Generate CSV Or Comma Delimited

What's the easiest way to generate CSV or a comma delimited file from an ASP
recordset? I've seen a few searching the internet and they appear to be
overkill or out of date.

View Replies View Related

Comma Delimited Files

Whenever I import a comma delimited file the field lengths are always 255. I tried an import specification in my code but they were stll 255 in length.
I imported about 156 fields and about 140 came in at 255. Not gonna work.

View Replies View Related

Comma Delimited Array

i am trying to run a asp sql query containging many tables. the main table though is a simple ID based table contains all ids from the other tables. Code:

View Replies View Related

Comma Delimited List

How can I populate the results of a recordset into a comma delimited?

The recordset is only returning a sequence of ID's (one column - one dimension). I was trying the getRows and getString method. If the result was only one record it was okay, but for more than one result I was getting an unhandled data type error.

I would just like to place the values from the recordset into a comma-delimited list and then pass that into a javascript function?

View Replies View Related

ASP: Trying To Manipulate A Comma Delimited String

I have written an ASP script that collects information from a form. The info is stored in one variable name. When I request the info, it is returned as a comma delimited string. How can I manipulate this string so the data can be stored in a database? I appreciate your assistance.

View Replies View Related

Comma Delimited List & Lookup Table

I have a sql server 2000 table with a comma delimited list of ids. there is a seperate lookup table with a desc for each id.

I need for this data to be retuned in the same order in which the data was entered into the database. right now it is returning ordered by the id from the lutable.

View Replies View Related

Importing .CSV File

I'm trying to import my outlook contacts into my access database using a .csv file. i want to be able to browse for the .csv file and hit an upload button on my site and be able to see them all.

View Replies View Related

Error When Importing Csv File

I have the following code which imports a csv file into the database. but when i run the code i get this error message:

Microsoft OLE DB Provider for ODBC Drivers (0x80040E07)
[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.

BUT it's imported all the data Code:

View Replies View Related

Read A Tab Delimited File In Asp

I need to be able to read a tab delimited text file with an asp page so that I can stuff the fields into a sql table.I really don't know how you can do that, I checked the books I have and have been running around the internet trying to find the answer when I found this site.I cannot use a bulk insert statement because I don't have that level of access to the sql server. and I was assured that "BCP is indeed a command-line only utility and cannot be launched from ASP. You could parse the text file with ASP and generate INSERT statements that you then execute against the database. Routines for parsing tab-delimited files can be had by searching for them on google quite easily." by the system administrator

View Replies View Related

Reading Tab Delimited File Into An Array

I'm trying to read a tab-delimited file into an array so I can pick out different fields for a report. I keep getting a "Type Mismatch" error that I don't understand.

sReceiveFile = "receipt.txt"
sDataFile = sReceiveFolder & sReceiveFile
sDelimiter = "Chr(9)"

Dim objFileSystem, objFile
Set objFileSystem= CreateObject("Scripting.FileSystemObject")

Set objFile = objFileSystem.OpenTextFile(sDataFile,1)
sReadLine = objFile.readline

Do While objFile.AtEndOfStream <> True
Response.Write "<UL>" & Chr(10)
'Response.Write objFile.ReadLine & "<br>"
sSplit = split(objFile.Readline,"Chr(9)")
Response.write sSplit ' I want to see the contents and this line is giving me the error
Response.Write "</UL>" & Chr(10)
Loop
objFile.Close

%>

View Replies View Related

Read Tab Delimited File Into An Array With ASP

I need to read a tab delimted file into an array with ASP. Should be
easy enough, I know it is in Perl and PHP. Can someone show me how
that's done or post a link to an example.

This is what I'm trying to do in perl:

#!/usr/bin/perl -w

my $file = "myfile.txt";
open(FILE, $file);
while(<FILE>){
my ($f1, $f2, $f3) = split(' ', $_); # or @array = split(' ', $_)
print "F1:$f1 F2:$f2 F3:$f3
";
}
close(FILE);

View Replies View Related

Read Tab Delimited Text File

Anyone know the best way of Read tab delimited text file, its old but I have to use it, I only know how to read csv.

View Replies View Related

Importing A File And Validating The File

How would I import a file thru an asp page and then validate the fields in
that file - the file would be comma separated file (CSV or Txt extension).

View Replies View Related

Regular Expression :: Split By Comma (CSV File)

I have a sting that have to be split by comma (cvs file)

Let me give you an example:

this is my string:
asd,asd,asd,"asd,asd,asd",asd,asd

I have to split this string but the string that is in quote I dont whant to be splited

result have to be like that:

Array(
[0]=>asd
[1]=>asd
[2]=>asd
[3]=>"asd,asd,asd"
[4]=>asd
[5]=>asd
)

View Replies View Related

Write Information Form A Comma Separated Text File Onto An ASP Pag

I have a text file that has two lines in it, the first line gives item
labels, my second line gives values for those labels. I would like to use
ASP to present this data on a web page. I also want the page to reload every
10 seconds so that any updates to the text file would be relfected on the web
page.

View Replies View Related

Importing From Csv

I'm importing from a csv file but got the following error :

If theres a newline field in one of the columns (i.e with a text field) and I want to read that line from code it see everything after the new line as a new line.

If I open the file in notepadeverything's on one line as it should be, but somehow the importing mess it up.

View Replies View Related

Importing From SQL To ASP

I am having a problem displaying data into an ASP Listbox , when I import data in random named field names say 1, 3, 5 from SQL
empty records of hypthytical 2,4 are shown inti ASP listbox

View Replies View Related

Importing Csv Into Access Db Via Asp

I've got a csv file which I will need to import into an access db via asp.
The csv file will be imported every day of each month so there will be
duplicates which will not need to be imported.

View Replies View Related

Importing .xls To MSSqlserver

Can anyone tell me how to exactly import excel sheets into sqlserver from the dts?

View Replies View Related

Importing Data

Is there a way of importing information from an Excel document or a comma delimited file to a database using ASP.

Has anyone tried doing this before? I'd love to know how you did it. At the moment, I'm thinking of uploading a file, opening it with FSO then creating an array (or something similar) from the content of the file. If there's an easier way of doing this (with components etc) please let me know.

View Replies View Related

Importing Excel Cells In ASP

I've seen lots of posts on this and other boards, but nothing seems to work for me. I need to import data from an Excel spreadsheet using ASP. None of the ranges in the spreadsheet are named. I'm using this code:Code:

<%
Set ExcelConn = Server.CreateObject("ADODB.Connection")
Set ExcelRS = Server.CreateObject("ADODB.Recordset")
ExcelConn.Provider = "Microsoft.Jet.OLEDB.4.0"
ExcelConn.Properties("Extended Properties").Value = "Excel 8.0"
ExcelConn.Open "c:inetpubwwwrootaspcalendar est.xls"

set ExcelRS = ExcelConn.Execute ("SELECT * FROM [Sheet1$]")

Response.Write(ExcelRS($A$1))

%>
I've tried every variation on "ExcelRS($A$1)" that I can think of - I've seen "ExcelRS(1,1)" used, but that doesn't work... What is the syntax for accessing Excel data by cell coordinates?

View Replies View Related

Importing XML Into Access 2000

I have an XML file that gets updated every 4 hours on a web server. I can check the XML modification time in ASP and compare to the databse. If it is newer, I need some ASP code to then import the XML into Access. Been trawling the net for an answer for a while .

View Replies View Related

Importing ACT! And Outlook Addresses

We need to import the contact details from Act! and Outlook/Outlook Express
(Both) to a website (hosted database MSSQL or Access). Is that possible in
any ASP Scripting?

View Replies View Related

Problem With Excel Importing

I am trying to get the all data from my excel document. I almost can.

But there are some colums that I can't get!P1aP2b

because there is no column at the start of them!

the all I can get with asp is just data not data name (field name) Code:

View Replies View Related

Importing Files To Database

I have intermediate experience with asp, and sql. I am stumped on how to properly do a project, and hoping that one of you can point me in the right direction instead of playing the trial/error game for 2 weeks!!

Basically, I have a program that exports information into a html file for viewing of results. The file contains event information, user information, and results of each individual user along with statistics of the event. I want to take this generated file, and import it directly into a sql database (point and click upload of sorts to be user friendly) for further data mining. Code:

View Replies View Related

Importing ASP Page Into Excel

I was having a go at importing a page written using HTML embedded with some ASP and SQL commands into an Excel sheet.

Now I have tried using the command below and no luck. After doing some Google searching I found some people suggesting removing HTML and BODY tags which I did but no luck. Tried using HTML and BODY tags and still no luck and all of a sudden I hit a brick wall. Code:

View Replies View Related

Tab Delimited Files

can anyone put me on the right track.i have a comma delimited file and i need to search through this file and locate where acctsessionid does not have 2 matching records and display them on an asp page.

View Replies View Related

Tab Delimited Results

need to query a database and then get the results in a tab delimited file.currently am writing record by record in the file using the FSO,but just wanted to check can we directly get the results in the TAB delimited format and save to a file on the server.

View Replies View Related

Hyper-efficient Text Importing

I am working on a project that involves importing IIS Log files into a SQL
Server database (and these logfiles are big --> Some up to 2GB in size).

Up until now I thought that DTS or the BULK INSERT command was the fastest
method out there, but still proves to be long (taking an average of 45mns to
an hour to process each log file).

Because I have to import the log files from three web heads in my cluster
(therefore 2GB log files per server times three servers), this really throws
off the concept of "real time" or near "real time" reporting.

So that begs the question. WHAT IS THE MOST EFFICIENT, AND QUICKEST
TEXT-FILE TO SQL SERVER IMPORTING TOOL, METHODOLOGY, SAMPLE CODE, WHATEVER,
OUT THERE??? Code:

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved