development work and it provides the building blocks that are necessary for building the remainder
of the package. Oftentimes as an SSIS developer, you’ll want to relegate the grunt work and heavy
lifting to the wizard when you want to just move data for a onetime load, and then do the more
complex coding yourself.
As with any of the SSIS tools, there are numerous ways to open the tool. To open the Import and
Export Wizard, right-click the database you want to import data from or export data to in SQL
Server Management Studio and select Tasks ➪ Import Data (or Export Data based on what task
you’re performing). You can also open the wizard by right-clicking the SSIS Packages folder in SSDT
and selecting SSIS Import and Export Wizard. Another common way to open it is from the Start
menu under SQL Server 2014, where it’s called Import and Export Data. The last way to open the
wizard is by typing dtswizard.exe at the command line or Run prompt. Regardless of whether you
need to import or export data, the first few screens in the wizard look very similar.
When the wizard appears, you’ll see the typical Microsoft wizard welcome screen. Click Next to
begin specifying the source connection. If you had opened the wizard from Management Studio
by selecting Export Data, this screen is pre-populated. In this screen you specify where your data
is coming from in the Source dropdown box. Once you select the source, the rest of the options on
the dialog may vary based on the type of connection. The default source is .Net Framework Data
Provider for Odbc. Out of the box, you have ODBC and OLE DB sources that connect to SQL
Server, Oracle, and Access. You can also use text files, Excel files, and XML files. Traditionally,
the SQL Native Client is the provider used in SSIS because it gives additional functionality during
design time. Change the data source to use the SQL Server Native Client 11.0 provider.
For SQL Server, you must enter the server name, as well as the user name and password you’d
like to use. If you’re going to connect with your Windows account, simply select Use Windows
Authentication. Windows Authentication will pass your Windows local or domain credentials into
the data source. Lastly, choose a database to which you want to connect. For most of the examples
in this book, you’ll use the AdventureWorksDW database or a variation of that DW database,
shown in Figure 2-1. This database can be downloaded at www.wrox.com.
Note ╇ Additional sources such as Sybase and DB2 are also available if you
install the vendor’s OLE DB providers. You can download the OLE DB provider
for DB2 free if you’re using Enterprise Edition by going to the SQL Server
Feature Pack on the Microsoft website. (As of this writing, the SQL Server 2014
Feature Pack has not be released. However, the SQL 2012 Feature Pack will
work for 2014 as well.)
Note ╇ In 2011, Microsoft released information regarding the appropriate
provider types to use for new development. It was recommended that any new
development should be done with ODBC providers rather than OLE DB. This
rule should only be followed for home grown applications for now. SSIS developers
should continue using OLE DB because ODBC does not have full feature
parity yet to complete some ordinary tasks.
development work and it provides the building blocks that are necessary for building the remainderof the package. Oftentimes as an SSIS developer, you’ll want to relegate the grunt work and heavylifting to the wizard when you want to just move data for a onetime load, and then do the morecomplex coding yourself.As with any of the SSIS tools, there are numerous ways to open the tool. To open the Import andExport Wizard, right-click the database you want to import data from or export data to in SQLServer Management Studio and select Tasks ➪ Import Data (or Export Data based on what taskyou’re performing). You can also open the wizard by right-clicking the SSIS Packages folder in SSDTand selecting SSIS Import and Export Wizard. Another common way to open it is from the Startmenu under SQL Server 2014, where it’s called Import and Export Data. The last way to open thewizard is by typing dtswizard.exe at the command line or Run prompt. Regardless of whether youneed to import or export data, the first few screens in the wizard look very similar.When the wizard appears, you’ll see the typical Microsoft wizard welcome screen. Click Next tobegin specifying the source connection. If you had opened the wizard from Management Studioby selecting Export Data, this screen is pre-populated. In this screen you specify where your datais coming from in the Source dropdown box. Once you select the source, the rest of the options onthe dialog may vary based on the type of connection. The default source is .Net Framework Data
Provider for Odbc. Out of the box, you have ODBC and OLE DB sources that connect to SQL
Server, Oracle, and Access. You can also use text files, Excel files, and XML files. Traditionally,
the SQL Native Client is the provider used in SSIS because it gives additional functionality during
design time. Change the data source to use the SQL Server Native Client 11.0 provider.
For SQL Server, you must enter the server name, as well as the user name and password you’d
like to use. If you’re going to connect with your Windows account, simply select Use Windows
Authentication. Windows Authentication will pass your Windows local or domain credentials into
the data source. Lastly, choose a database to which you want to connect. For most of the examples
in this book, you’ll use the AdventureWorksDW database or a variation of that DW database,
shown in Figure 2-1. This database can be downloaded at www.wrox.com.
Note ╇ Additional sources such as Sybase and DB2 are also available if you
install the vendor’s OLE DB providers. You can download the OLE DB provider
for DB2 free if you’re using Enterprise Edition by going to the SQL Server
Feature Pack on the Microsoft website. (As of this writing, the SQL Server 2014
Feature Pack has not be released. However, the SQL 2012 Feature Pack will
work for 2014 as well.)
Note ╇ In 2011, Microsoft released information regarding the appropriate
provider types to use for new development. It was recommended that any new
development should be done with ODBC providers rather than OLE DB. This
rule should only be followed for home grown applications for now. SSIS developers
should continue using OLE DB because ODBC does not have full feature
parity yet to complete some ordinary tasks.
การแปล กรุณารอสักครู่..
งานพัฒนาและให้สร้างบล็อกที่จําเป็นสําหรับการสร้างส่วนที่เหลือ
ของแพคเกจ ันบ่อยครั้ง เป็นนักพัฒนา คุณจะต้องขับไล่ไม่พอใจการทำงานและหนัก
ยกให้พ่อมดเมื่อคุณต้องการย้ายข้อมูลการโหลดเพียงครั้งเดียวแล้วทำเพิ่มเติมนะครับ
ที่ซับซ้อนด้วยตัวคุณเอง กับใด ๆของ SSIS เครื่องมือ มีหลายวิธีที่จะเปิดเครื่องมือเพื่อเปิดตัวช่วยสร้างการส่งออกและนำเข้า
คลิกขวาฐานข้อมูลที่คุณต้องการนำเข้าข้อมูลจากหรือส่งออกข้อมูลใน SQL Server Management Studio
และเลือกงาน➪นำเข้าข้อมูล ( หรือส่งออกข้อมูลจากสิ่งที่งาน
คุณแสดง ) นอกจากนี้คุณยังสามารถเปิดตัวช่วยสร้างโดยการคลิกขวาที่โฟลเดอร์ในแพคเกจ SSIS ssdt
และเลือกันและตัวช่วยสร้างนำเข้าส่งออกอีกวิธีการทั่วไปที่จะเปิดมันจากต้น
เมนูภายใต้ SQL Server 2014 ซึ่งเรียกว่า การนำเข้าและส่งออกข้อมูล . วิธีสุดท้ายที่จะเปิดตัว dtswizard.exe
โดยการพิมพ์ในบรรทัดคำสั่ง หรือ วิ่งได้รวดเร็ว ไม่ว่าคุณ
ต้องนำเข้าหรือส่งออกข้อมูล , หน้าจอแรกเพียงไม่กี่ในตัวดูคล้ายกันมาก
เมื่อพ่อมดปรากฏคุณจะเห็นพ่อมดทั่วไป Microsoft หน้าจอต้อนรับ . คลิกถัดไป
เริ่มระบุแหล่งที่เชื่อมต่อ ถ้าคุณได้เปิดตัวจากการจัดการสตูดิโอ
โดยเลือกส่งออกข้อมูล หน้าจอนี้คือก่อนการประชากร ในหน้าจอนี้คุณสามารถระบุที่
ข้อมูลมาจากแหล่งข้อมูลแบบเลื่อนลงกล่อง เมื่อคุณเลือกแหล่งที่มา , ส่วนที่เหลือของตัวเลือกใน
กล่องโต้ตอบอาจแตกต่างกันตามประเภทของการเชื่อมต่อ เริ่มต้นมาเป็นผู้ให้บริการข้อมูลสุทธิสำหรับกรอบ
ODBC . ออกจากกล่อง , และคุณมี ODBC ฐานข้อมูล ole แหล่งที่เชื่อมต่อกับ SQL
Server , Oracle และการเข้าถึง นอกจากนี้คุณยังสามารถใช้ไฟล์ข้อความ , ไฟล์ Excel และไฟล์ XML ตามเนื้อผ้า
SQL พื้นเมืองลูกค้าเป็นผู้ให้บริการที่ใช้ใน SSIS เพราะให้ฟังก์ชันการทำงานเพิ่มเติมในระหว่าง
เวลาออกแบบเปลี่ยนแหล่งข้อมูลที่จะใช้ SQL Server พื้นเมืองลูกค้า 11.0 ผู้ให้บริการ .
สำหรับ SQL Server , คุณจะต้องป้อนชื่อเซิร์ฟเวอร์ รวมทั้งชื่อผู้ใช้และรหัสผ่านที่คุณ
ชอบใช้ ถ้าคุณกำลังเชื่อมต่อกับบัญชีผู้ใช้ Windows ของคุณ เพียงแค่เลือกใช้ Windows
รับรองความถูกต้อง Windows Authentication จะผ่านของคุณท้องถิ่นหรือโดเมน
ข้อมูลในแหล่งข้อมูล ท้ายนี้เลือกฐานข้อมูลที่คุณต้องการที่จะเชื่อมต่อ สำหรับส่วนใหญ่ของตัวอย่าง
ในหนังสือเล่มนี้คุณจะใช้ adventureworksdw ฐานข้อมูลหรือรูปแบบของระบบฐานข้อมูล
แสดงในรูปที่ 2-1 . ฐานข้อมูลนี้สามารถดาวน์โหลดที่ www.wrox .
หมายเหตุ╇เพิ่มแหล่งข้อมูลเช่น Sybase DB2 และนอกจากนี้ยังมีถ้าคุณ
ติดตั้งของผู้ผลิต OLE DB ผู้ให้บริการ คุณสามารถดาวน์โหลด OLE DB Provider
สำหรับฟรีถ้าคุณใช้ Enterprise Edition โดยไปที่ SQL Server
คุณลักษณะแพ็คบนเว็บไซต์ของ Microsoft ( ขณะที่เขียนนี้ , SQL Server 2014
คุณลักษณะ Pack ยังไม่ปล่อยตัว อย่างไรก็ตาม , SQL 2012 คุณลักษณะ Pack จะ
งานสำหรับ 2014 เช่นกัน . )
หมายเหตุ╇ใน 2011 , Microsoft ปล่อยข้อมูลเกี่ยวกับประเภทของผู้ให้บริการที่เหมาะสม
ใช้สำหรับการพัฒนาใหม่ควรมีการพัฒนาใหม่ใด ๆ
ควรจะทำ ODBC ผู้ให้บริการ OLE DB มากกว่า . กฎนี้
ควรจะตามบ้านโตใช้งานได้แล้ว นักพัฒนา
ันควรใช้ ODBC ฐานข้อมูล ole เพราะไม่ได้มีความเท่าเทียมกันคุณลักษณะ
เต็มยังเสร็จงานธรรมดาบ้าง
การแปล กรุณารอสักครู่..