Alter Microsoft SQL Server 2008 table in design mode

 Tool > Properties > Designers > Table and Database Designers ที่ขวามือให้ยกเลิก Prevent saving changes that require table re-creation

ที่มา: Cannot Alter Microsoft SQL Server 2008 Table Object in Design Mode

 

 

Autonumber in MS SQL Server 2008

เลือก Data type ของ Column ให้เป็นชนิด int

ที่ Column properties  > Identity Spectification > (Is Identity) ให้เลือก Yes

OpenCV-2.1.0 using CMake and Visual C++ 2010

Test on Windows7 SP1 32-bit
Pre-Requisites

CMake OpenCV 2.1.0 
 

  1. Download OpenCV-2.1.0-win.zip

ทิปวิธีจับภาพหน้าจอบน iPad

เปิดไปยังหน้าต่างที่ต้องการ หรือโปรแกรมใดๆ
กดปุ่ม Home และปุ่ม Power พร้อมกัน สัก 1-2 วินาที (ถ้านานกว่านั้นจะกลายเป็นปิดเครื่อง)
โปรแกรมจะจับภาพหน้าจอและนำไปเก็บไว้ในหัวข้อ Photos
แค่นี้เราก็สามารถจับภาพหน้าจอของ iPad ได้แล้วครับ
ที่มา: it-guides.com
 

File and Directory Manipulation

using System.IO;
class TestDirectory {
    public static void Main() {
        Directory.CreateDirectory("C:\\csharp");
    }

 
The above lines of codes will create a directory in your C:
Please note that the backslash(\) should be escaped by another backslash since it is a escape character. Moreover, remember to "using" the System.IO namespace so as to use these classes. 
Following are a list of useful methods: 
 

How to Create a Microsoft Word Document with C#

            object oMissing = System.Reflection.Missing.Value;
 
            Microsoft.Office.Interop.Word.Application oWord;
            oWord = new Microsoft.Office.Interop.Word.Application();
            oWord.Visible = true;
 
            Microsoft.Office.Interop.Word.Document oDoc;

Syndicate content