Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8688919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:30:12+00:00 2026-06-12T23:30:12+00:00

I have a vbscript which takes a csv file and uploads its content to

  • 0

I have a vbscript which takes a csv file and uploads its content to the database. I need to include that script in an ASP page. the script should be present in the asp page itself and not placed externally, ie, i dont want the asp page to set a reference to the externally located dll but include the code in the asp itself. can it be done?

this is the vbscript I have.

http://pastebin.com/vuzUhTDM

Any help will be genuinely appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T23:30:13+00:00Added an answer on June 12, 2026 at 11:30 pm

    Most of the vb6 code can just be reused in classic asp vbscript. You’ll have to declare your variables a bit different as vbscript only has Variants..

    Thus for the recordset declaration, instead of this:

    Dim rs1 As New ADODB.Recordset, rs2 As New ADODB.Recordset
    Dim rst As New ADODB.Recordset
    

    You’ll have to do this

    Dim rs1 , rs2, rst 
    Set rs1=Server.CreateObject("ADODB.recordset")
    Set rs2=Server.CreateObject("ADODB.recordset")
    Set rst=Server.CreateObject("ADODB.recordset")
    

    [I didn’t see any connection object in your code example.. just the use of db.ConnectionString.. Make sure you create the connection object db also with the same logic.]

    For the simple variables you also just create a high-level variant-type and the subtypes (string, long, integer…) will be assigned at runtime by assigning values to the variables.
    Thus, instead of this:

    Dim eno As Long
    Dim fname As String
    Dim fname1 As String
    Dim fno1 As Integer
    Dim fno As Integer
    Dim mstr As String
    Dim flds() As String
    Dim valid_data As Boolean
    Dim errstr As String
    Dim errcnt As Integer
    Dim pickupid As Long
    Dim cancel_rec As String
    Dim bkno As Double
    Dim sReceipt_no As Long
    

    You can do this:

    Dim eno , fname , fname1 , fno1 , fno , mstr, valid_data, errstr, errcnt, pickupid, cancel_rec, bkno, sReceipt_no 
    Dim flds()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a script which takes user input, performs some operations on that input
We have a legacy ASP page that writes content to an excel file by
I have VB Script which is connected with the my database (SQL Server 2008),
I have a vbscript file that I want to run in my vb.net application.
I have a script that runs a stored procedure in my SQL server database,
We have a simple file browser on our intranet, built using ASP/vbscript. The files
In my asp.net page I have a VBScript method which is doing some tasks
I have a classic ASP/VBScript application that needs to call methods in a Java
I have a VBScript file which makes a GET request to a URL: Dim
Say I have a batch file where in I call a VBScript(which returns the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.