473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Improving Select Query

Hi I am using Select query but it is taking time to retrive data I am using ODBC connection can n e one tell me how can I Improve this query performance query as given below there are 30 field and thousands of records in the table I have to select only two

select col1, col2 from TableName
Apr 2 '08 #1
5 1110
ck9663
2,878 Expert 2GB
Hi I am using Select query but it is taking time to retrive data I am using ODBC connection can n e one tell me how can I Improve this query performance query as given below there are 30 field and thousands of records in the table I have to select only two

select col1, col2 from TableName
Why are you using ODBC? What's the front-end apps?

-- CK
Apr 2 '08 #2
Why are you using ODBC? What's the front-end apps?

-- CK
Thanks for u r Reply ..


I am using vb.net window application, and its my project need that I use ODBC connecttion....
Apr 2 '08 #3
ck9663
2,878 Expert 2GB
That's the catch...It's slow. Try looking at possible DSN-Less way of connecting to your DB

-- CK
Apr 2 '08 #4
That's the catch...It's slow. Try looking at possible DSN-Less way of connecting to your DB

-- CK
u mean it is not possible to improve that query peformance with current situation..... by using ODBC connection
Apr 3 '08 #5
ck9663
2,878 Expert 2GB
Create index. Just select the fields you need. What kind of apps are you trying to use this connection for?

-- CK
Apr 3 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Andy Tran | last post by:
I built a system using mysql innodb to archive SMS messages but the innodb databases are not keeping up with the number of SMS messages coming in. I'm looking for performance of 200 msgs/sec where...
3
by: Tcs | last post by:
My backend is DB2 on our AS/400. While I do HAVE DB2 PE for my PC, I haven't loaded it yet. I'm still using MS Access. And no, I don't believe this is an Access question. (But who knows? I...
1
by: Andrew McNab | last post by:
Hi folks, I have a problem with an MS Access SQL query which is being used in an Access Report, and am wondering if anyone can help. Basically, my query (shown below) gets some records from a...
3
by: Hadley Willan | last post by:
Hi all, I am using some views now to put together a particular format for my Java client factory to produce Java Beans from the database. Because we support internationalisation we are...
5
by: - | last post by:
I have only 1m records in my database running on a laptop of speed 1.6GHz, memory 512MB ram, and Toshiba MK8032GAX hard disk. I use 'LIMIT x,10' for the query to utilise record paging. When the...
5
by: kemot1000 | last post by:
I have SELECT query: SELECT * FROM WHERE (( LIKE '%' + @Call1 + '%') AND ( LIKE '%' + @Call3 + '%')AND ( LIKE '%' + @Call4 + '%')AND ( LIKE '%' + @Call5 + '%') AND ( LIKE '%' + @Call6 + '%')OR (...
3
by: supsupmo | last post by:
Let's say I have a table, data_tbl, with the following columns: object_id of type integer mytimestamp of type timestamp with time zone data_1 of type integer data_2 of type integer And each...
2
by: dmorand | last post by:
I'm just seeing if there's a better way I can do this. I want to display the results from my submission page which handles adds, edits, deletes. I want to display the Name, Description, and Date...
6
by: sajitk | last post by:
Hi, I have 2 tables namely Cont_Dtls and Node_Dtls The structure of Cont_Dtls is as follows: Cont_ID FName Address BCF01 Sajit XYZ BCF02 ...
0
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,...
0
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$) { } ...
0
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...
0
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.