Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
N

neo_6053

@neo_6053
About
Posts
16
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Cannot dispose/clear memory of sqldatareader [modified]
    N neo_6053

    i've tried to do some testing. this is my testing code

    Dim sqlCOn As New SqlConnection("Server=localhost;Database=phxtest;Trusted_Connection=yes")
    Dim sqlda As SqlDataAdapter
    Dim sqldt As DataSet
    Dim sqlFieldCount As Integer
    sqlCOn.Open()
    Dim SqlCommand As New SqlCommand("select top 0 * from msaspot", sqlCOn)
    sqlda = New SqlDataAdapter(SqlCommand)
    sqlDt = New DataSet
    sqlDa.Fill(sqlDt) ## Here is where it use up the memory ##
    sqlDa.Dispose()
    sqlFieldCount = sqldt.Tables(0).Columns.Count
    sqldt.Clear()
    sqldt.Dispose()
    SqlCommand.Dispose()
    sqlCOn.Close()
    sqlCOn.Dispose()

    Wat key(s) do gamer press most? > WASD Wat key(s) do Programmer press most? > Ctrl C + Ctrl V

    Visual Basic database sql-server sysadmin performance question

  • Cannot dispose/clear memory of sqldatareader [modified]
    N neo_6053

    sorry for misleading. Actually it's the sqlserv.exe that use up the memory. My oracle.exe is working fine. MICROSOFT ......

    Wat key(s) do gamer press most? > WASD Wat key(s) do Programmer press most? > Ctrl C + Ctrl V

    Visual Basic database sql-server sysadmin performance question

  • Cannot dispose/clear memory of sqldatareader [modified]
    N neo_6053

    Thx. But what should i do? How to optimize? FYI, i 've change to use sqldataadapter, it seems to use less memory, but still it wont free up after used. and btw, as can seen from my code, i used oracle reader too. it does not have any problem.

    Wat key(s) do gamer press most? > WASD Wat key(s) do Programmer press most? > Ctrl C + Ctrl V

    Visual Basic database sql-server sysadmin performance question

  • Cannot dispose/clear memory of sqldatareader [modified]
    N neo_6053

    but it's actually the sqlserv.exe that use up the memory. it reach above 1GB if i continue to run the program. i try to run the code in debug mode, if i stop it, it wouldn't free up the memory also.

    Wat key(s) do IM user press most? > ENTER - to send msg Wat key(s) do gamer press most? > WASD Wat key(s) do Programmer press most? . . . > Ctrl C + Ctrl V

    Visual Basic database sql-server sysadmin performance question

  • Cannot dispose/clear memory of sqldatareader [modified]
    N neo_6053

    i didnt use datatable because the table is too large. but suddenly i realize i can just "select top 1" =_= btw, will this solve the problem of memory leak?

    Wat key(s) do gamer press most? WASD Wat key(s) do Programmer press most? Ctrl C + Ctrl V

    Visual Basic database sql-server sysadmin performance question

  • Cannot dispose/clear memory of sqldatareader [modified]
    N neo_6053

    I run codes to get all the columns for all my table in database using sqldatareader. But then the sqlserv.exe use up too many memory. i tried to dispose everything at the end of the program but still not work. or is it anything to do with the sql server 2005 itself?

    this is the sample of my code.. i know it sounds noob, but i just want to get it work.. =_=''

        Dim oraCommand As OracleCommand 
        Dim oraDr As OracleDataReader 
        Dim sqlCommand As SqlCommand 
        Dim sqlDr As SqlDataReader 
        Dim oraFieldCount, sqlFieldCount As Integer 
        Dim oraArr, sqlArr As New ArrayList 
        Dim strMissColPK, strMissColNotPK, strMissCol As String 
        Dim oraCount, sqlCount As Integer 
    
        Me.RichTextBox1.Clear() 
        If Me.chkData.Checked = False And Me.chkCol.Checked = False And Me.chkTable.Checked = False Then 
            Exit Sub 
        End If 
    
        For i As Integer = 0 To Me.ListBox1.SelectedItems.Count - 1 
            Try 
                oraCount = 0 
                sqlCount = 0 
                oraCon.Open() 
                oraCommand = New OracleCommand("select \* from " & Me.ListBox1.SelectedItems(i).ToString, oraCon) 
                oraDr = oraCommand.ExecuteReader 
                oraDr.Read() 
                oraFieldCount = oraDr.FieldCount 
                oraArr.Clear() 
                For j As Integer = 0 To oraDr.FieldCount - 1 
                    oraArr.Add(oraDr.GetName(j).ToLower) 
                Next 
                oraDr.Close() 
                oraCommand = New OracleCommand("select count(\*) from " & Me.ListBox1.SelectedItems(i).ToString, oraCon) 
                oraDr = oraCommand.ExecuteReader 
                If oraDr.Read Then 
                    oraCount = oraDr(0) 
                End If 
    
                sqlCOn.Open() 
                sqlCommand = New SqlCommand("select \* from " & Me.ListBox1.SelectedItems(i).ToString, sqlCOn) 
                sqlDr = sqlCommand.ExecuteReader()  ## Here is where the system use about 2mb for each table. I have 400+ table ##
                sqlDr.Read() 
                sqlFieldCount = sqlDr.FieldCount 
                sqlArr.Clear() 
                For j As Integer = 0 To sqlDr.FieldCount - 1 
                    sqlArr.Add(sqlDr.GetName(j).ToLower) 
                Next 
                sqlDr.Close() 
                sqlCommand = New SqlCommand("select count(\*) from " & Me.ListBox1.SelectedItems(i).ToString, sqlCOn) 
                sq
    
    Visual Basic database sql-server sysadmin performance question

  • Upgrade IIS5 to IIS6?
    N neo_6053

    Hi, i dont know where to post this, so i just post it here. Hopefully someone can help. If this is not the right place, moderator can please help me to move it? I'm using window xp pro now. i've updated to sp2. i'm using IIS5.1. but i want to upgrade it to IIS6. How can i do that? upgrading to sp2 wont upgrade the IIS? Is Windows Xp Pro support IIS6? I want to use IIS6 in order to integrate with other software. What can i do now? Please advise. Thanks.

    Wat key(s) do IM user press most? > ENTER - to send msg Wat key(s) do gamer press most? > WASD Wat key(s) do Programmer press most? . . . > Ctrl C + Ctrl V

    System Admin question windows-admin help

  • URGENT!! How to embed excel in Webpage? [modified]
    N neo_6053

    any help?

    Wat key(s) do IM user press most? > ENTER - to send msg Wat key(s) do gamer press most? > WASD Wat key(s) do Programmer press most? . . . > Ctrl C + Ctrl V

    Web Development database csharp sql-server sysadmin

  • URGENT!! How to embed excel in Webpage? [modified]
    N neo_6053

    :(( ya, i believe it's very hard too.. but by printing the binary .. i cant call the pivot table function, right?? actually nvm if it's not web-based. i just want to get the pivot table function to be called.

    Wat key(s) do IM user press most? > ENTER - to send msg Wat key(s) do gamer press most? > WASD Wat key(s) do Programmer press most? . . . > Ctrl C + Ctrl V

    Web Development database csharp sql-server sysadmin

  • URGENT!! How to embed excel in Webpage? [modified]
    N neo_6053

    sorry .. i really dunno how it work .. just hopefully someone can give me some ideas .. coz quite urgent..

    Wat key(s) do IM user press most? > ENTER - to send msg Wat key(s) do gamer press most? > WASD Wat key(s) do Programmer press most? . . . > Ctrl C + Ctrl V

    Web Development database csharp sql-server sysadmin

  • URGENT!! How to embed excel in Webpage? [modified]
    N neo_6053

    URGENT!! How to ember an excel in webpage? I'm not saying the normal file link that points to an xls file. But I want to use the excel object to do it. Which allow me to call function like pivot table for the excel sheet. Which actually mean when i click a button then it'll load the data from sql server to an excel sheet on sheet1 and also the pivot table on sheet2. Can the excel sheet exist virtually without saving it as a xls file 1st? (direct load from database) I hv googled for a week but cant find the solution. can someone please help? * much prefered if the answer can be in VB.net or vbscript ;) -- modified at 4:07 Tuesday 10th April, 2007 -- modified at 4:10 Tuesday 10th April, 2007 -- modified at 4:11 Tuesday 10th April, 2007

    Wat key(s) do IM user press most? > ENTER - to send msg Wat key(s) do gamer press most? > WASD Wat key(s) do Programmer press most? . . . > Ctrl C + Ctrl V

    Web Development database csharp sql-server sysadmin

  • How to backup data for sql server 2000 in sql server 2005?
    N neo_6053

    Sql server 2005 seem cant easily backup data to be used in sql server 2000. I'm using sql server 2005 to build my database. But my fren is using sql server 2000. He complain that he cant restore using my backup file. Any body can help me?

    Database database sql-server sysadmin help tutorial

  • Simple Regular Expression? [modified]
    N neo_6053

    haha, it just an example. Finally i found the solution. ^((?!(illegal)).)*$ but regular expression is case sensitive. that's mean words like "illegAL" will not work... i think i better use back the .net code... anyway, thx ..

    Web Development tutorial visual-studio regex question

  • Simple Regular Expression? [modified]
    N neo_6053

    Anyway, Thx for your help. But i'm quite new to regular expression. I still not sure what to put. Appreciate if someone can give me the solution. Thx

    Web Development tutorial visual-studio regex question

  • Simple Regular Expression? [modified]
    N neo_6053

    How to make a textbox not accept certain words? Example : can not contain word "dog" in a string I hv tried negative lookahead (?!regexp) and many other method i found through google, but none of them work. I'm using RegularExpressionValidator in VS 2003. Izzit related? -- modified at 2:01 Wednesday 27th September, 2006

    Web Development tutorial visual-studio regex question

  • How to "post " form variable to another windows ?
    N neo_6053

    hi, i'm a beginner in .net. recently, i'm facing the problem of passing variable using post method... *** Response.Redirect("webForm2.aspx?id=01&name=neo") *** dim id as string = Request.Form("id") dim name as string = Request.Form("name") this is the sample. now, in webForm2.aspx, i would like to retrieve the value using request.Form. automatically, .net will use "get" method to send the value(coz the data is append at the end of the url). but i would like to hide my data.. how can i do that ?

    Web Development question csharp help tutorial learning
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups