Protect your data-SQL Server roles and permissions

In SQL Server databases, roles and permissions are used to restrict each user's operations on the database. Their role is equivalent to a "Visa". If you do not have a visa, you will naturally not be able to embark on a land outside the motherland.

SQL Server knowledge architecture-Stage 1 Summary

I have been studying SQL Server for more than 20 days. I followed the instructor's video. Although it is impossible to understand all of them, it is necessary to summarize the learning in the previous stage. Otherwise, the knowledge that is

Use of SQL Server Stored Procedure set nocount {on | off.

Set nocountThe returned results do not contain information about the number of rows affected by the transact-SQL statement. SyntaxSet nocount {on | off} NoteWhen set nocount is on, no count is returned (indicating the number of rows affected by

Ms SQL server grants users stored procedure execution permissions in batches

Set nocount onDeclare @ procedure sysname -- used to obtain the stored procedure name set, @ STR nvarchar (200) -- set fixed variables for ease of use, @ Str1 nvarchar (200) -- saves the execution string for cyclic operations, @ Username nvarchar (30

Insert XML document into SQL Server database (1)

We can use the openxml function and the two system stored procedures sp_xml_preparedocument and sp_xml_removedocument in SQL Server 2000 to map the XML document to the corresponding fields and insert them into the database. The system stored

SQL Server delete a specified record

Use SQL statements to delete a specified recordDelete a specified record using the delete statement in an SQL statement.The delete statement syntax is as follows:Delete from [where ]Parameters:Table Name: name of the data table.Where: Specifies the

Use fiddler and SQL Server Profiler to test database bottlenecks

A Foreign ForumArticle, First add to favorites and then try again when you are free If you are familiar with these two tools, there is no problem ~~~ How to Use fiddler and SQL Server Profiler to look for database performance bottlenecksPosted

How to remotely back up the database SQL server in the LAN today

-- Allow advanced configuration optionsExec sp_configure 'show advanced options', 1-- ReconfigureReconfigure-- Enable xp_cmdshellExec sp_configure 'xp _ Your shell', 0-- ReconfigureReconfigure-- Enable xp_cmdshellExec sp_configure 'show advanced

SQL Server parses string table value functions

In databases, strings in certain formats are often used for parsing. I have previously written a similar method, and today I have written another one, and I will share it with you. Create Function [DBO]. [func_splitstringtotable] (-- string to be

SQL Server sa User Password modification method

When SQL Server Management studio is connected using Windows, select windows and SQL for "security" in "attribute" of the real column for verification, restart the SQL Server, create a new query, and execute the followingCode (Several different

SQL Server ranking function

Row_number (): indicates the number of rows in the overall result set, and Adds 1 in sequence. Rank (): group (or not group) first, then each group of rows indicates the serial number, and Add 1 in sequence. If the value of the sequence in this

ADO. NET Programming SQL Server

This blog introduces some classes in ADO. Net, which are not very familiar with coding. Therefore, make a summary! Oledbconnection class: provides a data source link Parameters Description Provider Specified oledb provider

SQL Server SELECT statement Basics

Later I found that this part was not completed, so I made a supplement to the SELECT statement-nested query and join query. SQL Server statements are classified into three types: Data Definition Language (DDL): used to define the data structure.

How do I... Identify and delete duplicates from SQL Server tables?

Source: http://blogs.techrepublic.com.com/datacenter? P = 372 & tag = rbxccnbtr1 Date: June 3rd, 2008 Author: Susan Harkins Category: Microsoft, databases, SQL Server Tags:Microsoft SQL Server, server, column, record, table, databases, storage,

SQL server resolves error18456 and error2812

When I started sqlserver2000 login in SQL Server mode today, I suddenly reported error 18456. I tried a lot of methods on the Internet and finally solved the problem by using the following methods. I changed the sa Login Password, however, the error

JSP connection SQL Server 2000 database code

Package util; Import java. SQL. connection;Import java. SQL. drivermanager;   Public class conndb {Public static string driver = "com. Microsoft. JDBC. sqlserver. sqlserverdriver ";Public static string url = "JDBC: Microsoft: sqlserver: // localhost:

SQL Server programming series (2): operations on common SMO objects

In the previous article, Zhou Gong briefly described some basic concepts of SMO. In fact, the SMO architecture is far more than that described by Zhou Gong in the previous article. It is a complete structure diagram provided by msdn:

Diagnosis and identification of SQL Server deadlocks

Diagnosis and identification of SQL Server deadlocks Deadlock often occurs in sqlserver. You must connect to the Enterprise Manager> Manage> current activity> lock/process ID to find the deadlock process and locate the cause of the deadlock.The

How to append a text field value to a database in SQL Server

How to append a text field value to a database in SQL ServerAppend and update the text field values. A simple update statement was used at the beginning of the operation. An error occurred, In the past, fields of the text and ntext types cannot

SQL Server Lock Mechanism

SQL Server Lock Mechanism All SQL Server activities produce locks. The smaller the lock unit, the more concurrent processing capability the higher the management lock overhead. It is difficult for SQL Server to find a balance between concurrency and

Total Pages: 923 1 .... 885 886 887 888 889 .... 923 Go to: GO

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.