A+ | A - | RESET
Fixed | Wide | Full | Reset

Gumairu dot Com

If you don't know and wanna know, come and ask us. We will help you still don't know !!

  Advanced search
Welcome, Guest. Please login or register.
September 11, 2010, 05:59:44 AM

Login with username, password and session length
Pages: [1]   Go Down
Author Topic: ย้าย MSSQL ไปอีกเครื่อง ต่าง Version  (Read 313 times)
0 Members and Guests are viewing this topic.
bobby
Administrator
Full Member
*****
Offline Offline

Posts: 122


View Profile WWW Email
« on: January 12, 2010, 12:06:18 AM »

บางทีเรา backup จาก SQL 2000 มาลงใน SQL 2005
เราก็จะสร้าง DB รอไว้ ชื่อเดิม
พอเราจะ restore
มันจะขึ้นประมาณว่า

Quote
System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing 'gumairu' database. (Microsoft.SqlServer.Smo)


ให้กดที่ Options แล้วเลือก Overwrite แค่นั้นก็ restore ได้แล้วครับ




สำหรับอีกวิธีคือการใช้วิธี Detach Database จากเครื่องเดิม แล้วเราก็ Copy file database .mdf .ldf ไปยังเครื่องใหม่แล้ว
Attach เข้าไปครับ เมื่อทำแล้วก็สร้าง User มา map กับ Db ที่เรา Attach ง่ายกว่าแบบแรกนะ ได้ผลดีด้วย  Grin
« Last Edit: January 14, 2010, 12:29:34 PM by bobby » Logged

Pages: [1]   Go Up
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Corto design by Bloc | XHTML | CSS