Prepare to do before copying:
1. Publisher, Subscriber creates a Windows user with the same name and sets the same password as a valid access user for the publication snapshot folder
My computer
Control Panel
Management tools
Computer Management
Users and Groups
Right-click User
New user
Create a user who is logged on to Windows in the group of Administrators
2. At the publisher, create a new shared directory as the repository for the published snapshot files:
My computer
D:\ Create a new dir
server| distributed
Tests on whether SQL Server 2000 and SQL Server 2005 distributed transactions work togetherMS DTC
1. MS DTC Background
2. The purpose of the MSDTC test
3. MSDTC test Environment
3.1 Verification test Environment:
3.2 Environment Configuration
3.3 Verifying MSDTC
3.4 Creating validation tables
4. Linked Server Test
5. Conclusion
1. MS DTC Background
The priest who presided over the wedd
This article discusses how to reduce the database from SQL Server 2008 to 2005, because local development is done in the SQL Server Express Edition version, and the host provider now provides the MSSQL only to 2005, So we need to get the database version down. This process is cumbersome, first of all you need to have SQL Server Management Studio 2008 (SSMS), and
1. RDA Introduction2. Requirements and Configuration3. RDA object Method4. RDA sample code======================================1. RDA Introduction------------In Microsoft SQL Server 2005 mobile edition (SQL Server mobile ),Remote Data Access (RDA) allows applications to access data from remote SQL Server database tables,And store the data in the local
Translation from w3schools (the level is limited and may be inaccurate in multiple scenarios, mainly for self-learning purposes)
SQL is a standard computer language used to access and operate databases.In this guide, you will learn how to use SQL to access and operate data in Oracle, Sybase, SQL Server, DB2, access, and other database systems.
-------------------
I. Back up the database
1. Open SQL Enterprise Manager and click Microsoft SQL server in the root directory of the console.2. SQL Server group --> double-click to open your server --> double-click to open the database directory3. Select Your Database Name (for example, Forum database Forum) --> click the tool in the menu above --> select backup database4. Sel
Use sqlprofile to optimize slow SQL statements in goldengate and SQL statements
In HP unix, a process is monitored to occupy a high cpu. Later, it was found that the statement execution plan in gg had a problem, resulting in a high cpu. Since the statements in gg cannot be changed, how can we change the execution plan of statements that cannot be changed? sqlprofile can be used here for optimization. [Szggs
Sometimes we do notSQL ServerOr you do not have permission to connectSQL Server,However, we want to view the contents of the backup file. In this case, we can useSQLBak ReaderGadgets. When you cannot restore the database, you can use this tool to view the database version of the backup.BakFile Corruption can also be usedSQL Bak ReaderOpen.
UseSQL bakreaderOpenMasterBackup File (for example ):
In fact, you can find that the information isRestore filelistonlyAndRestore headeronly
Select from t anywhere, replace "" with a specific field list, and do not return any fields that are not available20, as far as possible to use Varchar/nvarchar instead of Char/nchar, because the first variable long field storage space is small, you can save storage space, and secondly for the query, in a relatively small field search efficiency is obviously higher.21, try to use numeric fields, if only the value of the field is not designed as a character type, which will reduce the performanc
1. View the version of the database
SELECT @ @version
2. View the machine operating system parameters of the database
EXEC master.. xp_msver
3. View Database Startup Parameters
sp_configure
4. View Database Startup time
Select CONVERT (varchar, login_time,120) from master. sysprocesses where spid=1
To view the database server name and instance name
print ' Server Name ... ...: ' + CONVERT (varchar (), @ @SERVERNAME), ".
print ' Instance ....: ' + CONVERT (varchar), @ @SERVICENAME. @).,
Abstract: In the PLSQL development process, the use of SQL and PLSQL can meet most of the requirements, but in some special circumstances, using standard SQL statements or DML statements in PLSQL cannot meet your needs. for example, dynamic table creation or an uncertain operation must be performed dynamically. This requires dynamic SQL. This article describes PL
Many Oracle database developers prefer PL/SQL functions, storage, and so on to simplify the code.
Recommended reading:
Use PL/SQL to execute java storage to obtain the MAC address
For example:
Select empno, ENAME, DNAME, loc from emp, dept where emp. DEPTNO = DEPT. DEPTNO;
Developers may think that such an SQL statement is too long (Here we assume that the
SQL Server uses scripts to create updatable subscriptions for distribution services and transaction replication, and SQL server scripts
[Create a local distributor]
/************************ [Use local distribution server configuration release ]******* */-- SqlServer 2008 R2 -- https://technet.microsoft.com/zh-cn/library/ms151860 (v = SQL .105 ). aspxuse masterg
Released on: 11/15/2004 | updated on: 11/15/2004
Itzik Ben-gan
This article is based on Beta 1 of Microsoft SQL Server code "Yukon". All the information contained here may be changed.
Download the code in this article: tsqlinyukon.exe (117kb)
Note:This article was written before the product was put into production. Therefore, we cannot guarantee that any details contained here are exactly the same as those found in the delivered products. The informat
In general PL/SQL programming, SQL can be used directly in DML and transaction-controlled statements, but DDL statements and system control statements cannot be used directly in PL/SQL, and it is possible to implement DDL statements and system control statements in PL/SQL by using dynamic SQL.First, we should understan
Question one: The difference between statement and PreparedStatementFirst of all, what is statement in Java:statement is an important way for Java to perform database operations to send SQL statements to the database, based on the database connection that has been established. Specific steps:1. First import java.sql.*; this package.2. Then load the driver, create the connection, get the implementation object of the connection interface, such as the ob
SQL Server SQL statement Import and ExportOverview: SQL statements of the Microsoft SQL Server database are imported and exported, including data imported and exported with other databases and files.
/*** Export to excelExec master.. xp_mongoshell 'bcp settledb. DBO. shanghu out c: \ temp1.xls-C-Q-s "gnetdata/gnetdat
1.4 Automatic File growth and automatic contraction
SQL Server allows you to set the initial value and maximum value of a database, which can automatically increase or contract. These settings can prevent application modification failures caused by database space problems or SQL Server from exhausting hard disk space. Generally, if the database is not very busy, the default settings (Enable Automatic growth
The following statements are part of a MSSQL statement and cannot be used in access.
SQL Category:
ddl-Data Definition language (create,alter,drop,declare)
dml-Data Manipulation Language (Select,delete,update,insert)
dcl-Data Control Language (Grant,revoke,commit,rollback)
First, briefly introduce the underlying statement:
1, Description: Create a database
CREATE DATABASE Database-name
2, Note: Delete the database
Drop Database dbname
3, Description:
Label:http://blog.csdn.net/feng19821209/article/details/8571571 SQL 2008 Upgrade SQL R2 full tutorial or 10.00.1600 upgrade 10.50.1600 reproduced My SQL 2008 will be upgraded to SQL R2 today as needed. Speaking of why upgrade is because, from another machine backed up a database, to my machine when the restore Prompt
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.