Archive for March 2009

Start SQL server from the command line

SQL server can be started and stoped from the command line like this:
Start: net start mssqlserver
Stop: net stop mssqlserver
The same goes for Analysis Services.
Start: net start “SQL Server Analysis Services (MSSQLSERVER)”
Stop: net Stop “SQL Server Analysis Services (MSSQLSERVER)”

Code blocks are not allowed in this file - running asp.net pages with inline code in sharepoint

If you upload a standard asp.net page with inline code to a document library on your sharepoint installation, you will properly get the above error message.
To avoid it, do the following:
Open the sitecollections web.config placed somewhere around here:
C:\Inetpub\wwwroot\wss\VirtualDirectories\XXX.
Go to the tags
<PageParserPaths>
</PageParserPaths>
And put this in between.
 
<PageParserPath VirtualPath=“/*“
CompilationMode=“Always“
AllowServerSideScript=“true“
IncludeSubFolders=“true“/>
 
It is now [...]