The main content of this article is as follows:
Chapter 1 Introduction to PL/SQL programming
1.1 SQL and PL/SQL
1.1.1 what is PL/SQL?
1.2 advantages or features of PL/SQL
1.2.1 facilitating the running of client/
not discuss how to go directly to an instance of SQL Server through a TCP port. For more information about SQL Server Browser services and connecting to instances of SQL Server, see the following topics in
only get the recordset that was last returned. A new version of SQL Server has made some improvements, and you can specify the recordset to return.create proc TestProc2 as select object_id, name from sys.objects; select name, schema_id, create_date from sys.objects; go select * from sys.dm_exec_describe_first_ Result_set_for_object (object_id ( ' TestProc2 ' ), 0); select * from sys.dm_exec_des
, because the table memory is not involved, and you can query SQL Server Books Online for specific usage.Value has the following usage:The option_name is enabled (true, on, or 1) or disabled (false, off , or 0)Example:EXEC sp_tableoption ' Department ', ' pintable ', ' true 'Department The data table to reside memoryEXEC sp_tableoption ' Department ', ' pintable
Tags: must know basic tutorials from the zero-start stage Catalog Professional head log understandingToday, sharing a beginner program on how to learn to use MS SQL Server, I've come up with a lot of resources from the Internet, like SQL Server2008 Programming Primer Classic (3rd edition),Head First
. The alias of the server is the pseudo name of the server the client application is using to connect to, and the server in the connection property parameter is the true server name, which can be the same or different. This is useful for client application programming, so th
');Select stuff (SELECT ';' + Name FROM [dbo]. [Books] for xml path (''), 1, 1 ,'');As shown in the following figure:Cross-Origin operations The code is as follows:Copy code -- Modify the title attribute based on the ID in the Books table and the XmlData ID attribute in the Xml_Table table.-- That is, MSSQLServer2005 is encoded according to The 0001 name in
dedicated to SQL Server.SummarizeThis article discusses the most common SQL Server optimization settings. It is important to have baseline determination in the test environment before and after making the change, so that you can assess the impact on your system under a typical load.Analysis of deadlocks in SQL
operators can connect multiple logical expressions. Logical operators include AND, OR, and not. Like comparison operators, logical operators return boolean data types with TRUE or FALSE values.
String concatenation operatorThe String concatenation operator can concatenate strings using the plus sign (+). This plus sign is called the String concatenation operator. For example, for the SELECT 'abc' + 'def 'statement, the result is abcdef.
The priority levels of operators are as follows:Parenthese
During the project development process, the operation of the database is often encountered in the process of table structure, stored procedures and other modifications, when the general operation is done directly in SQL Server Enterprise Manager in the operation, or Query Analyzer to execute the relevant statements, and we in the actual application for security, Generally can be as few as possible to contac
If you are in charge of a SQL Server-based project or you have just been in touch with SQL Server, you may have to face some database performance problems, this article will provide you with some useful guidance (most of which can also be used for other DBMS ).Here, I am not going to introduce the tips for using
, intercept three, index starting from 1 3, Time function (all the time to add single quotation marks) --Get current system time getdate (); Sysdatetime () Get server time --Get Month day --Determine if the date is correct isdate ()Select IsDate () returns the bit type, False is 0,true is 1 --Add Time DateAddSelect DATEADD (Time to add, time) Year value, month value, day value --return days of the week DatenameSelect Datename (Weekday, time)You can al
Summary
This article describes how to map standard Logon and integrated logon to solve the permission issue when moving databases between servers running SQL Server.
More information
When you move a database from a server running SQL Server to another
Manager, use the following procedure:
Expand the server group.
Right-click on the server and click Properties.
In authentication for the Security tab, click Windows only.
For more information, see "Authentication Mode" in SQL Server Books Online or MSDN.
Isolate your
is an abbreviation for Internet Information Services The Internet Information Service This tool enables you to define registered virtual directories and create associations between virtual directories and SQL Server instances on the computer running IIS
1.3.10 DTC Client Support
DTC distribute Transaction Coordinator distributed Transaction Coordinator for providing and managing distributed transactions
current number of nested layers:
Create proc proc_1 -- get artist id
@ Yid int output
As
Select top 1 @ yid = yirenid from yiren
Where nicheng = 'Sister Furong'
Print 'stored procedure 1 in '+ cast (@ NESTLEVEL as varchar) +'
Go
Create proc proc_1_1 -- get the fan id
@ Fid int output
As
Declare @ yid int
Exec proc_1 @ yid output
Select @ fid = yonghuid from fensi
Where yirenid = @ yid
Order by yonghuid desc
Print 'stored procedure 1_1 in '+ cast (@ NESTLEVEL as varchar) +' level'
Go
Create proc
Manager of SQL Server, follow these steps:
Expand a server group.
Right-click the server and click Properties.
On the Security tab, click authentication only for Windows.
For more information, see "Authentication Mode" in SQL Server
structure, PL/SQL program data, SQL in PL/SQL, PL/SQL application construction, and advanced PL/SQL topics. this article systematically discusses PL/SQL and how to use it effectively. Oracle PL/
Insert into OPENROWSET (' microsoft.ace.oledb.12.0 ', ' Excel 12.0;database=c:\c.xlsx ', ' Select field 1, Field 2 from [sheet1$] ')Select field 1, Field 2 from tableToday, the unit of an ASP, there is a function is exported data, found an export error, error content is:SQL Server blocked the component ' Ad Hoc distributed Queries ' STATEMENT ' Openrowset/opendatasource ' access because this component has been shut down as part of this server's securi
maximum server memory. If this parameter is not set, BPool only sets about 128 MB for use by other processes and locks all the remaining physical memory on the machine. Then, BPool uses the memory above 3 GB (AWE memory) as the paging files for data and indexing. It splits these areas (above 3 GB) the physical memory page is mapped to the appropriate virtual memory address space, so that the 32-bit pointer can be referenced.
ReviewThis part is not tr
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.