Click here to Skip to main content
15,922,015 members
Home / Discussions / Database
   

Database

 
GeneralRe: ADO.Net updating a BLOB Pin
Richard Deeming25-Jul-02 1:38
mveRichard Deeming25-Jul-02 1:38 
Generaloledb and table with no key Pin
AlexEg23-Jul-02 2:22
AlexEg23-Jul-02 2:22 
GeneralRe: oledb and table with no key Pin
Alex Deem26-Jul-02 2:25
Alex Deem26-Jul-02 2:25 
GeneralCreating Login Pin
Mazdak22-Jul-02 19:14
Mazdak22-Jul-02 19:14 
GeneralRe: Creating Login Pin
Richard Deeming22-Jul-02 23:39
mveRichard Deeming22-Jul-02 23:39 
GeneralRe: Creating Login Pin
Mazdak25-Jul-02 7:14
Mazdak25-Jul-02 7:14 
GeneralDatagrid columns Pin
Ryan284522-Jul-02 5:37
Ryan284522-Jul-02 5:37 
GeneralTyped DataSets and casting problems... Pin
Andrew Connell22-Jul-02 4:36
Andrew Connell22-Jul-02 4:36 
Sorry for cross-post... realized this is the more appropriate group after I sent the first one:

I've created a strongly typed dataset but whenever I try to select rows from
a table and try to cast the rows, I'm getting an error "Specified cast is
not valid.".

I have a table named "Inventory". I'm able to select rows and place them in
a variable with type DataRow[]. However, when I try to cast it to a
InventoryRow, I get errors every time.

Here's the code: my dataset name is PADS...

working code:
DataRow[] recordArray = this._dataSet.Inventory.Select();

error code:
<br />
PADS.InventoryRow[] recordArray =<br />
(PADS.InventoryRow[])this._dataSet.Inventory.Select();<br />


I'm certain I'm using the correct variable names because I'm able to easily
create new records with the following:
<br />
PADS.InventoryRow record = this._dataSet.Inventory.NewInventoryRow();<br />
this._dataSet.Inventory.AddInventoryRow(record);<br />

Any input would be greatly appreciated!

Andrew Connell, MCDBA
IM on MSN
andrew@aconnell.com

Andrew Connell, MCDBA
IM on MSN
andrew@aconnell.com
GeneralRe: Typed DataSets and casting problems... Pin
Anonymous24-Jul-02 16:57
Anonymous24-Jul-02 16:57 
GeneralCreating an index with ADOX Pin
ijprest21-Jul-02 20:40
ijprest21-Jul-02 20:40 
GeneralCREATE DATABASE Pin
Mazdak20-Jul-02 20:56
Mazdak20-Jul-02 20:56 
GeneralRe: CREATE DATABASE Pin
Ravi_Shankar25-Jul-02 0:54
Ravi_Shankar25-Jul-02 0:54 
GeneralCollation Name Pin
Mazdak20-Jul-02 20:37
Mazdak20-Jul-02 20:37 
GeneralRe: Collation Name Pin
Martin Ziacek22-Jul-02 1:33
Martin Ziacek22-Jul-02 1:33 
GeneralRe: Collation Name Pin
Mazdak22-Jul-02 9:39
Mazdak22-Jul-02 9:39 
GeneralRe: Collation Name Pin
Martin Ziacek22-Jul-02 9:54
Martin Ziacek22-Jul-02 9:54 
GeneralSubstring searching in SQL Pin
Byteman19-Jul-02 8:55
Byteman19-Jul-02 8:55 
GeneralRe: Substring searching in SQL Pin
AndyG19-Jul-02 9:44
AndyG19-Jul-02 9:44 
GeneralRe: Substring searching in SQL Pin
Byteman22-Jul-02 9:20
Byteman22-Jul-02 9:20 
GeneralRe: Substring searching in SQL Pin
Gerald Schwab20-Jul-02 21:43
Gerald Schwab20-Jul-02 21:43 
GeneralCreate database schema for distribution Pin
scrozier19-Jul-02 5:28
scrozier19-Jul-02 5:28 
GeneralRe: Create database schema for distribution Pin
Ravi_Shankar25-Jul-02 1:05
Ravi_Shankar25-Jul-02 1:05 
GeneralRe: Create database schema for distribution Pin
scrozier25-Jul-02 5:39
scrozier25-Jul-02 5:39 
GeneralRe: Create database schema for distribution Pin
Ravi_Shankar25-Jul-02 22:59
Ravi_Shankar25-Jul-02 22:59 
GeneralMSDE distribution Pin
scrozier19-Jul-02 5:26
scrozier19-Jul-02 5:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.