摘要:
SQL代码ALTER FUNCTION [dbo].[SplitToTable]( @SplitString nvarchar(max), @Separator nvarchar(10)=' ')RETURNS @SplitStringsTable TABLE([id] int identity(1,1),[value] nvarchar(max))ASBEGIN DECLARE @CurrentIndex int; DECLARE @NextIndex int; DECLARE @ReturnText nvarchar(max); SELECT @Curr... 阅读全文
摘要:
/// /// 通过文件头来检查文件的类型 /// /// /// private static bool CheckFileHead(string filePath) { var fs = new FileStream(filePath, System.IO.FileMode.Open, System.IO.FileAccess.Read); var r = new BinaryReader(fs); string fileclass ... 阅读全文