SQL access through managed code - InfoPath Dev
in

InfoPath Dev

SQL access through managed code

Last post 01-29-2005 09:38 PM by Patrick Halstead. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 01-25-2005 11:45 AM

    SQL access through managed code

    I was hoping that I could access SQL Server data to populate dropdown boxes and text boxes using the native .net provider, as opposed to using a DSN or Web Service, but it doesnt appear that I can use traditional web/winform binding methods to Infopath controls.

    Does this limit my binding options to just DSN, XML files, or Web Services?
  • 01-26-2005 12:46 AM In reply to

    Re: SQL access through managed code

    What do you mean by "traditional web/winform binding methods to InfoPath controls"? You can call SQL via code (.NET) and populate dropdown boxes directly. You will need to load the resulting dataset into an XML DOM. That's not terribly difficult but it requires some time.
    Patrick Halstead
    Project Manager at Qdabra
  • 01-26-2005 05:28 AM In reply to

    Re: SQL access through managed code

    Patrick:

    Thanks for your reply.

    By traditional, I mean using the DataBind method on a control that exposes a bindable interface... I've extended the MS Data Access blocks, and most of the methods return a DataSet or a DataReader. Using something like: somecontrol.DataBind() throws errors.

    I've gone the WebService route, though, so this should be a suitable workaround...
  • 01-29-2005 09:38 PM In reply to

    Re: SQL access through managed code

    Good idea! We use Web services a lot for this kind of thing.
    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.