Symptom
Although the terms "login" and "user" are frequently exchanged, they are quite different. Logon is used for user authentication, while database user accounts are used for database access and permission verification. Logon is associated with
The following statement is usually used to fix database corruption:
========================================================== ===========-- Fix a table in the database -- use the following statement to fix exec sp_dboption 'databasename ',
Create Table # errorlog (logdate datetime, processinfo varchar (max), text nvarchar (max ))Insert into # errorlog exec master .. xp_readerrorlogSelect logdate from # errorlog where text like '% SQL Server is starting %'Drop table # errorlog
Create proc cleanup @ SQL varchar (2000) asset @ SQL = Replace (@ SQL ,'','') declare @ run bit -- mark of the continue loop declare @ dotindex as intdeclare @ tablename as varchar (100) set @ run = 1 while (@ run = 1) begin if (LEN (@ SQL)> 0) --
When installing SQL Server, the following error occurs:PreviousProgramInstall a file that has been suspended on the installation computer. You must restart the computer before running the installer !.After searching for half a day, I didn't find any
1. You need to import an Excel file to the database during work, and modify the relevant table to import it without mentioning it. [item change price] The imported execl table sales?price commodity price list
Update salesprice priceSet salesprice
The example of ASP. net importing Excel data into the SQL Server database calls the stored procedure.
Cmd. commandtext = "proc_address"; this statement calls the stored procedure "proc_address"This Stored ProcedureCodeIs:Create proc
first, if you want to remotely access SQL Server 2000 directly (remember to do so), you must understand port 1433, which is the default port of SQL Server, port 1433 is the external service port provided by SQL Server. You can understand it as
Today, I helped my students change an old system as a graduation design. This system technology is definitely lagging behind ASP + access. In order to cope with the teacher's acceptance, the programming of this student was not very good, and it was
Connecting to the database... classNotFound... exception: I found that the jar package has not been imported. (I forgot to import the jar package.) Then I downloaded the jar package from the Microsoft official website (click to go To the download
SQL Server-based data generic
Using system; using system. collections. generic; using system. LINQ; using system. text; using system. data; using system. data. sqlclient; using system. configuration; namespace Dal { /// // Description:
This error is generated when a query statement is executed:
With dm. ADOQuery1 doBeginClose;SQL. Clear;SQL. Add ('select hyxx. *, hyjbxx. jbmc from hyxx, hyjbxx where hyxx. jb = hyjbxx. jbid'); Open;End;
Copy the SQL statement to the query
A Transaction is a unit of concurrency control and a sequence of user-defined operations. These operations are either done or not done. They are an inseparable unit of work.
Through transactions, SQL Server can bind a set of logical operations to
/***SQL server 2000Security*/ --Access to the Registry extended stored procedure is prohibited, and the corresponding xpstar. dll file of the extended process is deleted at the same time (deleting this file affects task
Code: create table # TMP (
Id int,
S nvarchar (100 ),
E nvarchar (100 ))
Insert into # TMP (ID, S, E)
SELECT 2000, UNION ALL
SELECT 4000, UNION ALL
SELECT 6000, UNION ALL
SELECT 30000, UNION ALL
SELECT 50000, UNION ALL
SELECT 40000
SELECT max (a.
In the web, security is mainly reflected in two aspects: one is program security, that is, preventing malicious code from being inserted into the web page; the other is database security, which we can often back up the database for implementation.In
1. view the database versionSelect @ version
Common SQL SERVER patch versions:
8.00.194 Microsoft SQL Server 20008.00.384 Microsoft SQL Server 2000 SP18.00.532 Microsoft SQL Server 2000 SP28.00.760 Microsoft SQL Server 2000 SP38.00.818 Microsoft SQL
The website has a random retrieval function implemented using the NewGuid of SQL Server.
I don't know how MSSQL is implemented internally. In short, it is quite slow. Generally, I use 140 ms + for simple queries (2 k + for data search and 12 k + for
Condition:
1. Entity Framework Code First
2. The same context (or a transaction)
3. Use MSSQL
First, query a view, update the table associated with the composition view, and then query the view with the same conditions. No updated data is
The generic database category class introduced in this article is a base class actually used by my personal website. It is a set of common database access code sets, most of my website's accesses to the database use this class. Its main functions
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.