MSSql Work Book | UserPreferences |
OPEN testcursor
FETCH NEXT/PRIOR/FIRST/LAST FROM testcursor
FETCH RELATIVE 0 FROM testcursor
FETCH ABSOLUTE 0 FROM testcursor
UPDATE testtb2
SET test_text ='test'
WHERE CURRENT OF testcursor
CLOSE testcursor
DEALLOCATE testcursor
xml Áö¿ø
openxml
EXEC sp_xml_preparedocument @hdoc OUTPUT,
anyÀÇ °æ¿ì 1, allÀÇ °æ¿ì 30º¸´Ù Ä¿¾ß ÇÔ.
(any Å°¿öµå´Â In°ú Ư¼ºÀÌ ºñ½Á)
order by ~ with rollup : ¿ä¾à Áý°è.
with cubeÀÇ °æ¿ì¿¡´Â A -> B ¹æÇâÀ¸·ÎÀÇ ¿ä¾àÁý°è »Ó¸¸ÀÌ ¾Æ´Ï¶ó B -> A ¹æÇâÀ¸·ÎÀÇ ¿ä¾àÁý°èµµ Áö¿øÇÑ´Ù.
ntext, text, image
delete like this ; DELETE books FROM titles WHERE books.title = titles.title AND titles.royalty = 10
truncate table is not LOGGED!
bcp tempdb..testtb out c:\testtb.txt -c -T
bcp tempdb..testtb2 in c:\testtb.txt -c -T
(´ë»ó Å×À̺íÀº ¸¸µé¾îÁ® ÀÖ¾î¾ß ÇÔ)
or
BULK INSERT testtb2
FROM 'c:\testtb.txt'
WITH (DATAFILETYPE = 'char')
* bcp´Â Å×ÀÌºí ´ÜÀ§ÀÇ ´ë·® Insertion¿¡ ÀûÇÕ
linked server ; sp_addlinkedserver or em¿¡¼ ¼¹ö Á¤ÀÇ
Select * From addServer.targetDB.dbo.Table °°Àº ÇüÅ·ΠÁ¢±Ù °¡´É
openquery ; Select * From OPENQUERY ( addServer, 'SELECT lastname FROM customer)
ad-hoc query ; openrowset, opendatasource ... oledb¸¸ Àû¿ë °¡´É
Ä÷³ÀÇ Á¤ÀÇ ; Default, Identity, (Not) Null, Check, Rule, Trigger, Index
ruleÀº ÀÌÀü ȣȯ¼ºÀ» À§ÇÑ °´Ã¼
master tempdb msdb model
page 8kb - header 96 bytes
mixed extent -> 8 pages over : regular extent
GAM global allocation map - process 4gb (64000 extents) 1 is unallocated, 0 is allocated.
table type data stream - protocol ; sql2000 - 8.0, sql7.0 - 7.0, sql6.5, 6.0, 4.21 - 4.2
data definition language
sql-dmf distributed manage framework
automation : server agent, jobs, event and warning, trigger, manager?
import/export : dts, replication, bulkcopy(bcp), distributed query
sp_helpdb
model databaseÀÇ ¿É¼ÇÀÌ »õ µ¥ÀÌÅͺ£À̽ºÀÇ ¼³Á¤¿¡ Àû¿ëµÊ. ¿ÀÀü 11:16 2004-09-08
replication : publish - subscribe °Ô½Ã - ±¸µ¶
OLAP online analytical processing
OLTP online transaction processing
metadata service - manipulates system catalog
dts data transformation service
dtc distributed transaction coordinator
extent 64kb - table, index's default unit.
mdf master data file
ndf
ldf log data file
SGAM shared global allocation map - process 4gb (64000 extents) 1 is mixed, and could be allocated, 0 is not mixed extent, or allocated.
transaction log
awe address windowing extensions - advanced server 8gb, datacenter serve 64gb ; È®Àå ¸Þ¸ð¸®´Â °¢ ÀνºÅϽº¿¡ Á¤ÀûÀ¸·Î ÇÒ´çµÊ
data manipulate language
data control language
dbcc database
sp_dboption
sp_configure
ÇÁ·Î±×·¡¹ÖºÐ·ù