¥µ¥¤¥é¥¹¤ÎËÜê
2005-10-20 DataView¤Ç¥½¡¼¥È¸å¤Î¥Ç¡¼¥¿¤ò½çÈ֤˻²¾È¤¹¤ëÊýË¡
DataGrid¤Ç¥½¡¼¥È¤·¤¿½ç¤ËActiveReports¤Ç¥ì¥Ý¡¼¥È¤òºîÀ®¤·¤¿¤¤¤È¤¤¤¦¾ì¹ç¡¢DataGrid.DataSource¤«¤é¼èÆÀ¤·¤¿DataView¤òActiveReports¤ÎDataSource¤ËÅϤ·¤Þ¤¹¤¬¡¢¥ì¥³¡¼¥É¤òÄ̾ï¤Î¤ä¤êÊý¡Êview.Table.Rows[position]¡Ë¤Ç¼èÆÀ¤¹¤ë¤È¥½¡¼¥ÈÁ°¤Î½çÈÖ¤Ëɽ¼¨¤µ¤ì¤Æ¤·¤Þ¤¦¤Î¤Ç¡¢FetchData¥¤¥Ù¥ó¥È¤Ç°Ê²¼¤Î¤è¤¦¤Ë¥ì¥³¡¼¥É¤ò¼èÆÀ¤·¤Þ¤¹¡£¡Êposition¤Ï¹Ô¥«¥¦¥ó¥¿¡Ë
DataRow row = view[position].Row; ¡¦¡¦¡¦ position++; eArgs.EOF = false;
2005-10-23 DAT¤Î¥¤¥ó¥Ý¡¼¥È¥³¥Þ¥ó¥É
[SQL]DAT¤Î¥¤¥ó¥Ý¡¼¥È¥³¥Þ¥ó¥É
¤¿¤Þ¤Ë»È¤¤¤¿¤¤¤È¤¤Ë˺¤ì¤Æ¤·¤Þ¤Ã¤¿¾ì¹ç¤Î¤¿¤á¤Î¥á¥â¡£VisualStudio.NET ¤Ç¥¨¥¯¥¹¥Ý¡¼¥È¤·¤¿¥Ç¡¼¥¿(DAT)¤ò¥Æ¡¼¥Ö¥ë¤Ë¥¤¥ó¥Ý¡¼¥È¤·¤Þ¤¹¡£
REM: ǧ¾Ú¤Î¼ïÎà : SQL Server REM: »È¤¤Êý: CommandFilename [¥µ¡¼¥Ð¡¼(%1)] [¥Ç¡¼¥¿¥Ù¡¼¥¹(%2)] [¥í¥°¥¤¥ó(%3)] [¥Ñ¥¹¥ï¡¼¥É(%4)] if %ERRORLEVEL% NEQ 0 goto errors bcp %2.dbo.T_Hoge in dbo.T_Hoge.dat -S %1 -U %3 -P %4 -n
2005-10-24
[C#]¹½À®¥Õ¥¡¥¤¥ë¤Ç»ØÄꤵ¤ì¤¿³ÈÄ¥µ¡Ç½¤ò¼Â¹ÔÃæ¤ËÎã³°¤¬È¯À¸¤·¤Þ¤·¤¿¡£-->Í×µá¤ÎºÇĹ»þ´Ö¤òĶ¤¨¤Þ¤·¤¿¡£
Windows Forms¤«¤éWeb service¤Î¥á¥½¥Ã¥É¤ò¸Æ¤ÖºÝ¤Ë¡¢¾åµ¤Î¤è¤¦¤Ê¥¨¥é¡¼¤¬È¯À¸¤¹¤ë¾ì¹ç¡¢¥Ñ¥é¥á¡¼¥¿¤È¤·¤ÆÅϤ·¤Æ¤¤¤ë¥Ç¡¼¥¿¥»¥Ã¥È¤Î¥µ¥¤¥º¤¬Â礤¹¤®¤ë¤³¤È¤¬¸¶°ø¤È¤Ê¤Ã¤Æ¤¤¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£¤³¤ì¤Ï¡¢Web.Config¤Ë°Ê²¼¤Î¤è¤¦¤Êµ½Ò¤ò¤¹¤ë¤³¤È¤Ç²óÈò¤Ç¤¤ë¾ì¹ç¤¬¤¢¤ê¤Þ¤¹¡£
<httpRuntime maxRequestLength="10000" ¢«ºÇÂ祵¥¤¥º¡ÊKB) executionTimeout="3000"¡¡¢«¥¿¥¤¥à¥¢¥¦¥È¡ÊÉÃ¡Ë /> </system.web>
¤¢¤ë¤¤¤Ï¡¢WebService¸Æ¤Ó½Ð¤·»þ¤Ë¥¿¥¤¥à¥¢¥¦¥È¤ÎÀßÄê¤ò¤·¤Æ¤ä¤ëɬÍפ¬¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
fooService = new FooService.FooService(); fooService.Timeout = System.Threading.Timeout.Infinite;
¤¢¤ë¤¤¤Ï¡¢SQL¤ÎÊý¤Ç¥¿¥¤¥à¥¢¥¦¥È¤·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤ÊÀßÄê¤ò¤·¤Æ¤ä¤ëɬÍפ¬¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
System.Data.SqlClient.SqlCommand cmd = new System.Data.SqlClient.SqlCommand(); cmd.CommandTimeout = 600; // 600ÉÃ(10ʬ) ¥Ç¥Õ¥©¥ë¥È¤Ï30ÉÃ
2005-10-31
[SQL]datetime¤«¤é¤Îʸ»úÎóÊÑ´¹
DECLARE @dtDate datetime -- ÆüÉÕ¤ò£±Æü¤Ë¤·¤ÆYYYYMMDD·Á¼°¤Çʸ»úÎó½ÐÎÏ SELECT CONVERT(varchar,DATEPART(YYYY, @dtDate )) + RIGHT('00'+CONVERT(varchar,DATEPART(MM, @dtDate)),2) + '01' -- ·îËöÆüÉÕ SELECT DATEADD(DAY, -1, CONVERT(DATETIME, (CONVERT(CHAR(7),DATEADD(M, 1, @dtDate),111) + '/1')))