Posted
Filed under asp,asp.net

If you want to change it, you need to do this on the client, as Remus already mentioned. The client is creating the connection pool.

You can specify the connection pooling properties in your connection string that you use to connect to SQL Server. The most important properties are:

  • Pooling : which can be true or false - use pooling or not
  • MinPoolSize : minimum size of connection pool; default is 10
  • MaxPoolSize : maximum size of connection pool; default is 100

So if you want to enable pooling and have min. 20, max. 250 connections, you could use this connection string:

server=MyServer;database=MyDatabase;Pooling=True;Min Pool Size=25;Max Pool Size=250

For more details, see the MSDN docs or check out the Connection Strings web site.

Marc

2014/01/23 18:08 2014/01/23 18:08
Posted
Filed under asp,asp.net

netstat -an | find "80" | find /c "ESTABLISHED"

80 is port number

if i set port number , i get total of port number !

2014/01/23 18:01 2014/01/23 18:01
Posted
Filed under asp,asp.net

홈페이지(Homepage)를 방문한 Client에게 대용량의 파일(File)을 다운로드할 수 있게 하려면 다음과 같이 구현합니다.


보통 WriteFile보다는 메모리 버퍼(Buffer)를 통하지 않는 TransmitFile가 더 나은 성능을 나타냅니다.
2012/11/20 17:43 2012/11/20 17:43
Posted
Filed under asp,asp.net

[원문] - http://www.chrishardy.co.uk/asp/tutorials/dateadd.asp

<%
  sDate = Now()
  sNewDate = DateAdd("m", 1, sDate)
  sMonthNext = Monthname(Month(sNewDate))
%>

s - Second
n - Minute
h - Hour
d - Day
y - Day of year
w - Weekday
ww - Week of year
m - Month
q - Quarter
yyyy - Year
2012/10/23 18:17 2012/10/23 18:17
Posted
Filed under asp,asp.net

[원문]  : http://blog.naver.com/PostView.nhn?blogId=hhth1115&logNo=140155762500


declare @i datetime, @j datetime -- 시작 시간, 완료시간

set @i='2002-01-02 10:22:22'
set @j ='2002-01-03 22:23:24'

declare @z int
select @z=DATEDIFF(SECOND, @i,@j) -- 시작시간과 완료시간의 차이(초)

select right('0' + convert(varchar, @z/(60*60)),2) + ':'
+ right('0' + convert(varchar,@z % (60*60) /60),2) + ':'
+ right('0' + convert(varchar,(@z % (60*60))%60),2)

결과
--------------------------------------
36:01:02

핵심은 : DATEDIFF 함수를 사용 한다는 것과 , 초로 변환된 값을 가지고 , 시간차를 계산 한다는 부분 입니다.

2012/10/04 12:20 2012/10/04 12:20
Posted
Filed under asp,asp.net
Response.AppendHeader("Access-Control-Allow-Origin", "*");
2012/09/11 17:16 2012/09/11 17:16
Posted
Filed under asp,asp.net
[원문]http://smilestory.net/151

1. WWWROOT의 기본 권한 설정

- 인터넷 게스트 계정(IIS-서버이름) = 쓰기 권한 거부
(업로드 컴퍼넌트 사용시 업로드 폴더만 쓰기권한 부여 하시면 됩니다.)

- USERS 그룹계정 과 II_WPG(IIS 작업자 프로세스 그룹) = 읽기 및 실행, 폴더내용보기, 읽기 권을 부여하시고

- ADMINISTRATORS, SYSTEM = 모든 권한 부여 하시며

- CREAT OWNER = 루드에서 상속받은 권한 그대로 두시면됩니다.(잠금된 상태,특정권한)


2. 업로드 폴더 문제

- 2003에서도 해당 폴더에서 인터넷 게스트 계정에 쓰기 권한을 주시면 됩니다.

권한을 상속받은 것이므로 먼저 상속 포기하신 후 고급탭 - 복사 하신 후

돌아오셔서 쓰기 권한 거부에 체크 된 것을 없애고 쓰기에 허용을 체크 하시면 되겠죠.

2012/08/31 10:48 2012/08/31 10:48
Posted
Filed under asp,asp.net

[원문] : http://www.devpia.com/MAEUL/Contents/Detail.aspx?BoardID=7&MAEULNo=5&no=61939&ref=61382


snuoap.php의 parseResponse function 에서

아래와 같이 $this->xml_encoding setting하는 부분을 모두 주석처리하고,

항상 'ISO-8859-1'로 되도록 수정했습니다.

/*
if (strpos($headers['content-type'], '=')) {

$enc = str_replace('"', '', substr(strstr($headers["content-type"], '='), 1));

$this->debug('Got response encoding: ' . $enc);

if(eregi('^(ISO-8859-1|US-ASCII|UTF-8)$',$enc)){

$this->xml_encoding = strtoupper($enc);

} else {

$this->xml_encoding = 'US-ASCII';

}

} else {

// should be US-ASCII for HTTP 1.0 or ISO-8859-1 for HTTP 1.1

$this->xml_encoding = 'ISO-8859-1';

}

*/

$this->xml_encoding = 'ISO-8859-1';

그리고 .NET으로 만든 웹서비스에서 return되어 온 값은

php의 iconv함수를 이용해서 아래와같이 변환을 하니

한글이 제대로 처리되었습니다.

iconv("UTF-8", "EUC-KR", 리턴값);

혹, 저처럼 php에서 nusoap.php를 이용해서 .NET 으로 개발된 웹서비스와 연동을 할 경우가

생기는 분이 계실까봐 자문 자답을 올립니다.

2012/08/29 20:01 2012/08/29 20:01