1. Enable AD Hoc distributed Queries
To enable the ad Hoc distributed queries service before using Openrowset/opendatasource, because this service is not secure, SQL Server is turned off by default
Methods for enabling the ad Hoc distributed
1 , enable Ad Hoc Distributed QueriesBefore using Openrowset/opendatasource to enable the ad Hoc distributed queries service, because this service is not secure, SQL Server is turned off by defaultMethods for enabling AD HOC distributed queriesSQL
Data operations between different server databases--Create a linked serverexec sp_addlinkedserver ' itsv ', ' ', ' SQLOLEDB ', ' Remote server name or IP address 'exec sp_addlinkedsrvlogin ' itsv ', ' false ', NULL, ' username ', ' password '--query
//executing a remote database table querySelect * from OpenRowset('SQLOLEDB','192.168.5.547';'SA';'Password',[Database name].[dbo].[Table name])An exception occurred:News15281, Level16, State1, section 1 line SQL Server Blocked component ' ad
In SQL Server database remote operations, first enable the Ad Hoc distributed Queries service before using Openrowset/opendatasource. Because this service is not secure, SQL Server is turned off by default.1. How to enable AD Hoc distributed
StatementSELECT * from database a.dbo. Table A, database b.dbo. Table b b WHERE A.field=b.field"DBO" can be omitted asSELECT * from Database A. Table A, database B.. Table b b WHERE A.field=b.fieldSQL Server database:--This is an IP or hostname that
execsp_configure'Show advanced Options',1Reconfigureexecsp_configure'Ad Hoc Distributed Queries',1ReconfigureSelect * from OpenRowset('SQLOLEDB','192.168.1.180';'SA';'123.com', Joyblessing.dbo.User_Lottery)execsp_configure'Ad Hoc Distributed
Before the introduction of Aliyun mailbox using Foxmail and Outlook settings, many friends are also in the use of NetEase flash mail, then use the Lightning mail users how to set up to receive Aliyun mail, do not know the specific method of friends
A variety of business systems in the use of the process will encounter some problems, because the database connection failed, can not log in to the management software is one of them, this is a very difficult and common problems
The general business
StatementSELECT * from database a.dbo. Table A, database b.dbo. Table b b WHERE A.field=b.field
The "DBO" can omit such
SELECT * from Database A.. Table A A, database B.. Table b b WHERE A.field=b.field
SQL Server database:
--This is a map of a
* * Data operation between different server databases.
--Create a linked server
exec sp_addlinkedserver ' itsv ', ', ' SQLOLEDB ', ' Remote server name or IP address '
exec sp_addlinkedsrvlogin ' itsv ', ' false ', NULL, ' username ', ' password '
--
Why do you want to synchronize your SQL Server 2000 database?
The rationale for SQL Server 2000 database synchronization configuration
Starting from 0 Step by step Configure SQL Server 2000 database synchronization, very thin
MSSQLSERVER data operations between different server databasesMethod 1:--Create a linked serverexec sp_addlinkedserver ' itsv ', ' ', ' SQLOLEDB ', ' Remote server name or IP address 'exec sp_addlinkedsrvlogin ' itsv ', ' false ', NULL, ' username ',
Data development1. Sort by last name stroke:Select * from TableName Order by CustomerName Collate chinese_prc_stroke_ci_as//from less to more2. Database encryption:Select Encrypt (' original password ')Select Pwdencrypt (' original password ')Select
SQL Server Access database across servers (openrowset/opendatasource/openquery)1. Enable AD Hoc distributed QueriesBefore using Openrowset/opendatasource to enable the ad Hoc distributed queries service, because this service is not secure, SQL
SQL Server replicates tables from one database to another/* Data operations between different server databases */--Create a linked serverexec sp_addlinkedserver ' itsv ', ' ', ' SQLOLEDB ', ' Remote server name or IP address 'exec
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.