none
how to change the dataset designer tableadapter(s) connection with code? RRS feed

Answers

All replies

  • Look at https://msdn.microsoft.com/en-us/library/37z40s1c(v=vs.110).aspx

    In regards to |DataDirectory| in app.config


    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    • Marked as answer by kingelk Wednesday, March 29, 2017 8:35 AM
    Tuesday, March 7, 2017 3:21 PM
    Moderator
  • Yea I know a famous guy who wrote books about Ado.Net and SQL server which where really read who begged Microsoft to make this possible. 

    He writes now children books. 

    It is made private in the class and therefore read only, there are obscure ways to make this possible but then you loose all the strength of the designer. 

    AFAIK is currently still the only way changing the settings in the config.sys


    Success
    Cor

    Tuesday, March 7, 2017 5:51 PM
  • The below link is one method you can use:

    http://thecodemonk.com/2008/02/18/tableadapter-connection-strings/


    Paul ~~~~ Microsoft MVP (Visual Basic)

    • Marked as answer by kingelk Wednesday, March 29, 2017 8:35 AM
    Tuesday, March 7, 2017 6:20 PM