This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install-Package jQuery -Version 1.10.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Sitecore 6.x code */ | |
var searchParam = new SearchParam | |
{ | |
Database = currentDB, | |
Language = "", | |
TemplateIds = "", | |
LocationIds = blog.ID.Guid.ToString(), | |
FullTextQuery = terms | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alter table [projectManagement].[Task] | |
alter column Name varchar(250) not null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER SCHEMA projectManagement | |
TRANSFER dbo.RequestPriority |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- See http://stackoverflow.com/a/3698824/11912 | |
alter table JobSupplies add Id INT IDENTITY | |
alter table JobSupplies add constraint PK_JobSupplies primary KEY(Id) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use XXX_Sitecore_Master | |
declare @searchTerm varchar(100) | |
declare @onlySearchLayouts bit | |
/* | |
If using parameters, they must be escaped: | |
%2b = space | |
%252f = / | |
If using DataSource, they don't. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# all from VS command line - C:\Program Files (x86)\Microsoft Visual Studio 11.0> | |
tf workspaces /server:http://domain:8080/tfs /owner:* | |
tf workspace /delete "packages sacred";domain\jskemp /server:http://domain:8080/tfs | |
# view detailed information, including mappings | |
tf workspaces /owner:* /computer:* /collection:http://domain:8080/tfs /format:detailed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Compare Database | |
Option Explicit | |
' Dumps connection data for all ODBC/linked tables. | |
Function DumpConnectionData() As Boolean | |
Dim db As DAO.Database | |
Dim tb As DAO.TableDef | |
Set db = CurrentDb | |
For Each tb In db.TableDefs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void AddProgram(Sitecore.Data.Items.Item program) | |
{ | |
HtmlGenericControl listItem = new HtmlGenericControl("li"); | |
HtmlAnchor listLink = new HtmlAnchor(); | |
listLink.InnerText = program.DisplayName; | |
listLink.HRef = Sitecore.Links.LinkManager.GetItemUrl(program).ToLowerInvariant(); | |
listItem.Controls.Add(listLink); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use XXX_Sitecore_Master | |
select f.ItemId, f.Value, f.Created, f.Updated, i.Name | |
from VersionedFields f | |
left join Items i on f.ItemId = i.ID | |
where f.Value like '<r owner%' | |
order by f.Value |
OlderNewer