Rex IT Blog
2015年10月30日 星期五
CREATE DATABASE (SQL Server Transact-SQL)
›
https://msdn.microsoft.com/zh-tw/library/ms176061(v=sql.120).aspx
2015年10月29日 星期四
建立TRUNCATE TABLE的Stored procedure
›
--建立Stored procedure CREATE PROCEDURE [dbo].[mysp_truncate] @tableName varchar(50) with execute as owner AS DECLARE @SQL VARCHAR(2000)...
sqlcmd 執行sql檔
›
sqlcmd -S 資料庫位址 -d 資料庫名稱 -i CUSTOMERS.sql > log\CUSTOMERS.log ref: https://msdn.microsoft.com/zh-tw/library/ms180944(v=sql.120).aspx ...
列出SQL Server資料庫所有Views
›
select * from sys.tables where type = 'V'
列出SQL Server資料庫所有Tables
›
select * from sys.tables where type = 'U'
2015年10月23日 星期五
Select count(*) from multiple tables
›
http://stackoverflow.com/ questions/606234/select-count- from-multiple-tables 橫的 with t1_count as ( select count (*) c1 from t1...
2015年10月9日 星期五
Chocolatey: package manager for Windows
›
https://chocolatey.org
‹
›
首頁
查看網路版