Today, I encountered a strange problem in configuration: 192.168.x.x, the operating system win2008x64sp1, and the database sqlserver2008 phenomenon: SQL Server query, the local machine is normal, other machines in the same network segment, the query
Create procedure [DBO]. [process name]
Declare
@ Filename nvarchar (100), -- file name
@ Nowday int -- set the time
Set @ filename = 'f: \ jxxdata '+ Cast (Day (getdate () as varchar (2) +'. dat '-- file path and file name
Set @ nowday = Day
From Internet
The syntax differences between SQL Server and access are listed below, so that you can easily changeProgramDatabase query.
Date separator numberAccess:Pound sign (#)SQL Server: marker (')
BooleanConstantAccess: True, false; On,
When I got home last night, I got a call from a colleague who called for help.ProgramProblem: the home page cannot be opened and an exception occurs. Because I am already at home, I can only ask my colleagues to check the problem. The following
Reprinted: http://database.51cto.com/art/201006/206351.htm
This article mainly tells you about the actual operation rules of SQL Server foreign key update (delete) operations. Previously, table relations were generally used in databases,
SQL Server summary data computing total data
Although the reportin service can easily calculate the total and subtotal, no additional work is required for queries. However
Practice:ProgramProvide a total so that it can be useful to display it at
Reference: http://blog.csdn.net/htl258/article/details/4106591,it is very useful.
Use mydb go -- 1. query the logical File Name of the current database: Select file_name (1) as 'file name 1', file_name (2) as 'file name 2'; -- or query by the
Several ASP. NET functions rely on providers to manage data storage and retrieval in data sources. Each provider is specific to a data source. ASP. NET includes a Microsoft SQL server provider for the following ASP. NET functions:
Membership (
Collation
Some may have been using SQL Server for development for some time, but they have not or seldom used stored procedures in projects. Some may think that there is no need to use stored procedures. In fact, when a project is completed in the
SQL native client ODBC driverStandard secure connectionDriver = {SQL native client}; server = myserveraddress; database = mydatabase; uid = myusername; Pwd = mypassword; Are you using SQL Server 2005 Express? Use the connection expression "host name
In SQL Server, there are multiple methods to compare date fields. Several common methods are introduced:
Use the Employees table in the northwind database as the use case table.
1. Use the between... and statement:
Description: between... and is
SQL Server Functions
-- Aggregate functionsUse pubsGoSelect AVG (distinct price) -- calculate the averageFrom titlesWhere type = 'business'
Use pubsGoSelect max (ytd_sales) -- maximum numberFrom titles
Use pubsGoSelect min (ytd_sales) -- Minimum
I. Check the patch version of SQL Server
The patch version check of SQL Server is not as direct as the windows patch version check. If a System Administrator does not know the patch number corresponding to the SQL Server version, it may also
SQL Server Performance Analysis
SQL Server performance analysis Author: tofu chinaasp
If you suspect that computer hardware is the main cause of affecting the performance of SQL Server, You can monitor the load of the corresponding hardware
(1) usage of Scheduler
When multiple users perform concurrent operations on the database, the following data inconsistency occurs:
(1) lost updatesA and B read and modify the same data. The Modification result of one user destroys the Modification
I found that
Update DBO. tblinvtransactionSet area_type = 'groups ',Where (area_type = NULL)The result is zero.
Then find the following articleChange
Update DBO. tblinvtransactionSet area_type = 'group'Where (area_type is null)OK.
A problem
Previously, SQL Server 2005 was installed on disk D, and Ghost had a copy of the operating system Win2k3. After some experience of SQL 2005, it is Based on. Net, and the function and size are mostly compared with the 2 k version; of course, these
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.