Solved

why I have to put limit in the query

Posted on 2013-01-10
7
420 Views
Last Modified: 2013-01-25
I have MS  SQL 2008 and visual studio. I have MySQl query run in Visual studio by MySQl connector. For whatever reason, when I put "limit 2000000" in the MySQL query, it returns correct records. But, when I remove "limit 2000000" in the MySQL query, it returns null. I don't understand why. I want to remove "limit 2000000"

When I use MySQL editor from MySQL front to run the query without limit set, it returns the same records. I don't understand why in Visual Studio connecting to MySQL, I have to put a limit set in query???

Here is the query structure

select ...
from table
where...
limit 2000000
0
Comment
Question by:wasabi3689
  • 4
  • 3
7 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 38766126
Many times the drivers enforce their own conditions.  Are you using the same driver for both Visual Studio and MySQL editor?
0
 

Author Comment

by:wasabi3689
ID: 38766143
I don't think the same driver. But I want to use VS driver. Is there any way I remove the limit set to be able to populate the data?

I am using following connector

MySql.Data.MySqlClient.MySqlConnection, MySql.Data, Version=6.2.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 38766155
I don't know about the limit problem.  All the MySQL connectors come from MySQL including the .NET which is on version 6.6.4 now.  You might try the newer version and see if it works better for you.  http://www.mysql.com/products/connector/
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:wasabi3689
ID: 38766171
I see all download for 32-bit OS. I have 64-bit OS. Where to find the download link?
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 38766199
If you click on the dropdown and select ".NET and Mono", it will show a 'Architecture Independent' download.
0
 

Author Comment

by:wasabi3689
ID: 38766214
After I downloaded ".NET and Mono", I don't see .exe. file? How do I configure it into VS ADO.net
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 38766246
I don't know.  That download does include a bunch of DLLs and a CHM Help File that contains information and programming instructions.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question