SQL code
Code highlighting produced by actipro codehighlighter (freeware) implements sp_add+server 'itsv', '', 'sqlodb', 'remote server name or IP address 'exec sp_add+srvlogin 'itsv', 'false ', null, 'username', 'Password' --
Data operations between databases on different servers
-- Create a linked server
Exec sp_addrole server 'itsv', '', 'sqloledb', 'remote server name or IP address'
Exec sp_add1_srvlogin 'itsv', 'false', null, 'username', 'Password'
-- Query
This article mainly describes the operation of accessing the remote database in the SQL Server database, including the activation of the ad HOC distributed queries service and an instance of accessing the remote database, which I hope can help
Backup: in the computer application field, it refers to a copy of a program or file separately stored from the original text.
Mysql data backup and recovery
What is backup )?
Backup: in the computer application field, it refers to a copy of a
Data Development-classic and data development classicData Development-classic
1. sort by strokes of the Last Name:
Select * From TableName Order By CustomerName Collate Chinese_PRC_Stroke_ci_as // From less to more
2. database encryption:
Select
Connect to the default instance of SQL server:
exec sp_addlinkedserver @ServerName, N'SQL Server'
Used to connect to a specified instance:
EXEC sp_addlinkedserver @server='SQL2005', @srvproduct='', @provider='SQLNCLI', @datasrc='DBhere'
@
We use the current my-sql to compare the new version of my SQL 5.0 version. First, how to get my SQL 5.0 we can download from the Internet ([Url]www.mysql.cn[/url]).Let's look at how to install my SQL to support multiple platforms, that is, it can
In the face of large data volumes, large file SQL operations, we need to rely on MySQL powerful command operations:
1. Database Import command
The code is as follows
Copy Code
Mysql-h Localhost-u Root-pUse dbnameSOURCE
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
In this paper, we introduce Python3 to use Pymysql Connection database, and realize simple and delete to change.What is Pymysql?Pymysql is a library used in the python3.x version to connect to the MySQL server, and MySQLdb is used in Python2.Pymysql
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
Data operations between different server databasesWays to replicate table data between different databases:When the table target table is present:INSERT INTO destination database: Table SELECT * FROM source database: TableWhen the target table does
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
C # Operating SQL Server is not much different from manipulating other data, but there are some details to note.Do not select the default instance when installing SQL Server, if it is necessary to change the settings, there are remote connections to
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
I. SummaryThere are three standard modes of backup and recovery for Oracle, broadly divided into two broad categories, backup recovery (physical), and import and export (logically),Backup recovery can be divided into non-archive mode
1. enable Ad Hoc Distributed Queries
Enable the Ad Hoc Distributed Queries service before using openrowset/opendatasource. Because this service is insecure, SqlServer is disabled by default.
How to enable Ad Hoc Distributed Queries
SQL Server blocks
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.