Alibabacloud.com offers a wide variety of articles about convert sql server to postgresql, easily find your convert sql server to postgresql information here online.
SQL Server database Regular automatic backup, SQL Server database
Regular automatic backup of SQL Server databases for your reference. The specific content is as follows:
In SQL
server| Data | database | statement
1. View the version of the databaseSELECT @ @version2. View the machine operating system parameters of the databaseEXEC master.. xp_msver3. View Database Startup Parameterssp_configure4. View Database Startup timeSelect CONVERT (varchar, login_time,120) from master. sysprocesses where spid=1To view the database server name and
(typically the hostname/sql server), click the drop-down box can be found, authentication selected "Windows Authentication" (General local SQL Server is this authentication, if "SQL Server Authentication" is selected, the user na
1. View the version of the database
SELECT @ @version
2. View the machine operating system parameters of the database
EXEC master.. xp_msver
3. View Database Startup Parameters
sp_configure
4. View Database Startup time
Select CONVERT (varchar, login_time,120) from master. sysprocesses where spid=1
To view the database server name and instance name
print ' Server
published by Microsoft on CodePlex that can migrate SQL 2005 and SQL 2008 databases to SQL Azure. The latest version is 3.3, which is:http://sqlazuremw.codeplex.com/releases/view/32334SQLAZUREMW detects and corrects the incompatibility between SQL Server 2005/2008 and
1. view the database versionSelect @ version2. view the operating system parameters of the machine where the database is locatedExec master .. xp_msver3. view database startup parametersSp_configure4. view the database startup timeSelect convert (varchar (30), login_time, 120) from master .. sysprocesses where spid = 1View database server name and Instance namePrint 'se
1. View the version of the databaseSELECT @ @versionSeveral common types of SQL Server patched version numbers:8.00.194 Microsoft SQL Server 20008.00.384 Microsoft SQL Server SP18.00.532 Microsoft
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
Label:Unlike programming languages such as C #, Java, in SQL Server, the initial value of a numeric type such as int is null, and the assignment operator can be assigned null, and a variable with a value of NULL cannot display its value in the message bar, only null is displayed in the result bar. At the same time, the option to create a database causes the concatenated result to be null when the character
Server" in the top left cornerThe server name of the SQL Server, the name of the target repository and the user account are then entered.After entering, you will see the following warning messages.There are several reasons why SQL Serve
statement that was submitted in SQLCLR.
Dynamic SQL comes in two ways: non-parametric and parameterized. In non-parameterized SQL, the developer stitching the parameters into the SQL string. Like what:Select @sql = ' Select MyCol from tbl where keycol = ' + convert (v
SQL Server Stored Procedure (to) and SQL Server Stored ProcedureSQL Server Stored Procedure
Stored Procedures in Transact-SQL are very similar to methods in Java. They can be called repeatedly. After the stored procedure is execut
SQL Server trigger and SQL Server triggerSQL Server triggers
A trigger is a special type of stored procedure, which is different from the stored procedure we introduced earlier. A trigger is triggered by an event and automatically called for execution. The stored procedure c
characteristics:
Everything running in process boils down to the same platform assembly code. The CPU can ' t tell the difference between the code that's providing WIN32 functionality to SQL Server or native Linux cod E.
Even though the architecture shows layering, there is no real boundaries within the process (there is no spoon!). IF code running in SQL
Comparison of functions between Visual Basic for Applications and SQL Server Transact-SQL (ADP)Note that the information in this topic applies only to the Microsoft Access Project (. ADP ).
The following table compares common functions in Microsoft Visual Basic for Applications (VBA) and Microsoft SQL
SQL Server database management common SQL and T-SQL statements
1. view the database version
Select @ version
2. view the operating system parameters of the machine where the database is located
Exec master .. xp_msver
3. view database startup parameters
Sp_configure
4. view the database startup time
Select
.. sysdatabases d Where sid not in (select Sid from Master .. syslogins where name = 'sa ')OrSelect dbid, name as db_name from Master .. sysdatabases where Sid
14: query the fields and Data Types of a tableSelect column_name, data_type from information_schema.columnsWhere table_name = 'table name'
[N]. [title]:Select * From tablename order by customername
[N]. [title]:Select * From tablename order by customername
1. view the database versionSelect @ version
2. view the operating sy
returned.The table of bank deposits (bankMoney) is as follows:IdUserIDSexMoney001ZhangsanMale30002WangwuMale50003ZhangsanMale40Requirement 1: query the stored procedure of bankMoney
create procedure sp_query_bankMoneyasselect * from bankMoneygoexec sp_query_bankMoney
Note * you only need to replace the SQL statement in T-SQL with the name of the stored procedure during usage, which is convenient!Instance 2
Common Data Types in SQL Server: SQL Server Data Types
To http://www.cnblogs.com/andy_tigger/archive/2011/08/21/2147745.html
Bit integerThe bit data type is an integer, and its value can only be 0, 1, or null. This data type is used to store data with only two possible values, such as Yes, No, True, False, On, or Off.
SQL Server date function, SQL Server date
Current System Date and Time
Select getdate ()
14:52:27. 123Extract data from date
Day (), month (), year ()
Select getdate ();-14:52:27. 123Select YEAR (getdate ();-2015Select MONTH (getdate ();-6Select day (getdate ();-18
Date Format ConversionCONVERT
Select
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.