Environment Description:Database version: 11gR2Transparent Gateway version: 11gOperating system Windows server2008_64 bitOracle_home Directory: D:\app\Administrator\product\11.2.0\dbhome_1MS Database ip:192.168.199.245 database: bwonline default port: 1433Oracle Database ip:172.18.123.113 Service Name: DB1 default Port 1521Note: Now that you have installed a transparent gateway after installing the database, the home directory for the Transparent gateway installation is the same as the home dire
closing dialog message.
Alter DatabaseGuoqiangSetNew_broker-------------------------------------------------------------------------
--View each service Broker network link
Select * fromsys.dm_broker_connections--to view each queue monitor in the instance, the queue monitor is responsible for managing the activation of the queue.
Select * fromsys.dm_broker_queue_monitors--View returns a row for each service Broker message that indicates that the instance of
operations, administrators can customize a set of database operations policies, such as query optimization, naming conventions, and backup recovery. "These strategies can be monitored, enforced, and alerted," Ajenstat said. ”
The company also claims that there is an improvement that adds a program called "Explorer" that can help database administrators optimize the system. For example, if multiple applica
Tags: naming bin Sch clustered User Web page binding modeling altfirst, the basic concept of indexed views An indexed view is actually a view that "materialized" a set of unique values into a clustered index, which is materialized almost as a table, and its data is stored in one copy (it consumes hard disk space, but the query is fast, for example, you can set count (), sum () in an indexed view). The advantage is that it provides a very quick way to
Attach the database, you will be reminded to find the log file when attachedAccording to the above phenomenon there are two sentences can be solved: one: Use MASTER; EXEC sp_detach_db @dbname = ' TestDB '; EXEC sp_attach_single_file_db @dbname = ' TestDB ', @physname = ' D:\Program Files\Microsoft SQL Server\mssql10_50.s Ql2008\mssql\data\testdb.mdf ' notation two: CREATE DATABASE TestDB on (FILENAME = ' D:
Access|server| Show | Page Access's Design view has a good feature-----design column annotations, which allows the designer to see clearly the meaning of each column. The general SQL Server does not have this function when building a table, but he has extended properties, this function is also good, you can write the comments here, and then the corresponding resu
What is a stored procedure
If you're in touch with other programming languages, it's easy to understand that stored procedures are like methods.
He's the way he is. Then he has a similar method name, a method to pass variables and return results, so stored procedures have stored procedure names, stored procedure parameters, and return values.
Advantages of stored procedures:
The ability of the stored procedure greatly enhances the functionality and flexibility of the
databases.-- The Instance name is RemoteServer. The local and remote databases submit or roll back the transaction at the same time.-- Note that four naming rules are used for executing distributed queries or calling stored procedures.
-- Prerequisite: the MSDTC Service on the local machine and the MSDTC Service on the remote machine must be enabled.-- The local machine and remote machine can ping each other-- Database ports can be telnet to each oth
The Design view of access has a good feature-----design column annotations, which allows the designer to see clearly the meaning of each column. The general SQL Server does not have this function when building a table, but he has extended properties, this function is also good, you can write the comments here, and then the corresponding results as RS back to the page to apply
I think it might be useful to d
event, and the cause of the incident results.So is the above sentence valid in the trigger, the answer is no.Here's a big trick:CREATE TABLE #inputbuffer ( nvarchar ),smallint, nvarchar(4000) )insert into #inputbuffer EXEC('DBCC INPUTBUFFER (@ @SPID)')The key is to get a statement that triggers the current SPID, returning three fields. If triggered by a stored procedure, returns the stored procedure nameAfter taking the original statement, we can determine whether the dat
Tags: occupy Select database program cannot cause connection naming whereDatabase can not duplicate name 5030 error, in fact, the simple reason is that there is an application is consuming this connection, use such a line of command to query out the occupied connectionUse master select spid from master.dbo.sysprocesses where dbid=db_id (' Database formerly ')Execute the following statement to kill the connection process is OKUse Master Kill 54In renam
', @level0Name =n ' dbo ', @level1type = N ' table ', @level1name = N ' Data ' --Add comments to the view with extended attributesEXEC Sys.sp_addextendedproperty@name = N ' view comment ', @value =n ' This is an example of a view annotation. ', @level0type = N ' schema ', @level0Name =n ' dbo ', @level1type = N ' View ', @level1name = N ' View_show_chineselanguage ' --add annotations to stored procedures with extended attributesEXEC Sys.sp_addextendedproperty@name = N ' stored procedure comment
Tags: problem: Sele Generation Understanding Instruction script span writing colA problem has been encountered in recent projects:The system a database version is 2014, while the other 4-5 systems in the project have a database version of 2012.Then you need to reduce the version of 2014 to 2012.Attached: How do I query the database version? SELECT @ @version execute the SQL statement.Try the method of comparing many scripts on the net, the steps are a
Tags: des cWeb style blog http color os using IOTempdb is like a temporary repository for SQL Server, with a wide variety of objects, where data is frequently calculated and manipulated. A large number of operations can put tempdb under a lot of pressure, The cache design in tempdb is designed to alleviate these stresses. This time we will introduce the caching mechanism for tempdb.Before introducing the ca
Label:1. Each table is gradually the object +id, the primary key + auto increment. No GUID.2. Add 4 tracking fields per table: Insertdate,insertuserid, add time and add people, updatedate,updateuserid the last update time and update people, a total of four fields. If you are sure to use SQL SERVER, you can name it. if it is a product, in order to support multiple databases, or separate to good, such as: ins
Background recently we opened a few English version of the database server on the Azure portal, because the default is to install the corresponding database, so there is an instance collation problem, need to adjust the entire instance to chinese_prc_ci_as, to avoid the subsequent occurrence of characters garbled and so on.Before just know can adjust, not actual operation, this time to record the actual operation steps, for our follow-up inspection. E
Tags: style blog c http width comToday in other computers configured SQl server R2, after the installation is complete, Discovery opens the Configuration management Tools service: Show Remote Procedure call failed: 0x800706be such an error messageBefore this problem was encountered, it may be that this computer was previously installed in Visual Studio 2012, the built-in
BackgroundWhen using Oracle or other databases, using the LIKE keyword for fuzzy query is commonly used by people, in the use of pure Chinese environment is very easy to use, there are some wildcards can be used, but in a pure English environment, the size of the need to accurately match the problem, the main reason is the problem of string
FL like '%{0}% ' and
Here like after is a string, so there must be a size-sensitive problem. For example, the following fields of mixed sizeSol
1. Management of tables-naming of tables and columns
Must start with a letter
Length cannot exceed 128 characters
Do not use reserved words for SQL Server
Only use the following characters A-z,a-z,0-9,$,#,_ and so on
2. Table Management--supported data types
Character type
Char fixed length, up to 8000 characters (non-Unico
Label:first, the basic concept of indexed views An indexed view is actually a view that "materialized" a set of unique values into a clustered index, which is materialized almost as a table, and its data is stored in one copy (it consumes hard disk space, but the query is fast, for example, you can set count (), sum () in the indexed view) . The advantage is that it provides a very quick way to find the information behind the view. After the first index (a clustered index that must be for a uni
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.