Solved

why I have to put limit in the query

Posted on 2013-01-10
7
421 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MySQL recovery 7 32
SQL QUERY 3 33
sql select total by week ending 3 25
MSSQL Convert Char to Date Time 5 12
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 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