473,387 Members | 1,379 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,387 software developers and data experts.

adapter Wizard

Sam
Hi ther

"SELECT TOP 10 [Fields] FROM [TableName] ORDER BY [Field] DESC"

I want to use the above code to create a query in the OleDbDataAdapter1 (Wizard)

The aim is to fill a dataset with only the last ten rows of data in decending orde

My Table name is "MyRecords" and the name of the sort column is "Number
Everything I try gives an error in the Wizar
Can some say how I can modify this statement so it work

Nov 20 '05 #1
2 828
Hi Sam,

The more expirienced people in dotNet newsgroups are not often using the
wizard, however when it is this is an more answered question in the
newsgroup bellow than in this newsgroup.

The wizard will not take all, however I do not know what it will and what
not. Have a try in this newsgroup.

Adonet
<news://msnews.microsoft.com/microsoft.public.dotnet.framework.adonet>

Web interface:

<http://communities2.microsoft.com/co...s/?dg=microsof
t.public.dotnet.framework.adonet>
I hope your find your answer there (or here when somebody knows it).

Cor

"SELECT TOP 10 [Fields] FROM [TableName] ORDER BY [Field] DESC"

I want to use the above code to create a query in the OleDbDataAdapter1 (Wizard)
The aim is to fill a dataset with only the last ten rows of data in decending order
My Table name is "MyRecords" and the name of the sort column is "Number"
Everything I try gives an error in the Wizard
Can some say how I can modify this statement so it works

Nov 20 '05 #2
sam
I solved this problem by letting the wizard do its thing and then I went into the region area of the form, found the adapter area and the command text and added "TOP 10" right after the word Select in the query strin
Thanks to all
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dermot O'Loughlin | last post by:
Can anyone help me with this? I get the following error when using the odbc adapter wizard in VS.Net 2003: --------------------------- Wizard Form --------------------------- An unexpected...
0
by: Vince Campanile | last post by:
Ive got what must bea very basic question, but its got ne thouroughly stumped. Im writing a very simple application in Visual Basic.Ne 2003, thats using a data adapter hooked up to an Access...
5
by: Rick | last post by:
The data adapter wizard allows you to add more than one table, but that doesn't seem to work right when setting up a dataset. Some of the documentation I have read states that only one table...
1
by: Sam | last post by:
Hi ther SELECT TOP 10 House, LivingRoom, DiningRomm, Den, , FamilyRoom, BedRoom1, BedRoom2, Notes, , Kitchen, Deck FROM MyRecords ORDER BY Number DES I have a data adapter I am trying to...
1
by: John | last post by:
Hi When using Table Adapter Configuration Wizard if 'Use SQL Statements' is selected as Command Type, the data table's name in dataset is retained and only its data adapter's select statements...
2
by: Gshell | last post by:
When I get to the "Choose your data connection" screen and click the down arrow by the combo box, it takes several minutes (4 or more) to present my list of two pre-existing sources. (Both of...
0
by: ocean | last post by:
Hi, I've installed Visual Studio 2005 on Windows XP/Home Edition. I had to modify some files in order to get IIS installed successfully. The problem I am having is that in Visual Studio 2005,...
5
by: Alan Pretre | last post by:
In VS 2003 when I use the Configure Data Adapter option in VS 2003 I get the size parameter to the SqlParameter set to the correct size for a varchar, for example, .... new...
1
by: David | last post by:
I have a SQLExpress database with a table that has a unique index. I am creating dataset/Table Adapter using the wizard. THe Wizard creates a select and insert commands, but does not create a...
3
by: Miro | last post by:
Im assuming these two adapters are the same thing. For example, go to your data sources in your project and drag and drop a datagrid on your form. You will get a TableAdapter automatically added...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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.