Creating ************************ using the Adodb.connect object
Dim oconn
Dim Sdatabasename
Sdatabasename = "Codecreatedb"
Set oconn = Server.CreateObject ("ADODB. Connection ")
oConn.Open "Provider=sqloledb;data source= (local); User Id=sa;
/* Required Results: Date of day
Known conditions: The year, month, day of the week, in the month of the week
For example: Hope to find out 2004-11-22
Known conditions: 2004, November, Monday, this day in November is the fourth week
DECLARE @year
Build the SQL database, set the user name and password, the connection is good, but the above problems, the original trap is not set SQL Server logon authentication mode for mixed authentication mode, because the SQL Server installed after the
ADO connects MS SQL Server 2000 programs
function Adothread (param:pointer): integer; stdcall;
Var
Con, cmd:variant;
Begin
CoInitialize (nil);
Con: = GetNewConnection (...);
If Varisempty (Con) Then
Begin
Not connected, exiting
Exit
End
SQL Server queries record averages and sorted statements Query the student's average score and rank, SQL 2000 is completed with a subquery, when the average score is repeated, the position is left vacant and two kinds of positions are not retained.
Long time, and found a new problem, is the master table paging query. For example: order form and order list, request is Inquiry order, second page, 10 per page
Copy code code as follows:--use Row_unmber () to implement pagingThe result we wanted
The database tutorial does not have a valid owner, so the database diagram support object cannot be installed. To continue, first set the database owner to a valid login using the file page of the Database Properties dialog box or the ALTER
This section collects a large number of SQL Server functions to focus on an article, from simple SQL query functions, character processing functions, stored procedure functions, statistics, character interception functions.
SQL Server function
Reading a picture is much simpler than storing it. Output a picture all we have to do is use the BinaryWrite method of the Response object.
Format the picture at the same time. In this article, we'll discuss how to retrieve a picture from SQL Server.
--clearing the log in SQL2008 must be done in simple mode, and then back to full mode when the purge is complete.Use [master]GO--gpslocus is the name of the database to clear the logALTER DATABASE [Jm-fmis] SET RECOVERY simple with no_waitGOALTER
If two threads modify the same record in the database at the same time, it causes the latter record to overwrite the previous one, causing some problems.For example:A ticketing system has a number of votes, the client every call to the ticket method,
Because of the project requirements, a. NET MVC login registered something site must discard SQL Server data to use the MySQL database, so I encountered some problems and found the corresponding solution,Because SQL Server differs from MySQL's data
Abstract: In a world where key data of a task is stored in different heterogeneous sources, the Extensible Markup Language (XML) a standard format provides a powerful mechanism for data exchange between different applications and integration between
Recently, the company is preparing to develop a small project. The database uses SQL server 2000, the development platform is Java2, and the development tool uses JBuilder9. So I carefully analyzed the database connection method in this case. As we
The OperatorInfo table contains [OPERATOR_NO], [OPERATOR_PWD], [OPERATOR_NAME], [GROUP_ID], [GROUP_NO], [SKILL_LEVEL], [OPERATOR_TYPE], [PAUSENUM], [OPERATOR_ACD_TYPE][OPERATOR_NO] must specify a starting value and accumulate the value. Others are
Is it meaningless to use backup log with NO_log in simple recovery mode?1. Clear logsDump transaction database name WITH NO_LOG2. Truncate transaction logs:Backup log database name WITH NO_LOG3. Compress database files (if not compressed, the
Copy backup onlyI think a very useful feature is to copy only the backup, which allows you to copy the backup without disrupting the order of other backup files during the backup process.Bay. When using SQL Server 2000, if you run a special full
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.