一、將.dbf(foxpro資料檔案)匯入到sql server中: -------------如果接受匯入資料的SQL表不存在,匯入時建立 select * into 要產生的SQL表名 from openrowset('MSDASQL','Driver=Microsoft Visual FoxPro Driver;SourceType=DBF;SourceDB=c:/','select * from dbf表名.DBF')
--十一.索引--建立索引create unique clustered index book1_in1 on book1(編號)/*報錯:無法對 表 'book1' 建立多個叢集索引。請在建立新叢集索引前刪除現有的叢集索引 'pri_編號'。因為,在一個表中,只能建立一個聚焦索引,可以建立249個非叢集索引*/create unique nonclustered index book1_in1 on book1(編號)--現在插入資料看看,UNIQUE是否真的有用insert into
原文:http://www.cnblogs.com/kwklover/archive/2007/11/23/969633.html 問題總結:判斷MS SQLSERVER暫存資料表是否存在drop table #tempcitysselect * into #tempcitys from hy_citys上面的語句第一次啟動並執行時候就肯定出錯了,但第二次就不會。因為select * into #tempcitys from hy_citys自動建立了暫存資料表#tempcitys
Each row has a null bitmap for columns that allow nulls. If the row in that column is null then a bit in the bitmap is 1 else it's 0.For variable size datatypes the acctual size is 0 bytes.For fixed size datatype the acctual size is the default