การทำ Link server ระหว่าง AS400 กับ MS SQL Server 2008
2 posters
หน้า 1 จาก 1
การทำ Link server ระหว่าง AS400 กับ MS SQL Server 2008
สวัสดีค่ะ
อยากจะขอสอบถามค่ะว่า 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 ค่ะ
ขอบคุณมากค่ะ
อยากจะขอสอบถามค่ะว่า 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
ลองทำแบบ
ใช้ 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
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
Similar topics
» Wrap Class Database
» จากหนังสือ เรียนรู้ด้วยตนเอง Database : ติดตั้งโปรแกรม MS SQL Server 2008 Express ตอนใช้งานใน Management ไม่มี Data Collection
» Reporting Service Configuration Manager เข้าหน้าเว็บไม่ได้ครับ
» สอบถามเรื่อง linked server
» เขียน จับภาพบนหน้าจอด้วย asp.net ตอนเทสที่เครื่องปกติแต่พอลง server มีอาการ error ครับ อาจารย์
» จากหนังสือ เรียนรู้ด้วยตนเอง Database : ติดตั้งโปรแกรม MS SQL Server 2008 Express ตอนใช้งานใน Management ไม่มี Data Collection
» Reporting Service Configuration Manager เข้าหน้าเว็บไม่ได้ครับ
» สอบถามเรื่อง linked server
» เขียน จับภาพบนหน้าจอด้วย asp.net ตอนเทสที่เครื่องปกติแต่พอลง server มีอาการ error ครับ อาจารย์
หน้า 1 จาก 1
Permissions in this forum:
คุณไม่สามารถพิมพ์ตอบ
|
|