Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Fred48

    Inserting large amount of records

    Mark, Thanks for your reply. I did some research and it is possible I can use the SqlBulkCpy but im my case with Column Headings. I do have a question, can I use this command to load the date to a Microsoft Access data base? Thanks again, Fred
  2. Fred48

    Inserting large amount of records

    Hi, We have a process that loads a Microsoft Access database. The software is written in VB 2010 32-bit and using OLEdB. The software runs on Windowds XP and Windows 7. My concern is the amount of time to load the database. There are seven tables and the amount of records inserted depends on...
  3. Fred48

    get message 'Cannot create ActiveX component'

    Hi, I am converting an old Installshield project and removing old ActiveX or OCX DLLs. When I install on a PC and test I get the message, "Cannot create ActiveX component". How can I found out what component it is referring to. I can't install VB on the PC so that opion is out! Any ideas...
  4. Fred48

    MS Jet Engine - End of life

    Hi, I am trying to find out if there is an end of life support for the MS Jet Engine. It is my understanding with the release of 2007 Microsoft Office, Access uses a new file type. We are trying to figure out if we need a conversion program to convert our existing db's or we can...
  5. Fred48

    How to check in Access table is open

    Hi, thanks for all the comments. I changed the code around and it solved my problem.
  6. Fred48

    How to check if Access table is open

    I am running into a problem when trying to DROP a table. I get a RTE saying the table is being used by another user or another process. The process is to print an Access table it works the first time but if you try to print immediately print the table again is when the RTE occurs. When the...
  7. Fred48

    How to check in Access table is open

    I am running into a problem when trying to DROP a table. I get a RTE saying the table is being used by another user or another process. The process is to print an Access table it works the first time but if you try to print immediately print the table again is when the RTE occurs. When the...
  8. Fred48

    Problems with adding new rows

    Hi, Thanks for your help, the process works great. I am sorry for any inconivenace I may have given you. Fred
  9. Fred48

    Problems with adding new rows

    Hi, I am sorry about the mix up on the code, trying to do things to quick. Here is the procedure of code with your last suggestion: Private Sub btnAddRow_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddRow.Click Dim StartTime As DateTime...
  10. Fred48

    Problems with adding new rows

    Hi, sorry, so here is the code: Dim con As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\TestDataAccessMethods.mdb;User Id=admin;Password=;") Dim da As OleDb.OleDbDataAdapter Dim dset As New DataSet Dim Sql As String...
  11. Fred48

    Problems with adding new rows

    Hi, Also, on the same line: dsNewRow(0) = "hello everyone"
  12. Fred48

    Problems with adding new rows

    Hi, I tried both methods you suggested and got an exception both times. The first suggestion when I typed in the code "dsNewRow." there was no "Item" from the list for dsNewRow object. The second suggestion I got the exception,"No default member found for type 'Object'.
  13. Fred48

    Problems with adding new rows

    Hi, I need to code a function add rows to a dataset from a text file. I have not used the DataRow before and I am running into problems. I get the message "use the keyword new to create an object instance" when the statement, dsNewRow = dset.Tables("Table1").NewRow() is executed. When I...
  14. Fred48

    OLEDB performance hit

    Hi, I think I find the problem. Riverguy, I took your code and ran it, made changes and I believe the problem is in the With/End With. I do not understand why but the time I am getting is no where the time you were getting with you code. Below are my changes and the performance increase...
  15. Fred48

    OLEDB performance hit

    HI, I tried with the transaction and I DID not get an improvement in time. It took about7 mintues to read 22,000 records and insert them into a table. Below is my entire code for loading this table, it is quite extensive because of the number of fields. I must be missing something...
  16. Fred48

    OLEDB performance hit

    Hi, I tried using Transactions and the time did not improve. Below is the actual code for updating one of the tables: <Start of Code> Dim Transaction As OleDbTransaction = cnnNew.BeginTransaction Do While more_record strSQL = "INSERT INTO FI(" & _...
  17. Fred48

    OLEDB performance hit

    Greeg, The data is coming from a file downlaoded from a mainframe. The input file is read and then the table is populated. Some fields are checked and certain values and replaced in the table. I am not sure what you mean by "Import".
  18. Fred48

    OLEDB performance hit

    Hi RiverGuy, Sorry for not getting back to you sooner, but yes there is a DO LOOP to read the records. I noticed you experience a big difference in processing. Happy to head that because it confirms out test results, but sorry for the client who will experience increase processing time...
  19. Fred48

    OLEDB performance hit

    Hi, The original code was also in VB 2005. Other than using OLEDB the new code was wrapped around a Using - End Using. Here is a snippet of the original code: mytable.AddNew() mytable.Fields("TGSN").Value = Downloaded_Rec_SPH.tgsn If...
  20. Fred48

    OLEDB performance hit

    Hi, We are converting our application to use to OLEDB from ADODB. The application is written in VB 2005 and storing data in Access tables. Our problem is after writing the code and started unit testing we notice a big hit in performance. Below is a snippet of our code: START OF CODE...

Part and Inventory Search

Back
Top