473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

connectionstring to 127.0.0.1

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
Aug 21 '07 #1
4 4105
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
Tina wrote:
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

Aug 21 '07 #2
127.0.0.1 is "localhost" - meaning, whatever SQL Server instance is installed
on the same machine. If SQL Server is somewhere else, then all you need to do
is change the connection string to match the machine name or IP address
instead of 127.0.0.1

-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"Tina" wrote:
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
Aug 22 '07 #3
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";

"Tina" <Ti**********@nospamexcite.com>, iletisinde þunu yazdý,
news:uH**************@TK2MSFTNGP02.phx.gbl...
>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
Aug 22 '07 #4
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
/// ------------------------------


"Bahadır ARSLAN" wrote:
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";

"Tina" <Ti**********@nospamexcite.com>, iletisinde şunu yazdı,
news:uH**************@TK2MSFTNGP02.phx.gbl...
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

Aug 22 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Devante | last post by:
Hi, I am fairly new to ASP.NET and have been working on a web form that will allow a user to upload images to a database. I have found a sample web form that I have been trying to get working,...
2
by: oswald verlinden | last post by:
Hi all, i have a client with an old working app. in PowerBuilder for which i need to create new modules. The db is sqlanywhere 5.0.4 The db is configured in ODBC. Now, i don't seem to be able...
2
by: G. Dean Blake | last post by:
We currently distribute a web application to serveral servers for a customer. We have been putting the connection string in our web.config file under <appSettings> <add...
6
by: Tony | last post by:
Dear All, When I run an example program on the http://www.dotnetjunkies.com/quickstart/util/srcview.aspx?path=/quickstart/aspplus/samples/webforms/data/datagrid1.src&file=VB\datagrid1.aspx&font=3 ...
4
by: Shapper | last post by:
Hello, I have this connectionString in a DataReader: Dim connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0; Ole DB Services=-4; Data Source=C:\db.mdb" It's working fine. Now i...
10
by: Laura K | last post by:
Tried all kinds of things. I get the error. The ConnectionString property has not been initialized. Any help appreciated. ...
2
by: Chen | last post by:
I have a project which contain several WinForms. I put a SqlDataAdapter in Many of the Forms. I want these SqlConnection1.ConnectionString Point to the same SQL Server. So I create a Global Const...
3
by: Jim Andersen | last post by:
Hi, I would appreciate if someone could explain this behaviour, and maybe offer a better solution. I have been working with the GridView control. And SqlDataSource. It works great if I do:...
3
by: Arpan | last post by:
I recently installed SQL Server 2005 (Management Studio Express) along with SQL Server 2005 Express (Configuration Manager) in my Win2K Pro m/c & use IIS 5.0 to run ASPX projects. I could add my...
5
by: Radu | last post by:
Hi. In a repeater I have as ItemTemplate the following, among others, and everything works great: <asp:SqlDataSource ID="LocationSqlDataSource" SelectCommand="SELECT blah-blah-blah"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.