Click here to Skip to main content
15,892,575 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello,
I have a master detail/table in which the detail has a blob field. Due to a large ammount of data I get an error out of memory when I navigate to the last records (I think it loads the data and can't clear the previous records cache?). So I tried to do it with a second dataadapter and a parameter, which parameter (for the detail table) takes the primary key of the master table through a textbox (the paramater points to the detail table foreign key), on the preview of the adapter I enter a valid number and I get the data, the problem is when I coded to insert the value I get no data
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Me.SqlDataAdapter1.Fill(DataSet11, "Table1")
    Me.SqlDataAdapter2.SelectCommand.Parameters(0).Value = convert.int32(TextBox1.Text)
    Me.SqlDataAdapter2.Fill(DataSet21, "scan")
  end Sub




Thank you
Kyriakos
Posted
Updated 18-Mar-11 5:01am
v2

Looks like you want to view a subset. A DataView could help you out. Have a look at the link for more info:
http://msdn.microsoft.com/en-us/library/system.data.dataview.aspx[^]

Good luck!
 
Share this answer
 
There was data in the first record had no detail table data. I will not enter the entire code but works.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900