易截截图软件、单文件、免安装、纯绿色、仅160KB

sqlserver 2005 split function

set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
create function [dbo].[split](@str nvarchar(1000),@word varchar(5),@no
int) returns nvarchar(500)
as begin
    declare @len int
    declare @index int
    set @index=charindex(@word,@str)
    set    @index=len(@word)+@index-1
    set @len=len(@str)
    if @index >0  and @no=2
        return substring(@str,@index+1,@len)
    else if @index>0 and @no=1
        return substring(@str,0,@index-len(@word)+1)
        return @str
end


相关文档:

SQLSERVER 分页

select   identity(int,1,1) as col_id , *   into   temp   from  uep.dbo.A_experiment 
select   *   from temp where   col_id   between   50   and   60
drop  table temp ......

Access、SQLServer、Oracle常见SQL语句应用区别


Access、SQLServer、Oracle常见SQL语句应用区别
关劲松 PMP
如果要兼容Access、SQL Server、Oracle三个数据库版本;我们在编写SQL语句的过程中,尽量使用一些通用的语句,但还是有些方面有些区别避免不了,现简单总结一下。
以下A代表Access,S代表SQL Server,O代表Oracle
1、取当前系统时间
A:Select Now()
S:Selec ......

VS2008 添加SQLServer文件

VS2008 添加SQLServer文件  经常会碰到错误,现在将几个常见的错误罗列一下,
“此版本的 sql server 不支持用户实例登录标志。该连接将关闭。”
解决办法:
在连接属性的设置里边,点“高级”,将User Instance 设置为false,默认的true,所以才导致这个问题的出现.
“与SQL Server文件(*.m ......

[引]SQLServer和Access、Excel数据传输简单总结

http://www.tongyi.net/article/20031101/200311013786.shtml
所谓的数据传输,其实是指SQLServer访问Access、Excel间的数据。
为什么要考虑到这个问题呢?
由于历史的原因,客户以前的数据很多都是在存入在文本数据库中,如Acess、Excel、Foxpro。现在系统升级及数据库服务器如SQLServer、ORACLE后,经常需要访问文本数 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号