Results 1 to 3 of 3

Thread: MSDataShape provider problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    Jersey City, NJ
    Posts
    2

    Post

    I want to create a hierarchical recordset but I can't get the MSDataShape provider to work for some reason. I already tried using both MSDataShape and MSDataShape.1 and setting cursor type to client. I always get the message "Data Source not found and default driver not specified." Here is the code:

    cnn.CursorLocation = adUseClient
    cnn.Provider = "MSDataShape"
    stri = "Provider=MSDataShape.1;Data Source=TestDatabase;" & _
    "Connect Timeout=15;Data Provider=MSDASQL"
    cnn.open stri

  2. #2
    New Member
    Join Date
    Dec 1999
    Location
    U.S.A
    Posts
    12

    Post

    Which ADO library did you use?

  3. #3
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    You are specifying your provider twice, you only need to specify MSDataShape in the PROVIDER property

    more help here: http://msdn.microsoft.com/library/ps...k/mdhi50br.htm

    and a data shaping summary in case anyone cares: http://msdn.microsoft.com/library/ps...k/mdhi3mb0.htm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width