Recently, batch import is required in the background (that is, reading data from Excel and then importing data to SQL)
I tried to use SQL2000 to make a success and it was quite simple.
There was a problem with the upload time to the network,
How to clear SQL server logs
Method 1:
Step 1:
Backup log database_name with no_log
Or backup log database_name with truncate_only -- no_log and truncate_only are synonymous here. You can execute either of them.
Step 2:
1. compress all data and
Use Insert and select to Add rows
To create a new table using the values in another tableSelect lastname, firstname, phoneInto DBO. phonelist492From person. ContactWhere phone like '20140901'
Use the values clause to specify data values for
Use convert to convert the date format in SQL Server
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Select
Convert
(
Varchar
(
10
),
Getdate
(),
112
)
--
Yymmdd 2010
SQL Server's random number function rand ()
From: http://tieba.baidu.com/F? Kz= 607363268
In SQL Server, there is a random function rand (), and many new users may not know this function. Now I will write some random number generation techniques
Excel-based SQL Server digital import Solution
1. Set the cell format to regular2. Imported SQL statements
Use testExec sp_configure 'show advanced options', 1ReconfigureExec sp_configure 'ad hoc distributed queries ', 1ReconfigureGoSelect *
When I first started using SQL Server 2000, I gave me a lower limit. However, the final solution is solved. Details and solutions:
The operating system for installing SQL Server 2000 is Windows 2000 license sion edition, and the simplified Chinese
Definition:A trigger is a special stored procedure that is automatically executed when you attempt to execute a specified data modification statement on a specified table. Microsoft SQL Server allows you to create multiple triggers for any given
System functions in SQL Server are very useful objects and can help us implement many
Algorithm Function. The following is a summary of the built-in functions for system time:
1
. Dateadd: Usage: dateadd (timeinterval, number, date) adds the
Update table name set text field name = replace ( convert ( varchar ( 8000 ) , text field name ) , 'replacement characters' , 'value replaced with ' )
1. Update ntext:(1) varchar and nvarchar support replace, so if
First, let's look at the following table and its data:
T_product
Figure1
The table has two fields:XHAndPrice, WhereXHIs the primary index field, and the following query results must be obtained:
Figure 2
As shown in the preceding query
Http://www.aspspider.net
Web hosting package
For ASP. NET programmers
$0.00 monthly seconds.
No advertisements in your site.
SQL Server express support.
MS access support.
Up to 100 MB disk space.
2 GB monthly data transfer.
Recently I encountered a very common problem: the computer on the client side is always poisoned, which leads to database loss. So today I spent a little time doing a simple backup tool!
1. Set the followingCodeCopy to notepad;2. Set two
Error message:Note:An error occurred while executing the current Web request. Check the stack trace information to learn about this error andCodeDetailed information about the cause of the error.
Exception details:System. Data. sqlclient.
In Oracle, row-and-column swaps can be achieved through decode, and SQL server also has corresponding measures; Case
Below is a column
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
1
--
Table Name: tablenameTime Field name: thedate
Query records of this monthSelect * From tablename where datepart (mm, thedate) = datepart (mm, getdate () and datepart (YY, thedate) = datepart (YY, getdate ())
Query records of this weekSelect *
A few days ago, I also encountered a problem where the actual size of the database was 600 mb and the actual size of the log file was 33 MB,
I tried a variety of methods, such as shirnk database and truncate log file. Regardless
Then find the
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.