Hello Sir, I have created database(ms access) and tables at runtime how to maintain relation ships between the tables. by using vb.net. Thanking u sir.
Hello Sir, I have created database(ms access) and tables at runtime how to maintain relation ships between the tables. by using vb.net. Thanking u sir.
Gaffar, A (old) snippet sample I once made for this. \\\ Dim Sql As String = "SELECT * from A, B Where " & _ "A.n = B.n" Dim Conn As New OleDbConnection(connString) Dim da As New OleDbDataAdapter(Sql, Conn) da.Fill(ds, "A") da.Fill(ds, "B") Conn.Close() Dim drlA As New DataRelation _ ("AA", ds.Tables("A").Columns("A.n"), _ ds.Tables("B").Columns("B.n")) ds.Relations.Add(drlA) Dim dv As New DataView(ds.Tables("A")) DataGrid1.DataSource = ds DataGrid1.Expand(-1) //// When this snippet is to short, I have others as well. I hope this helps, Cor
1.Maintaining relation between two tables when transferring records
Hi I have two identical tables - same field names, identical datatypes(the tables are in different databases) and same constraints I need to transfer a record from one table to the other. While doing the transfer, the column names are to be checked so that the right column data gets inserted into the other. Though the column names are identical their order may be different in the tables My thinking is having two data adapters and datasets and then do some sort of comparison of column names before I go ahead with the data insertion. Does that sound ok ? Is there some other easy way ? Thank Bill
Hi, I have doubt in MDI forms genarally we will set formname.MdiParent=me in the mdi form if it is child but my doubt is when i open another child in the child form of the mdi form it is comming out side when i was runnig the application. how to set mdi relation in another child of mdi child.plz give me the reply Regard, krishna.
3.maintaing relation ships at runtime
Hello Sir, I have created database(ms access) and tables at runtime how to maintain relation ships between the tables. by using vb.net. Thanking u sir.
4.typed datasets and maintaining object relations
Hi, We are implementing Data Transfer Objects (DTO) as Typed DataSets. This means that we would have multiple typed DataSet classes that overlap slightly, sharing tables between them. The issue with typed datasets is that it inherits from the DataSet class and hence a typed dataset class cannot inherit from any other class. For example consider two datasets MemberDS and AgentDS both sharing a Person table between them. By default each generated dataset would contain a schema defining the Person table, meaning that if the table changes, you'll have to change the schema in two different places. Ideally, you need a way to define each type once; no matter how many times your application uses or extends that type. That way, when the shared Person table changes, you'll only have to modify your code in one place. We are planning to write a tool that will take of the issues mentioned above. Your help is welcome. Thanks.
5.The same table cannot be the child table in two nested relations
6. same table cannot be the child table in two nested relations
7. C Run-Time Error R6002C Run-Time Error R6002
8. Auto Shipping Auto Shipping Scheduling:car moving auto transport
Users browsing this forum: No registered users and 93 guest