Re: Sorting a dataview Numerically
- From: Piotr Szukalski <amigos_@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 31 Aug 2005 08:57:36 +0200
Hi!
> I use Microsoft.Jet.OleDB.4.0 to connect with Microsoft Access 2003.
Well, I don't use Access, so I can't check your query... Please try to
execute the query directly under Access.
> I'm not using SQL Server. Does this make a difference with entering
> Transact SQL in .NET?
No, it should not... but you never know with M$.
BTW: you don't have to buy SQL Server to use it: see MSDE - it's SQL
Server engine you can downlaod and use for _free_. There may be some
license restrictions (number of simultaneous connections to database) and
there's no administration tool (as far I know, you can download some free
solutions or 'administrate' the DB from Visual Studio).
> This is the query I use in .Net is:
>
> Dim dbAdapter as New OleDb.OledbAdapter("SELECT * FROM tblISSUE_LIST
> ORDER BY
> CAST(SUBSTRING(tblISSUE_LIST.[Issue_No],2,Len(tblISSUE_LIST.[Issue
> No])-1)) AS INT);",
> Me.oledbConnection1)
> Me.IssueDataSet1
> MyDataTable = Me.IssueDataSet1.Tables(0) dbAdapter.Fill(MyDataTable) dv
> = Me.DataSet1.DefaultViewManager.CreateDataView(myDataTable) . . .
You can try to give columns explicite, not 'select * ...'. It's just a
thought.
> Error occurs when filling the data table to the data adapter. Error is:
> IErrorInfo.GetDescription failed with E_FAIL(0*80004005).
Tricky one, MS SDK says nothing about this one, it seems like it's 'vendor
specific' - I guess it's because Access fails to undrestand the query.
Cheers,
Piotrek
.
- References:
- Re: Sorting a dataview Numerically
- From: Piotr Szukalski
- Re: Sorting a dataview Numerically
- From: Saputra
- Re: Sorting a dataview Numerically
- Prev by Date: RE: browser session handling
- Next by Date: Re: What is .Net?
- Previous by thread: Re: Sorting a dataview Numerically
- Next by thread: Synchronization bool shared fields
- Index(es):
Relevant Pages
|