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

  • Home
  • SEARCH
  • 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 7513383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:10:07+00:00 2026-05-30T00:10:07+00:00

I was asked by a local school to write a database export utility to

  • 0

I was asked by a local school to write a database export utility to export data from a popular school management program to one that the government requires. The reason being that the government only accepts quarterly reports from its own program.

After ALLOT of hours spent just figuring out the relationships in the poorly written government database I finally compiled my SQL statement requirements but I have a problem.

Due to the poor design and use of data types and columns in the program I am having trouble dynamically putting together the SQL insert statements. Is there a way to create a single SQL statement with the data (formatted correctly) without specifying the data type and insert it into the table?
To give you an Idea there are 192 tables with at least 20 columns each.

Update: This is how my program currently works.
Collect data->Compare required column data type in excel sheet->Format data->Generate SQL Statement->Execute statement

  • 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-05-30T00:10:09+00:00Added an answer on May 30, 2026 at 12:10 am

    you can quote everything so it will be passed as string. Of course, the data types must mach:

    create table testDataType(
    myInt int,
    myDateTime datetime,
    myfloat numeric(5,2))
    
    
    insert into testDataType values ('1','01/01/2012','5.3')
    (1 row(s) affected)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There has been asked that question already. The answer was Stack space for local
I was asked to write a database and it's GUI frontend for some non-profit
I helped develop a website for a local non-profit. I have asked for feedback
I asked a couple of coworkers about AnkhSVN and neither one of them was
I asked here about a protocol that I was asked to implement, and how
I know this question has been asked a million times in one form or
A new client has recently asked me to develop a Windows service that will
I found the same question asked but it was answered insufficiently from my n00b
it states in jqgrid documentation that the code below should allow local sorting with
After tutoring a few students at a local college, I was asked when is

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.