Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 28th, 2004, 05:48 AM
Authorized User
 
Join Date: Oct 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default MSDE SLOW

Hi
I am currently transfering our data to msde 2000 from access, our largest file is 1.5 million records. I am using a vb program to update these records from text file to the msde database using ADO, this keeps failing to open the database after half the records are loaded, and the whole msde server seems slow??
heres code from my vb program:
hope someone can help.
rstPAFmain.Open "MAIN", , adOpenStatic, adLockOptimistic, adCmdTable
Open "s:\outfiles\Raw PAFPR.txt" For Input As #100
intLoaded = 0
Do Until EOF(100)
    Line Input #100, OpRec
    myarray() = Split(OpRec, Chr(9))
    rstPAFmain.AddNew
    For NN = 0 To 5
        rstPAFmain.Fields(NN) = myarray(NN)
    Next
      intLoaded = intLoaded + 1
        If intLoaded Mod 5000 = 0 Then
          lblPAFCount.Caption = CStr(intLoaded)
        End If
If intLoaded Mod 10000 = 0 Then
rstPAFmain.Update
End If
Loop
      lblPAFCount.Caption = intLoaded
rstPAFmain.Update
rstPAFmain.Close


 
Old October 28th, 2004, 09:01 AM
Authorized User
 
Join Date: Oct 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to cuzintone Send a message via Yahoo to cuzintone
Default

Is that the only way you can do it? Access (2000,2002,2003) can upsize an Access database to MSDE...If you are friends with someone who has SQL Server, you can install the enterprise manager and query analyzer to graphically view the information (provided network access is enabled on MSDE)...You could optionally create an ADP in Access which will create the tables on the MSDE server, or use Enterprise Manager to import the database...

-T






Similar Threads
Thread Thread Starter Forum Replies Last Post
how to slow down this flow jjk2 Beginning VB 6 8 January 28th, 2008 07:12 PM
Slow page kherrerab BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 September 5th, 2006 09:50 PM
Slow Searching zaheer131 VB How-To 0 March 15th, 2005 03:26 AM
Loading too slow chiholi Crystal Reports 0 November 16th, 2004 02:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.