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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:06:45+00:00 2026-05-11T04:06:45+00:00

We are trying to build a Help Desk ticketing system just for intranet. Deciding

  • 0

We are trying to build a Help Desk ticketing system just for intranet. Deciding upon the ASP .NET (C#) with Visual Studio 2008 Express (think we have a full version floating around if we need it). Nothing fancy, couple of pages grabbing NTLM information, system information and storing it along with their problem in a database. Goal is to make it simple, but instead of using our SQL Server 2000 back end, the admin wants me to use MS Access. I have the GridView and connections running smooth. Can pull select queries until my heart is content. However, tying in a couple variables with a text box on a submit button into say an INSERT statement.. well I don’t even know where to begin with MS Access. Every internet example is in VB .NET plus seems to be hand coding what Visual Studio has already done for me in a few clicks.

Is MS Access going to be too hard for all we want to do? If not, where do we begin to simply submit this data into the tables?

Edit: After a bunch of playing around we have the OleDB working. It’s not pretty, yes SQL Server would be awesome but, sometimes you just have to play ball.

Edit: Anyone looking for an actual coded answer, here you are. There has got to be others out there in the same boat.

    string userIP = Request.UserHostAddress.ToString();     string userDNS = Request.UserHostName.ToString();     string duser = Request.ServerVariables['LOGON_USER'];  //NTLM Domain\Username     string computer = System.Environment.MachineName.ToString(); //Computer Name     string connectionString = 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\helpdesk.MDB;';      OleDbConnection conn = new OleDbConnection(connectionString);     conn.Open();     OleDbCommand cmd = new OleDbCommand();     cmd.Connection = conn;     cmd.CommandText = 'INSERT INTO ticketing ([user], [comp], [issue]) VALUES (@duser, @computer, @col3)';     cmd.Parameters.Add('@duser', OleDbType.VarChar).Value = duser;     cmd.Parameters.Add('@computer', OleDbType.VarChar).Value = computer;     cmd.Parameters.Add('@col3', OleDbType.LongVarChar).Value = TextBox1.Text;     cmd.ExecuteNonQuery();     conn.Close(); 
  • 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. 2026-05-11T04:06:45+00:00Added an answer on May 11, 2026 at 4:06 am

    I also suggest using SQL Server, but considering your problem: What is your problem writing an INSERT query for Access ? You should make use of the classes that you’ll find in the System.Data.OleDb namespace:

    • OleDbConnection
    • OleDbCommand

    Quick’n dirty code (not compiled whatsoever):

    OleDbConnection conn = new OleDbConnection (connectionString);  OleDbCommand command = new OleDbCommand(); command.Connection = conn; command.CommandText= 'INSERT INTO myTable (col1, col2) VALUES (@p_col1, @p_col2)'; command.Parameters.Add ('@p_col1', OleDbType.String).Value = textBox1.Text; ... command.ExecuteNonQUery(); 

    There are some caveats with the OleDb classes however (like adding the Parameters to the collection in the order that they occur in your SQL statement, for instance).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build a simple help system to my software. The help system
I am trying to build the documentation for my application using Sandcastle Help File
I am trying to build the documentation for my application using Sandcastle Help File
I'm trying to build a utility method using Linq that will help me with
I am trying to build an application to help our marketing team manage a
I am trying to build a help message output for my custom app like
Hi thank you in advance for any help, I'm trying to build a simple
Please help! I am trying to build a parser to parse SSDP messages as
Trying to build a GUI application in Java/Swing. I'm mainly used to painting GUIs
I trying to build and compile my xcodeproj in command line and it 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.