Select the product you need help with
????? ?? ???? ?? ?? ?? ???????? ?? ?????? SQL ????? ?? ??? Excel ?? ????? ???? ???????? ID: 306397 - ?? ???????? ?? ?????? ??? ?? ?? ???? ???? ???? ??. ?? ????? ????????Microsoft SQL Server ?? ??? ??????? ???? OLE DB ???? ??????? ?? ??????? ?? ??? ?? ??? ???? ?? ?????? ???? ??? ??????? ??????? ???? ???? ??? ?? ????? ?? ??? ??? ???? ???? ??, sake ?? ???? ??? ?????? ??? ?? ???? ?? ??? ??????? ?????? ?????? ?? ??? ??? ???? ???? ??? Microsoft Excel ????????????? OLE DB ???? ????? ?? ?? ?? ???? ??? ?????? SQL ????? ?? ?????? ?? ?? ??? ?? ?? ?????? ?? ???? ?? ???? ????? ?? ?? ???????? ???? Excel ???? ????? ?? ???? ???? ??? ?? ????? ?? ??? ??? ???????? ???? ?? ??? ?????? ??, ??? ?? ???????? ?????? ?????? ???? ?????? ?? ????? ???? ?? ??? ?????? ?? ?? ???? Excel ???? ?????? ???? ???????Excel ???? ????? ?? ???? ???? ??? ?? ????? ?? ??????You can use SQL Server Management Studio or Enterprise Manager, a system stored procedure, SQL-DMO (Distributed Management Objects), or SMO (SQL Server Management Objects) to configure an Excel data source as a SQL Server linked server. (SMO are only available for Microsoft SQL Server 2005.) In all of these cases, you must always set the following four properties:
???:??? ?? SQL Server 2005 ?? ????? ?? ??? ???, ?? ???? ?? ??? ???? ???? ?? ?? ??? ??? ????????? ???? ?????????? ?????? SQL Server ??????? Studio ?? ?? ??? ???srvproduct @??? ??? ???????? ????????? ?? ???? Excel ???? ????? ?? ??? ??? ???? Excel ???? ????? ?? ???? ???? ??? ?? ????? ?? ??? ??? ???????? ???? ?? ??? SQL Server ??????? Studio ?? ??????????? ??????? ?? ????? ????SQL ????? ??????? Studio (SQL Server 2005)
?????????? ??????? (SQL Server 2000)
???? Excel ???? ????? ?? ???? ???? ??? ?? ????? ?? ??? ??? ???????? ???? ?? ??? ??? ???????? ????????? ?? ????? ?????? ?? ?????? ???????? ????????? ?? ????? ?? ???? ???sp_addlinkedserver???? Excel ???? ????? ?? ???? ???? ??? ?? ????? ?? ??? ??? ???????? ????:Using SQL-DMO to configure an Excel data source as a linked serverYou can use SQL Distributed Management Objects to configure an Excel data source as a linked server programmatically from Microsoft Visual Basic or another programming language. ?? ???? ??? ???? ??? ?????????? ??????? ?? SQL Server ??????? Studio ??????????? ?? ???????? ?? ?? ?????? ???? ?????? ??????? Excel ???? ????? ?? ???? ???? ??? ?? ????? ?? ??? ??? ???????? ???? ?? ??? SMO ?? ????? ????SQL Server 2005 ??? ?? ???? Excel ???? ????? ?? ????????? ???? ???? ??? ?? ????? ?? ??? ??? ???????? ???? ?? ??? SQL Server ??????? ???????? (SMO) ?? ????? ?? ???? ???? ??? ???? ?? ???, ???? Microsoft Visual Basic .NET ?? ???? ???? ???????????? ???? ????? ?? ???? ???? ?? SQL Server Studio ????????? ??????????? ??? ?????? ???? ?????? ???? ?????? ??? SMO ???????? ???? ?? ????? ??, ?? ?????? ??????? ???????? (SQL-DMO) ???????? ???? ?? ???????????? ???? ??? SMO SQL Server ??????? 7.0, SQL Server 2000 ?? SQL Server 2005, ?? ??? ???? ?? ??????? ?? ?? ????? ?? ???? SMO SQL Server 2000 ?? ??????????? ?? ????Excel ???? ????? ?? ???? ???? ??? ?? ????? ?? ?????????????? ???? ?? ??? ???? Excel ???? ????? ?? ??? ??? ???? ???? ??? ?? ?????, ?? ???? ???? ?? ?????? ???????? ?? ???? ???? ??????? ????????? ?? ?????? ????? ?? ?? ???? ???? ?????? ?? ???, Excel ???? ?? Sheet1 ??? ???????? ???? ?? ????????? ?? ???? ???? ???, ????? ??? ?? SQL DMO ?? ????? ?? ???????? ???? ??? ???? ??? ?? ????? ????? ???? ??:?? ????? ?????? ?? ????? ?? Excel ???? ??? ?? ????? ?? ?????? ??? ?? ??? ???????? ?? ???? ?? ??????? ?? ???? ???: ???? Excel ???? ????? ?? ?????? ??????? ?? ????? ???? ??? ???????? ????? ?? ???? SQL Server ?????? ???????? ?? OPENDATASOURCE ?? OPENROWSET ?????? ??? ?? ??? ?? ???? ?? ?????? infrequently ?????? Excel ???? ??????? ?? ???????:??? ?? SQL Server 2005 ?? ????? ?? ??? ???, ?? ????????? ???? ?? ?? ?? ????? ???? ??? ?????? ?????????????? ?? ??? ??? ????? ?????? ??? SQL Server ????? ??????? ???????????, ?? ????? ??: ??????? ????? ISAM ???? ??? ???? ??????SQL ????? ????? ?? ???? ?? ?? ??, ?? ?????? ???? ??????? ???????? OLE DB ???????, ??????? ????????????? ?? ????? ???? ?? ADO ?? Excel ?? ??? ????? ?? ???? ??? cautions ???? ???? ????????? ??????? ?? ???, Microsoft ?????? ??? ??? ???? ????? ?? ??? ????? ???? ?????? ????? ????:: 257819 SQL ????? ???????? ??????? ?? ???? ??? ???? ??????? ?? ??? ????? Microsoft ?????? ??????? (MSDN) ??? ???? ?? ????:
(http://support.microsoft.com/kb/257819/
)
Visual Basic ?? VBA ?? ???? ?? Excel ?? ??? ADO ?? ????? ???? ????(ide) http://msdn2.Microsoft.com/en-us/library/ms162169 .aspx ????? ???? ?? ??? ???? ???? ?? ???? ??? ???? ??????? ?? ????? ??? ?????? ?????????????? ?? ???, ????? MSDN ??? ???? ?? ????:
(http://msdn2.microsoft.com/en-us/library/ms162169(ide).aspx)
(ide) http://msdn2.Microsoft.com/en-us/library/ms189978 .aspx
(http://msdn2.microsoft.com/en-us/library/ms189978(ide).aspx)
??????? ID: 306397 - ????? ???????: 04 ?????? 2010 - ??????: 2.0 ???? ???? ???? ??:
???? ?????? ???????? ??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??. ?????????? ?? ??????? ????????? ??????? ??:306397
(http://support.microsoft.com/kb/306397/en-us/
)
| ???? ??????
|




????? ?? ???? ????








