connectionstring to 127.0.0.1

  • Thread starter Thread starter Tina
  • Start date Start date
T

Tina

I have a project that someone else wrote that I have to figure out. The
database connection string is as follows:
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"

What is this connection to??
Thanks,
T
 
127.0.0.1 is the "local" computer. In other words, whatever computer
uses that connection string connects to itself.


Steve C.
MCAD,MCSE,MCP+I,CNE,CNA,CCNA
 
Hi,

Don't you want to connect to a database?
I couldn't see your DB name.

In connection string you have to set database name via Initial Catalog or
Database properties.
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes; Initial
Catalog=AdventureWorks";
 
Bahadir is right,

Maybe the connection string that you are using is not the complete one. To
check about connection strings:

http://www.connectionstrings.com

You can use instead of 127.0.0.1, "localhost" as sombedy mentioned before,
it's easier to understand.

HTH
Braulio

/// ------------------------------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ------------------------------
 
Back
Top