Database Tutorials

How to stop the SQL Server Browser service from the command prompt.

DBA or Developers should follow the next steps:

1. On the Start menu, click Run.

2. In the Run dialog box, type:

cmd

3. From the command prompt, type:

net stop sqlbrowser.

Related TutorialsHow to duplicate table with SQL Server Object Explorer
How to identify a SQL Server Express instance
How to add a derived table …

Learn more

How to start the SQL Server Browser service from the command prompt

DBA or Developers should follow the next steps:

1. On the Start menu, click Run.

2. In the Run dialog box, type:

cmd

3. From the command prompt, type:

net start sqlbrowser.

Related TutorialsHow to remove a table from a database diagram in SQL server
How to open an existing table in Table Designer in …

Learn more

How to start the SQL Server Browser service from the GUI

DBA or Developers should follow the next steps:

1. On the Start menu, right-click My Computer, and then click Manage

2. In Computer Management, expand Services and Applications, and then click Services.

3. In the list of services, double-click SQL Server Browser.

4. In the SQL Server Browser Properties …

Learn more

How to attach a database file to SQL Server Express

Developers can attach a database file to an instance of SQL Server 2005 Express Edition by using the sqlcmd tool. They have to follow the next steps:

1. Open the command prompt on the server.

2. Connect to an instance of SQL Server 2005 Express Edition, from the command prompt, by …

Learn more

How to use LINQ expression inline in VB.NET

Web developers can create and call a method inline based on LINQ expression. For example they can create a function named TestClient() that examines a client an return true or false based on whether they want to include it in the results:

 

Private Function TestClient(ByVal client As Client) As Boolean

Return client.LastName.StartsWith(“D”)

End Function

 

Web developers could use the TestClient …

Learn more

How to use LINQ expression inline in C#

Web developers can create and call a method inline based on LINQ expression. For example they can create a function named TestClient() that examines a client an return true or false based on whether they want to include it in the results:

 

private bool TestClient(Client client)

{

return client.LastName.StartsWith(“T”);

}

 

Web developers could use the TestClient method like this:

 

var matches = …

Learn more

How to use LINQ where clause to filter results in VB.NET

Web developer can modify the where clause in LINQ statement to filter the results and to include only those that match a specific condition. The next code shows how to find clients who have a last name that starts with a specific letter:

Dim matches = From client In clients _

Where client.LastName.StartsWith(“D”) _

Select client

 

Web developer …

Learn more

How to use LINQ where clause to filter results in C#

Web developer can modify the where clause in LINQ statement to filter the results and to include only those that match a specific condition. The next code shows how to find clients who have a last name that starts with a specific letter:

 

var matches = from client in clients

where client.LastName.StartsWith(“P“)

select client;

 

Web developer can combine …

Learn more

How to use LINQ expression to do projection in VB.NET

Web developer can use approach described in the article How to use LINQ expression to get a subset of data in VB.NET to define a new class that wraps just the information he/she wants to return. For example, if he/she wants to get both the first and last names but he/she wants to store them in separate strings, …

Learn more

How to use LINQ expression to do projection in C#

Web developer can use approach described in the article How to use LINQ expression to get a subset of data in C# to define a new class that wraps just the information he/she wants to return. For example, if he/she wants to get both the first and last names but he/she wants to store them in separate strings, …

Learn more