i use ths qery to read rset from sql Express and populate a treeview...
But really the operation is very slow...!!!!
this is a part of code:
\\\\\\\\\\\\\\\\\\
'CNSQL.Open "Provider= SQLOLEDB.1; Integrated Security=SSPI;Persist Security Info=False;Intitial Catalog=TEST_DB_PAST_DUE;Data Source=MY-F0D2D0395FFE\SQLEXPRESS;"
\\\\\\\\\\\\\\\\\\\\ -
-
With FORM_TREEVIEW_.TreeView1
-
-
'ADOOpenRecordSet SSQL
-
-
Call setUpListView
-
Set RSSQL2 = CNSQL.Execute("Query1") ', adOpenForwardOnly, adLockReadOnly
-
'CNSQL.Execute ("Query1"), adOpenForwardOnly, adLockReadOnly
-
-
RSSQL2.CursorLocation = adUseServer
-
RSSQL2.MoveFirst
-
Do Until RSSQL2.EOF
-
sValue = Trim(RSSQL2.Fields("COD_AREA").value)
-
sKey = "K" & sValue
-
.Nodes.Add , , sKey, sValue & " - " & Trim(RSSQL2.Fields("DESCRIZIONE")), 1, 1
-
'Debug.Print sValue & " - " & Trim(RSSQL2.Fields("DESCRIZIONE"))
-
sValue = Trim(RSSQL2.Fields("SPORT").value)
-
'sSQL = .Nodes.Count
-
'Z = Z + 1
-
.Nodes.Add sKey, tvwChild, "L" & sValue, sValue & " - " & Trim(RSSQL2.Fields("DESCRIZIONE2")), 1, 2
-
sKey = "L" & sValue
-
sValue = Trim(RSSQL2.Fields("PROVA3"))
-
'sSQL = .Nodes.Count
-
.Nodes.Add sKey, tvwChild, "M" & sKey & sValue, sValue, 1, 2
-
sKey = "M" & sKey & sValue
-
sValue = "COPE - " & Trim(RSSQL2.Fields("PROVA1"))
-
.Nodes.Add sKey, tvwChild, "N" & sValue, sValue, 1, 2
-
'.Nodes.Item(sKey).EnsureVisible
-
RSSQL2.MoveNext
-
'sSQL = .Nodes.Count
-
Loop
-
End With
-
-
1 1999
Run your query in SQL Analyzer. Try to see if it runs to your satisfaction. If it did, then your problem is on your front-end, which looks like a .Net
-- CK
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Adrian Parker |
last post by:
I'm using the code below in my project. When I print all of these fixed
length string variables, one per line, they strings in questions do not
properly pad with 0s. strQuantity prints as " ...
|
by: armin walland |
last post by:
hi group!
i am writing a small tool to dump data from oracle databases and i want
to implement the possibility to execute sql statements read from stdin
or from a file. i have so far managed...
|
by: Neuruss |
last post by:
It seems there are quite a few projects aimed to improve Python's
speed and, therefore, eliminate its main limitation for mainstream
acceptance.
I just wonder what do you all think?
Will Python...
|
by: Shimon Sim |
last post by:
I have a custom composite control
I have following property
|
by: Ali Chambers |
last post by:
Hi,
I've written a programme that processes stock market price data in
VB.NET 2005 Express. I've optimised the code as much as possible, eg:-
using arrays, not passing parameters to functions,...
|
by: Igor |
last post by:
Can I use access for big database (cca 10-30 MB, cca 10-30k lines in
database). It will be asp.net 2.0 aplication and very fast server. Mostly
simple transactions (like SELECT * From Books Where...
|
by: Marco |
last post by:
Hi everyone. I've been trying to move some small applications written in
vb.net 2003 to vb.net 2005 express just for testing purposes. I have
noticed so far that the applications seem to run ...
|
by: rodny.romero |
last post by:
Somebody can help me with an example of like Reading post office with
VB.Net using protocol POP3, I have obtained the commandos or
instructions that protocol POP3 supports, but I have not been able...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |