Display SQL Server version information

Display SQL Server version information Description Display SQL Server version information. Supported platforms SQL Server 2000Yes Script code Strdbservername = "." Set objsqlserver = Createobject ("sqldmo. sqlserver ")Objsqlserver.

Before you reinstall ms SQL Server 2000, you must completely delete the original installation file.

To reinstall ms SQL Server 2000, you usually need to completely delete the original installation file. You can't reinstall it before. By default, it is occupied. Use the following methods to handle installation suspension: 1. Enter Regedit in

How to connect to SQL Server when a logon trigger error occurs

Error: If the logon trigger cannot be properly executed, the logon will fail.For example, if this trigger is created, you can design the following code to achieve the purpose of failure.Copy codeThe Code is as follows:Create trigger BadLogonTrigger

How to convert a backup SQLServer database to an SQLite Database

Operation Method: first install SQLServer2005, and remember the user name and password you set during installation. The following describes how to restore the database file epdmdb20101008.bak backed up by SQLServer as an example. ① Open SQLServer2005

SQL Server Regular Expression replacement function

-- SQL Regular Expression replacement functionCopy codeThe Code is as follows:CREATE function dbo. regexReplace(@ Source ntext, -- original string@ Regexp varchar (1000), -- Regular Expression@ Replace varchar (1000), -- replace value@ GlobalReplace

SQL Server Case Function Application

-- Simple Case FunctionCASE sexWHEN '1' THEN 'male'WHEN '2' THEN 'female'ELSE 'others' END-- Case search functionCase when sex = '1' THEN 'male'WHEN sex = '2' THEN 'female'ELSE 'others' END These two methods can achieve the same function. Simple

How does MSSQL solve the problem of truncating strings or binary data?

Map data is stored in sqlserver 2008. When mapxtreme7 is used for development and Feature. Update () method is used, the error prompt contains "MSSQL truncates string or binary data"The main reason is that when a field is assigned a value, the

Sqlserver supports locating the current page and customizing sorted paging SQL statements (rejecting dynamic SQL statements)

1. Scenario: query by student ID and return all students in the student's class. You can automatically locate the student ID page in the query condition by PAGE, custom sorting, and result set.Copy codeThe Code is as follows:Create proc [dbo].

Cont () and Where (). Count () sometimes have such a big performance difference!

I previously added a field to this list to help me prompt the administrator if the product list has a Status field such as modification, so I can conclude that this field is added.First, let's take a look at how I previously wrote this prompt Status

An interesting SQL proposition uses a statement to switch the true/false values of the BIT type.

Of course, the first reaction is to use stored procedures. Determine the original field value and then UPDATE it.I cannot find a solution after a rough query on the Internet. I have a very interesting result, and I don't even need to use

How to maintain data consistency in SQL Server databases

Depending on the implementation policy, there are three main types: snapshot replication, transaction replication, and merge replication. The three replication types have their own characteristics and are applicable to different scenarios. Generally,

Common SQL function statements

1. Adjust Memory Sp_configure 'show advanced options', 1GORECONFIGUREGoSp_configure 'awe enabled', 1GORECONFIGUREGoSp_configure 'min server memory ', 1024GoSp_configure 'max server memory ', 3072GORECONFIGUREGoPS: OS needs to open AWE and add/3G

Connect to SQL server 2000 using Java

First: connect to the database through ODBCJAVA's cross-platform processing capabilities (Write Once, Run Anywhere) and excellent image processing capabilities (I believe there is no such language that can surpass JAVA's network processing

The table title in "SQL event probe" in mssql, such as CPU, Read, Write, Duration, SPID ......

SQL event probe data columnThe SQL event probe allows you to select data columns when creating a template. The list of data that you want to return when running the trail. Data displayed in the SQL event probe can be displayed in the event sequence,

SQLServer: Exploring the differences between EXEC and sp_executesql

Summary1. EXEC usage2. Use of sp_executesqlMSSQL provides two types of commands for dynamic execution of SQL statements: EXEC and sp_executesql. Generally, sp_executesql is more advantageous. It provides an input and output interface, but EXEC does

Overview of the importance of n characters in SQL Server Field Types

Unicode Character Set is generated to solve the incompatibility problem of character sets. All its characters are expressed in two bytes, that is, English characters are also expressed in two bytes.If you are still struggling with this issue, let's

Left join right join in SQL

The following are their commonalities:1. Concepts about left and right tables. The left table refers to the table on the left of left join in the SQL statement, and the right table refers to the table on the right of left join.2. In a large table,

Download MSSQL differential backup software with system Permissions

I had no intention of entering a website when I was searching for information on the internet yesterday. I entered the website in a confused manner. I couldn't raise my right. Then I added the Q Number of the service provider to ask a Social

Insert an explicit value for the IDENTITY column in the SQL Server database

If we insert a value in the ID column, for example:Insert member (id, username) values (10, 'admin ')The query analyzer will return an error message:Reference contentServer: Message 544, level 16, status 1, Row 1When IDENTITY_Insert is set to OFF,

SQL outer link Operation summary inner join left join right join

Database Operation statement7. Outer Join-cross Query7.1 Query7.2 equijoin7.3 right Outer Join7.4 left Outer Join7.5 update operationsIntroduction:External Connection and self-connectionInner join (equivalent join) returns only rows with equal join

Total Pages: 923 1 .... 296 297 298 299 300 .... 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.