Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27097

VS 2008 Data Adapters, Oracle, Data Grids and not having a clue...

$
0
0
Hi All,

I've done a lot with databases in the past, but that was with VBA and MS Access, but never Oracle & .Net.

I've created a datasource (called DataSet1) which contains a QuieriesTableAdapter which contains an SQL Query(called Schedule()) which If I open in Query Builder I can execute it fine and it returns the expected data.

I've put a DataGridView on a form and set it's datasource to DataSet1BindingSource (This name gets created when I select DataSet1).
Niavely I thought that would be it, but no surprise I got nothing.
There's loads of questions, but I don't know which need asking but anyway:
Do I need to specify the name of the query somewhere?
Do I need to add the same number of datagrid columns as the query will return - If yes, then there seems no way to match the 2 up as If add a column, the databound column is greyed out leaving just the unbound column option.

This next bit maybe important - In Query builder when I open my query (SELECT visitstart, title, fullname FROM MAN.vw_rapid_visitinfo WHERE (beamline = 'B23')) there are no table or views I can add. The vw_rapid_visitinfo view I'm using I was told existed, but I cannot see it in any list.

Any advice gratefully received.

Merry Christmas

Kristian

Viewing all articles
Browse latest Browse all 27097

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>