随笔 - 141  文章 - 1 评论 - 92 trackbacks - 4
<2012年2月>
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910

程序生涯 
我的职业:
Development consultant
/开发顾问

QQ群:2863140
My QQ:89447727
昵称:Seer Lin
园龄:4年2个月
粉丝:7
关注:0

搜索

 
 

常用链接

随笔分类

随笔档案

最新评论

阅读排行榜

评论排行榜

推荐排行榜

摘要: --删除链接和链接服务器Execsp_droplinkedsrvloginsyncDB,NullExecsp_dropserversyncDBEXECsp_addlinkedserver@server='syncDB',--被访问的服务器别名@srvproduct='',@provider='SQLOLEDB',@datasrc='202.**.***.43\MSSQLSERVER2008'--要访问的服务器实例名----@datasrc='servername\instancename'----servernam阅读全文
posted @ 2012-02-04 20:15 Seer Lin 阅读(40) 评论(0) 编辑
摘要: asp.net程序中,我直接将生产的excel输出到客户端,我在其他游览器都可以,但在IE8,却只是"嘟"一声,然后就什么也没有了.后来才发现,原来是IE设置的问题,在IE-->INTERNET 设置-->安全-->文件下载自动提示,默认为"禁用",这里应该设置为"启用".阅读全文
posted @ 2011-10-10 17:25 Seer Lin 阅读(71) 评论(0) 编辑
摘要: mssql version:sql server 2008mysql version:mysql-5.1.321,安装MSDASQL--安装MSDASQL(64 位 OLEDB Provider for ODBC (MSDASQL))--http://www.microsoft.com/downloads/details.aspx?FamilyID=000364db-5e8b-44a8-b9be-ca44d18b059b&displaylang=zh-cn--select the version WindowsServer2003.WindowsXP-KB948459-v2-x64-E阅读全文
posted @ 2011-06-01 12:28 Seer Lin 阅读(165) 评论(0) 编辑
摘要: 由於Dcomcnfg是一個32位和配置,在64系統下並不能被完全支持在WIN2008 X64系統中,可以通過如下方式進入DCOM配置運行:mmc -32然後會彈出一個程序,工菜單中選擇File->Add/Remove Snap添加Component Services,然後在Component Services下找到Excel後再進行配置,就和32位系統一樣的了;其它一样的配置如下2.对于风险源的导入功能。服务器要装上Excel,并进行一系列的权限设置,如下:1:在服务器上安装office的Excel软件. 2:在"开始"->"运行"中输入dc阅读全文
posted @ 2011-05-29 15:38 Seer Lin 阅读(317) 评论(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using Microsoft.Office.Core;using Microsoft.Office.Interop.Excel;namespace ASS.Utility{ public class ExcelEdit { private string myFileName; public string MyFileName { get { return myFileName; } set {.阅读全文
posted @ 2011-05-26 18:52 Seer Lin 阅读(59) 评论(2) 编辑
摘要: 在excel中,将长*宽*高这样的格式列,拆分成3列=MID(D6,1,FIND("*",D6)-1)长=MID($D6,FIND("*",D6)+1,FIND("*",D6,FIND("*",D6)+1)-FIND("*",D6)-1)宽=MID($D6,FIND("*",D6,FIND("*",D6)+1)+1,LEN(D6))高其中D6为你原来长*宽*高这样的格式列 毛净重Kg 19/16 26/23 将毛净重拆开=MID(F4,1,FIND(&qu阅读全文
posted @ 2011-05-11 15:18 Seer Lin 阅读(112) 评论(0) 编辑
摘要: --select*fromProductwhereProCode='DWIHEE00108'--declare@resultint--execxp_fileexist'C:\test\testsdfs.txt',@resultoutput--select@resultdeclare@resultint,@proiduniqueidentifier,@proimgurl1nvarchar(100)declaremyCursorcursorforselectproid,proimgurl1fromproductopenmyCursorfetchmyCursorint阅读全文
posted @ 2011-05-11 11:24 Seer Lin 阅读(57) 评论(0) 编辑
摘要: 遇到一个客户,希望在Reporting Services的报表中引用FTP站点上的图片,但是访问这个FTP站点需要用户名和密码!好不容易把这个问题解决,以下是我的解决步骤。1. 添加一段自定义报表以获取图片: Public Shared Function GetImageFromFTPServer(ByVal imageURL As String) As Byte() Dim request As System.Net.WebClient = New System.Net.WebClient() request.Credentials = New System.Net.NetworkCrede阅读全文
posted @ 2011-04-23 22:29 Seer Lin 阅读(44) 评论(0) 编辑
摘要: varORG_NAME="test";varSERVICE_PATH="/mscrmservices/2007/CrmService.asmx"varauthenticationHeader=GenerateAuthenticationHeader();functiongetCurrentUserName(){varxml=""+"<?xmlversion=\"1.0\"encoding=\"utf-8\"?>"+"<soap:Envelopexm阅读全文
posted @ 2011-04-02 14:49 Seer Lin 阅读(88) 评论(0) 编辑
摘要: alert(UserHasRole("SystemAdministrator"));functionUserHasRole(roleName){//getCurrentUserRoles,oXmlisanobjectvaroXml=GetCurrentUserRoles();if(oXml!=null){//selectthenodetextvarroles=oXml.selectNodes("//BusinessEntity/q1:name");if(roles!=null){for(i=0;i<roles.length;i++){if(role阅读全文
posted @ 2011-03-21 18:05 Seer Lin 阅读(54) 评论(0) 编辑