locked
Server IP as variable in SqlConnection? RRS feed

  • Question

  • User-1938463870 posted

    I'm attempting to create an ASP page that generates a report from a user-selected table on a user-selected server.

    Is it possible to employ a variable to define the  "server=" attribute in the SqlConnection method, and what would the syntax be?

     

    Thanks. 

    Tuesday, September 25, 2007 11:46 AM

Answers

All replies

  • User-1274156407 posted

    You can create the SqlConnection string at runtime. 

    Tuesday, September 25, 2007 11:56 AM
  • User-1938463870 posted

    You can create the SqlConnection string at runtime. 

     

     

    Please forgive my noobish ignorance, but what do you mean by this?  I'm not really familiar with the underlying principles of ASP, I'm still learning the basics. 

    Wednesday, September 26, 2007 10:26 AM
  • User-1274156407 posted

    Check out this tutorial to get started http://samples.gotdotnet.com/quickstart/aspplus/doc/adoplusoverview.aspx 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, September 26, 2007 2:41 PM