SQL Server - Bài 9
... Integrity(between tables)User-definedintegrity MicrosoftMicrosoftEnforcing Data IntegrityDeclarative data integrityDefined in object definitionsEnforced automatically SQL Server by using constraints, ... USE NorthwindALTER TABLE dbo.EmployeesADD CONSTRAINT CK_birthdateCHECK (BirthDate > '0 1-0 1-1 90 0' AND BirthDate <getdate()) MicrosoftMicrosoftDEFAULT Constra...
Ngày tải lên: 15/11/2012, 10:59
SQL Server - Bài 1
... objects MicrosoftMicrosoftExample MicrosoftMicrosoftOutlineIntroduction to SQL ServerRelational Data ModelExploring SQL Server Architecture Data Access Architectures SQL Server Services & Tools SQL Server EditionsEvolution of SQL Server Summary MicrosoftMicrosoftData ... IDE MicrosoftMicrosoftSQL Server EditionsEnterprise (Developer) EditionStandard EditionWorkgro...
Ngày tải lên: 15/11/2012, 10:59
SQL Server - Bài 2
... created by users MicrosoftMicrosoft Surface Area Configuration New Installation SQL Server 2008 SQL Server 2005 SQL Server 2008 Services disabled and features not installed by default State of ... Environment Registered Servers MicrosoftMicrosoft Outline √ Integrated Management Environment √ Navigation √ Administering Databases Maintaining SQL Server Database Writing T...
Ngày tải lên: 15/11/2012, 10:59
SQL Server - Bài 3
... functions MicrosoftMicrosoft- ASCII( )- CHAR( )- UPPER( )- LOWER( )- LEN( )- LTRIM( )- RTRIM( )- LEFT( )- RIGHT( )- AVG( )- MIN( )- MAX( )- SUM( )- COUNT( )- SQUARE( )- SQRT( )- ROUND( )- GETDATE()-DATEPART(YY,getdate() )- DATEDIFF(X,Y,Z )- ... T -SQL for Data ManipulationVu Tuyet Trinhtrinhvt-fit@mail.hut.edu.vnHanoi University of Te...
Ngày tải lên: 15/11/2012, 10:59
SQL Server - Bài 4
... image Others sql_ variant, timestamp, xml… MicrosoftMicrosoft User-defined Data Type Extending the SQL type system as alias data types that consist of a single SQL Server system data ... data management • Enterprise-scales only Example • Windows File Servers • NetApp NetFiler • EMC Centera • Fujitsu Nearline • SQL Server VARBINARY(MAX) Use File Servers DB Application Ap...
Ngày tải lên: 15/11/2012, 10:59
SQL Server - Bài 6
... THEN " ;-- " ELSE stateEND,city =CASE WHEN pub_id = " ;99 99& quot; THEN "LYON" ELSE cityENDWHERE country <> "USA" ORpub_id = " ;99 99& quot;Two ... access to the data in a result set for T -SQL statements in scripts, stored procedures, and triggers MicrosoftMicrosoftCursor ImplementationsTransact -SQL Server CursorsUsed in s...
Ngày tải lên: 15/11/2012, 10:59
SQL Server - Bài 7
... [Order Details] VALUES(10525, 2, 19. 00, 5, 0.2)Order DetailsOrder DetailsOrderID105221052310524ProductID10417UnitPrice31.0 09. 6530.00Quantity 792 4Discount0.20.150.0 5 19. 002 0.210523Insert statement ... loggedinsertedinserted10523 2 19. 00 5 0.2TRIGGER Actions ExecuteOrder DetailsOrder DetailsOrderID105221052310524ProductID10417UnitPrice31.0 09. 6530.00Quantity 792 4Discount0.20.1...
Ngày tải lên: 15/11/2012, 10:59
SQL Server - Bài 8
... ProviderSystem.data.dll+{System.data}….IDbConnectionIDbCommandIDataReaderIDbTransactionIDbDataAdapter….System.data.dll+{System.data.SqlClient}….SqlConnectionSqlCommandSqlDataReaderSqlTransactionSqlDataAdapterSqlCommandBuilderWarning: There is no IDbCommandBuilder MicrosoftMicrosoftDataReaderFast Forward-Only/Read-Only ... create SqlMetaData to describe the resultSqlMetaData[] columns = new...
Ngày tải lên: 15/11/2012, 10:59
SQL Server - Bài 10
... EnumLocks• SQL Server Profiler • System Monitor MicrosoftMicrosoftConsiderations for Using TransactionsTransaction guidelinesKeep transactions as short as possibleUse caution with certain Transact -SQL ... LogIntroduction to Transactions and LocksManaging Transactions SQL Server Locking & Managing Locks MicrosoftMicrosoftTransaction Log ArchitectureWrite-Ahead transaction...
Ngày tải lên: 15/11/2012, 10:59
SQL Server - Bài 11
... Column 2loanloanisbn copy_no title_no member_no3423423435104353535374452783445out_date 199 8-0 1-0 6 199 8-0 1-0 4 199 8-0 1-0 4 MicrosoftMicrosoftCreating Index OptionUsing the FILLFACTOR optionUsing the PAD_INDEX ... ConFunkWhite.....................470401470402470403......RuddWhiteBarr.....................470501470502470503......SmithOtaJones.....................47070...
Ngày tải lên: 15/11/2012, 10:59