Alec Tang

Professional Web Developer/ Web Designer

I build websites based on the latest web standards providing the best possible solution to your company

  • Home
  • About
  • Portfolio
  • Contact
  • Blog
All Posts under SQL Subscribe our RSS Feed Subscribe Feed
  • How to kill database in use process for restoration?

    Blog post about How to kill database in use process for restoration?I recently installed SQL 2008 on my machine and once I tried to restore a database, it failed as it complaint as the database was currently in use. In SQL 2005, we normally go to activity monitor to kill the process but this is a little different in SQL 2008. The easiest solution now is to run this little query.

    Read on... Posted by: Alec On Tuesday, 12 January 2010 - in
    • SQL
  • How to check if Constraint exist

    Blog post about How to check if Constraint existA very useful statement to check if a constraint exists before do something to it. Note, we can never edit a constraint before deleting it and re-create. SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE CONSTRAINT_SCHEMA='dbo' AND CONSTRAINT_NAME='FK_37_Page_FK' AND TABLE_NAME='PageContent'

    Read on... Posted by: Alec On Tuesday, 11 August 2009 - in
    • SQL
  • DataBinder.Eval: 'System.Data.DataRow' does not contain a property

    Blog post about DataBinder.Eval: 'System.Data.DataRow' does not contain a property For some reason, DataBinder.Eval(Container.DataItem, "id") will not work in li tag within the item template of a repeater. I had to use this: ((System.Data.DataRow)Container.DataItem)["id"].ToString()

    Read on... Posted by: Alec On Monday, 13 July 2009 - in
    • SQL
  • Some basic LinQ to SQL syntax

    Blog post about Some basic LinQ to SQL syntax Have been trying to use Telerik Open Access ORM for the core framework. Finally have the basic structure setup. With having business objects layer, persistant classes and data access layer seperated, the web app itself could just communicate with the business objects, which then calls to persistant classes and data access layer.

    Read on... Posted by: Alec On Wednesday, 04 March 2009 - in
    • LINQ
    • SQL
  • Commonly Used SQL queries

    Blog post about Commonly Used SQL queriesThese are some of the commonly used SQL queries at work, just to note them down for easier access. To add a contraint (foreign key): alter table pro_product add constraint FK_53_PRO_Category_FK foreign key (PRO_Category_FK) references PRO_Category(Id) on delete cascade

    Read on... Posted by: Alec On Friday, 27 February 2009 - in
    • SQL

Search

 

Latest Posts

  • Sys.WebForms.PageRequestManagerParserErrorException
  • How Google treats Content Duplication
  • How to create HTML column in Sharepoint List View
  • How Sharepoint stores User Data
  • How to send email via Sharepoint
  • Malaysia Airlines launched iPhone Application: MHMobile
  • Intranet, the next big market
  • How to retrieve and update from a multi choice Checkboxlist ...
  • Auto Complete returns giant list of undefined
  • Integrate Ajax Control Toolkit into Sharepoint

Categories

  • Browsers (1)
  • Projects (1)
  • Web Design (6)
  • Sharepoint (20)
  • Telerik (5)
  • Wordpress (1)
  • Internet (1)
  • SQL (5)
  • LINQ (3)
  • ASP.NET C# (33)
  • JavaScripts (3)
  • IIS (0)
  • Industry (1)
  • Tools (8)
  • SEO (4)

Archives

  • May 2010 (1)
  • April 2010 (3)
  • March 2010 (5)
  • February 2010 (4)
  • January 2010 (11)
  • November 2009 (3)
  • October 2009 (1)
  • September 2009 (9)
  • August 2009 (3)
  • July 2009 (4)
  • June 2009 (1)
  • May 2009 (2)
  • April 2009 (8)
  • March 2009 (6)
  • February 2009 (2)
© Copyright 2009 Alec Tang. All Rights Reserved.
This site is conform to W3C Standard XHTML & CSS