随笔分类 -  SQL Server

摘要:sql去除html标签分类:sql2015-08-14 12:4027人阅读评论(0)收藏举报sql数据库sql函数--1、创建函数[sql]view plaincopycreatefunction[dbo].[clearhtml](@macovarchar(8000))returnsvarchar... 阅读全文
posted @ 2015-10-30 10:11 happyu0223 阅读(1041) 评论(0) 推荐(0)
摘要:protected void Button1_Click(object sender, EventArgs e) { //Create a local table DataTable table = new DataTable("temp"); ... 阅读全文
posted @ 2014-04-23 15:38 happyu0223 阅读(439) 评论(0) 推荐(0)
摘要:2005/2008, the Pivot relationnal operator is used to convert rows into columns data. This feature is frequently used in reports and is pretty easy to work with.Available in SQL Server 2005/2008, the Pivot relationnal operator is used to convert rows into columns data. This feature is frequently used 阅读全文
posted @ 2014-03-25 15:42 happyu0223 阅读(192) 评论(0) 推荐(0)
摘要:Just add empname, gender in table. So let's fill it with some data.insert into tblGenderEMP values (1, 'mohan', 'M' ,52)insert into tblGenderEMP values (2, 'mohini', 'F',65)insert into tblGenderEMP values (3, 'suraj', 'M',500)insert into tblGenderE 阅读全文
posted @ 2014-03-25 15:36 happyu0223 阅读(151) 评论(0) 推荐(0)
摘要:you will want to make certain that if you take a backup of master on a server in your environment that you aren’t interfering with any existing backup plan:BACKUP DATABASE [master] TO DISK = N'C:\SQL\Backups\master.bak'Next we will create a test login as part of our practice run:USE [master] 阅读全文
posted @ 2014-03-25 10:45 happyu0223 阅读(252) 评论(0) 推荐(0)
摘要:CREATEPROCEDURE [dbo].[Profile_GET]@PageSizeint=null, @CurrentPageint=null, @SortExpressionnvarchar(max)=nullASBEGINSETNOCOUNTONDECLARE @SqlString nvarchar(max)Declare @UpperBand intDeclare @LowerBand int SET @LowerBand =(@CurrentPage - 1)* @PageSizeSET @UpperBand =(@CurrentPage * @PageSize)+ 1 BEGI 阅读全文
posted @ 2014-03-19 11:21 happyu0223 阅读(143) 评论(0) 推荐(0)