Skip to Content
avatar image
Former Member

DI-Connection to another DB

Hellow,

Does any one know if can I Connect To my DB -Not the Menahel DB On Sdk form that I'v made?

Iwant to do Query of Data From my Db and I don't want to copy my data to User Tables On Menahel DB.

Can I do it?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Feb 24, 2004 at 01:00 PM

    You can write database specification in the SQL statement.

    For example:

    SELECT * FROM dbo.mydb.mytable

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Ruti

      Actually, you can use any kind of recordset for reading data from database, but if you want to update data it's better to use recordset of DI and even DataBrowser. Block of code i'll send you tomorrow

  • avatar image
    Former Member
    Feb 24, 2004 at 02:45 PM

    Hi Ruti

    You can use any SQL you want with Recordset object.

    For matrix:

    1. Open UserDataSource for each column in the matrix

    2. Bind column with data source

    3 Read row from Recordset and set value of every UserDataSource for matrix

    4. AddRow()

    It works, but slower than using of DBDataSource

    For text box use the same way with single UserDataSource

    Add comment
    10|10000 characters needed characters exceeded