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 6666755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:51:42+00:00 2026-05-26T02:51:42+00:00

Basically, I am the new IT type guy, old guy left a right mess

  • 0

Basically, I am the new IT type guy, old guy left a right mess for me! We have a MS-Access DB which stores the answers to an online questionnaire, this particular DB has about 45,000 records and each questionnaire has 220 questions. The old guy, in his wisdom decided to store the answers to the questionnaire questions as text even though the answers are 0-5 integers!

Anyway, we now need to add a load of new questions to the questionnaire taking it upto 240 questions. The 255 field limit for access and the 30ish columns of biographical data also stored in this database means that i need to split the DB.

So, I have managed to get all the bioinfo quite happily into a new table with:

SELECT id,[all bio column names] INTO resultsBioData FROM results;

this didn’t cause to much of a problem as i am not casting anything, but for the question data i want to convert it all to integers, at the moment I have:

SELECT id,CInt(q1) AS nq1.......CInt(q220) AS nq220 INTO resultsItemData FROM results;

This seems to work fine for about 400 records but then just stops, I thought it may be because it hit something it cant convert to a integer to start with, so i wrote a little java program that deleted any record where any of ther 220 answers wasnt 0,1,2,3,4 or 5 and it still gives up around 400 (never the same record though!)

Anyone got any ideas? I am doing this on my test system at the moment and would really like something robust before i do it to our live system!

Sorry for the long winded question, but its doing my head in!

  • 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-26T02:51:43+00:00Added an answer on May 26, 2026 at 2:51 am

    I’m unsure whether you’re talking about doing the data transformation in Access or SQL Server. Either way, since you’re redesigning the schema, now is the time to consider whether you really want resultsItemData table to include 200+ fields, from nq1 through nq220 (or ultimately nq240). And any future question additions would require changing the table structure again.

    The rule of thumb is “columns are expensive; rows are cheap”. That applies whether the table is in Access or SQL Server.

    Consider one row per id/question combination.

    id q_number answer
     1      nq1      3
     1      nq2      1
    

    I don’t understand why your current approach crashes at 400 rows. I wouldn’t even worry about that, though, until you are sure you have the optimal table design.

    Edit: Since you’re stuck with the approach you described, I wonder if it might work with an “append” query instead of a “make table” query. Create resultsItemData table structure and append to it with a query which transforms the qx values to numeric.

    INSERT INTO resultsItemData (id, nq1, nq2, ... nq220)
    SELECT id, CInt(q1), CInt(q2), ... CInt(q220) FROM results;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am basically a windows developer and very new to Sharepoint. I have Designed
I basically have a server set up and I'm accepting new clients(UNIX) and i'm
Basically, I have a gridview that is opened in a new window from the
I am trying to design a new application which basically aims at providing biometric
I'm sort of new to jquery and I have a toggle type jquery piece
I want to declare a list containing types basically: List<Type> types = new List<Type>()
I have a LINQ Query that creates a new type that contains a days
Basically, I have a collection of objects each implement a member of Type IValueCollection
I'm basically brand new to LINQ. I've looked around a lot on here and
Basically, my client wants to make new visitors enter the site I'm working on

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.