Laploy Web Board
Would you like to react to this message? Create an account in a few clicks or log in to continue.

การทำ Link server ระหว่าง AS400 กับ MS SQL Server 2008

2 posters

Go down

การทำ Link server ระหว่าง AS400 กับ MS SQL Server 2008 Empty การทำ Link server ระหว่าง AS400 กับ MS SQL Server 2008

ตั้งหัวข้อ  Takkie 9th December 2012, 12:19 pm

สวัสดีค่ะ
อยากจะขอสอบถามค่ะว่า MS SQL Server 2008 R2 Standard สามารถทำ Link server กับ AS400 ได้หรือไม่ค่ะ และถ้าได้จะใช้ Provider ตัวไหนดีค่ะ ตอนนี้ลองหา Download รู้สึกเหมือนจะมีตัวที่ติดเรื่องของ License ไม่แน่ใจว่าตัวฟรีมีหรือเปล่า (อยากจะทดลองดูก่อนอ่ะคะ) เพราะตอนนี้ทำ SSIS สำหรับ Load data จาก AS400 มาไว้ที่ MS SQL พบว่าบางวัน Data มาครบถ้วน บางวันหายไปบางส่วน โดยที่ตอน Load ไม่ติด MSG ใดๆ เลย จึงอยากจะทำ Link Server เพื่อลอง Query Check ดูว่า Data ชุดไหนที่มีปัญหา เพราะเกิด Case นี้บ่อยๆ ทำให้ต้องโหลด Data ซ่อมใหม่ทั้งหมด ซึ่งมีประมาณ 80,000,000 กว่าๆ record ซึ่งปัจจุบัน SSIS จะทำเงื่อนไขโหลดเฉพาะ data increment หรือ movement เท่านั้น จะอยุ่ประมาณต่อวัน 8,000,000 กว่าๆ record ค่ะ

ขอบคุณมากค่ะ

Takkie

จำนวนข้อความ : 1
Join date : 09/12/2012

ขึ้นไปข้างบน Go down

การทำ Link server ระหว่าง AS400 กับ MS SQL Server 2008 Empty ลองทำแบบ

ตั้งหัวข้อ  Admin 21st January 2013, 9:32 pm

ใช้ Microsoft OLE DB Provider for ODBC Drivers ลองทำแบบนี้

Using UDL (Universal Data Link) to generate the connection string:

1. Open Notepad and save an empty file as *.udl. For example, "test.udl"
2. Double click this file, then the configuration window pops up
2.1. CLick the Connection tab
2.1.1. Enter server dsn name as source name (or IP address)
2.1.2. Enter user ID and password
2.1.3. Check the "Allow Saving Paswsword" checkbox
2.1.4. Enter the initial catalog (database)
2.2. Click the Provider tab
2.2.1. Click "Microsoft OLE DB Provider for ODBC Drivers"
3. Click 'OK' button to exit this window.
3.1. Ignore warning about exposed password for now(although you may want to delete "test.udl" later)
4. Now open this file in Notepad. You will find the connection string in this file.

Linking the server:

5. Open SQL Server Enterpise Mgr (you can do it using TSQL in Query, but I'm being lazy here - see sp_addlinkedserver in SQL Books Online)
6. Goto [ServerName]> Security> Linked Servers
6.1. Right click on Linked Servers and hit New Linked Server...
7. Server type is "Other data source"
7.1. Provider Name: "Microsoft OLE DB Provider for ODBC Drivers"
7.2. Product Name: whatever you want to label it (I used the server dsn)
7.3. Provider string: the string from step 4, above.
7.4. Leave 'Location' and 'Catalog' empty
8. Hit the "Server Options" tab
8.1. "Data Access" and "Use Remote Collation" should be checked
9. Hit "Save" button

Admin
Admin

จำนวนข้อความ : 215
Join date : 17/12/2009

http://laploy.forumotion.com

ขึ้นไปข้างบน Go down

ขึ้นไปข้างบน

- Similar topics

 
Permissions in this forum:
คุณไม่สามารถพิมพ์ตอบ