What's the value of "Data Source="?

Results 1 to 2 of 2

Thread: What's the value of "Data Source="?

  1. #1
    Join Date
    Dec 1969

    Default What's the value of "Data Source="?

    In a Connection String to connect a database,<BR>"Provider=SQLOLEDB;<BR> Data Source= ???;<BR> ..."<BR><BR>What&#039;s should the value of Data Source be if I want to refer to the local server? I have tried the server name but it didn&#039;t work.<BR><BR>More information: if I run the ASP page on another computer on the intranetwork connecting to the server containing the database, it works. But if I run the dame ASP page on the server itself, it doesn&#039;t. Why?

  2. #2
    Join Date
    Dec 1969

    Default I would think

    it&#039;s the location of the .mdb file.<BR>I&#039;m assuming you&#039;re using an access db.<BR><BR>Data Source="& Server.MapPath("/where_it_be/i&#039;m the db.mdb")

Posting Permissions

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