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
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 '
--
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 ',
Take the Users table for example, there are three fields, self-growing number id,int type; name Name,nvarchar type, password Pwd,nvarchar typeFirst, using System.Data.SqlClient is introduced in vs2005; namespacesIncrease Name Password public int
SQL statement reference, including access, MySQL, and SQL ServerBase Creation DatabaseDeleting a databasedrop database dbnameBacking up SQL Server
To create a device that backs up data USE masterEXEC sp_addumpdevice ‘disk‘, ‘testBack‘,
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
Analysis of the three most common error causes for SQL Server connection (1)1. "SQL server does not exist or access is denied"This is the most complex. There are many causes of errors and there are many aspects to check.
Generally, there are several
This article is based on the whole library replication (warm standby)
Replication Server name: Hrb_rep
Primary database server and main library hrb_hb.maindb to back up the database server and backup library HRB_HB_REP.MAINDB
1. Both the
PHP3 's MicrosoftSQL database functionPHP3 's powerful database capabilities provide direct access to the current mainstream database in addition to the way you access the database through ODBC. Next, let's introduce the MSSQL functions in PHP3.To
Advanced | Client last time posted a simpler use of Asp+rds Client Reference report
This post is a more complex client-side report with asp+rds+ components
Error Description: (if you are prompted that an ActiveX component cannot participate in RDS.)
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.