Optional parameters in C# 4.0
Posted by Sem Dendoncker on August 25th, 2009Hi,
Great news for the C# developers.
The optional parameters are coming with C# 4.0.
Read all about it in this article: Optional parameters.
Cheers,
Sem
Hi,
Great news for the C# developers.
The optional parameters are coming with C# 4.0.
Read all about it in this article: Optional parameters.
Cheers,
Sem
Hi,
Visual studio has a default project folder.
This project folder points to “C:\Users\{USERNAME}\Documents\Visual Studio 2008\Projects”.
But I don’t like using this path as my default project folder.
So here’s the “trick” to change your default projectfolder for visual studio 2008 (this also works for 2005).
When opening VS2008 you go to “Tools” –> “Options” (see fig 1.1).
When the option screen is opened you go to “Projects and Solutions” –> “General” and there you can change your “Projects location” to whatever you want (see fig 1.2).
This way you can fast navigate to your own default project location.
Cheers,
Sem
When you install SQL 2005/2008 you probably won’t be able to connect to it remotely.
This is because the default settings in the installation won’t allow any remote access to the sql server.
If you try to connect to it you can expect errors like these:
Sqlcmd: Error: Microsoft SQL Native Client: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
or,
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 – Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)
This is a quick guide on how to enable remote connections to your sql server. I assume that the installation has been done correctly.
Firstly, enable and turn on the local and remote connections setting (or check if they are turned on):
Secondly, SQL Server Browser service has to be enabled to allow for local and remote connections if SQL Server 2005 is running by using an instance name and users are not using a specific TCP/IP port number in the connection string.
Secondly, SQL Server Browser service has to be enabled to allow for local and remote connections if SQL Server 2005 is running by using an instance name and users are not using a specific TCP/IP port number in the connection string.
Finally, if remote computer needs to connect and access SQL Server, an exceptions in Windows Firewall included in Windows XP SP2 (Service Pack 2), Windows Server 2003 and Windows Vista needs to be created. If you’re using third-party firewall system, the exception rules also needed to be created to allow external remote connections to the SQL Server 2005 and SQL Server Browser Service to communicate through the firewall, else connections will be blocked. Consult the firewall manual for more details. Each instance of SQL Server 2005 must have its own exception, together with an exclusion for SQL Server Browser service.
SQL Server 2005 uses an instance ID as part of the path when you install its program files. To create an exception for each instance of SQL Server, you must identify the correct instance ID. To obtain an instance ID, follow these steps:
Then create an exception for SQL Server 2005 in Windows Firewall.
Recent Comments