Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/samples/SqlConnectionStringBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ static void Main()
// connection string, and you can retrieve and
// modify any of the elements.
builder.ConnectionString = "server=(local);user id=ab;" +
"password= a!Pass113;initial catalog=AdventureWorks";
"password=********;initial catalog=AdventureWorks";

// Now that the connection string has been parsed,
// you can work with individual items.
Console.WriteLine(builder.Password);
builder.Password = "new@1Password";
builder.Password = "********";

// You can refer to connection keys using strings,
// as well. When you use this technique (the default
Expand Down
2 changes: 1 addition & 1 deletion doc/samples/SqlConnectionStringBuilder3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ static void Main()
try
{
string connectString =
"Server=(local);Database=AdventureWorks;UID=ab;Pwd= a!Pass@@";
"Server=(local);Database=AdventureWorks;UID=ab;Pwd=********";
Console.WriteLine("Original: " + connectString);
SqlConnectionStringBuilder builder =
new SqlConnectionStringBuilder(connectString);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ static void Main()
try
{
string connectString =
"Data Source=(local);User ID=ab;Password=MyPassword;" +
"Data Source=(local);User ID=ab;Password=********;" +
"Initial Catalog=AdventureWorks";

SqlConnectionStringBuilder builder =
Expand Down
2 changes: 1 addition & 1 deletion doc/samples/SqlConnectionStringBuilder_Remove.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ static void Main()
try
{
string connectString =
"Data Source=(local);User ID=ab;Password= a1Pass@@11;" +
"Data Source=(local);User ID=ab;Password=********;" +
"Initial Catalog=AdventureWorks";

SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(connectString);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ Connections are considered the same if they have the same connection string. Dif
The example displays the following text in the console window:

```
Original: Data Source=(local);Initial Catalog=AdventureWorks;User ID=ab;Password= a1Pass@@11
Original: Data Source=(local);Initial Catalog=AdventureWorks;User ID=ab;Password=********
Modified: Data Source=(local);Initial Catalog=AdventureWorks;Integrated Security=True
Database = AdventureWorks
```
Expand Down