SqlConnection objects with Visual Studio .Net 2005 on Design Mode

Discussion in 'Visual Studio' started by wwv, Jun 15, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. wwv

    wwv

    Hello,</o:p>
    </o:p>
    With the Visual Studio .Net 2003 it is possible to add SqlConnections, Sql Commands ? objects by means of the section Data of the </o:p>
    Toolbox.</o:p>
    </o:p>
    At Visual Studio .Net 2005 this section does not more include these objects.</o:p>
    I wrote code to get these objects. They have been displayed in the Component Designer window, but I have not found components / tools to add new such objects on Designer Mode.</o:p>
    </o:p>
    Is there any possibility to add on Designer Mode such objects to Web Forms or Services with Visual Studio .Net 2005?</o:p>
    </o:p>
    Thanks in advance for your help!</o:p>
    </o:p>Valentin
     
  2. Ahh, I don't use the design time view for web services, I'm not very familiar with them.

    Though I though that view was going away for web services. You might have to create the code manually.

    You can check out this DatabaseUtility library, it might make simple data connections easier for you...

    http://joel.net/software/databaseutility.aspx


    Joel Thoms
    DiscountASP.NET
    http://www.DiscountASP.NET
     
  3. wwv

    wwv

    Hi,
    </o:p>
    Thank you!</o:p>
    I have found the SqlDataSource control under the Data Controls of the Toolbox.</o:p>
    But this control is only for Web Applications available, not for Web Services.</o:p>
    With VS 2003 the same Data Controls are available for both Web Applications and Web Services.</o:p>
    And that is very important because also for Web Services database connections and operations are necessary for customer password validation, computing of number of method calls and so on. The alone one solution is to write code manually to get database connections.</o:p>
    </o:p>
    Valentin</o:p>
     
  4. wwv

    wwv

    OK Joel,
    </o:p>
    There is no problem. </o:p>
    There are more ways to get code for database connections with VS 2005 for Web Services:</o:p>
    1. To create code with VS 2003 and migrate it to VS 2005. This is possible for the people like me who have installed the both versions.</o:p>
    2. To migrate VS 2003 programs to VS 2005 and so to get code snippets or examples for other applications or services.</o:p>
    3. Of course, just to write code manually.</o:p>
    </o:p>
    If you are interested and have time, please take a look of my Web Services and Apps. I would be glad. </o:p>
    </o:p>
    Best regards</o:p>
    Valentin</o:p>
    </o:p>
    www.wwv-it.eu</o:p>
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page