<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-36233737</id><updated>2024-09-12T09:09:33.990+08:00</updated><category term=".NET"/><category term="SQL"/><category term="ACCESS"/><category term="CDC"/><category term="Excel"/><category term="IIS"/><category term="VB6"/><title type='text'>程式設計與資料庫</title><subtitle type='html'>程式設計與資料庫相關..</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://beaver-program.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://beaver-program.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05353490162191812920</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-36233737.post-8622703808412318416</id><published>2012-07-25T16:07:00.000+08:00</published><updated>2012-07-25T16:07:06.320+08:00</updated><title type='text'>What can I do to resolve a “Row not found or changed” Exception in LINQ to SQL on a SQL Server?</title><content type='html'>The query generates the following SQL:

UPDATE [Sessions]
SET [Is_Active] = @p0, [Disconnected] = @p1
WHERE 0 = 1
-- @p0: Input Boolean (Size = 0; Prec = 0; Scale = 0) [False]
-- @p1: Input DateTime (Size = 0; Prec = 0; Scale = 0) [9/4/2008 5:12:02 PM]
-- Context: SqlProvider(SqlCE) Model: AttributedMetaModel Build: 3.5.21022.8

The obvious problem is the WHERE 0=1, After the record was loaded, I&#39;ve confirmed that all the properties in the &quot;deviceSessionRecord&quot; are correct to include the primary key. Also when catching the &quot;ChangeConflictException&quot; there is no additional information about why this failed. I&#39;ve also confirmed that this exception get&#39;s thrown with exactly one record in the database (the record I&#39;m attempting to update)

I solved this error by redragging over a table from the server explorer to the designer and re-building.

or change nullable value.</content><link rel='replies' type='application/atom+xml' href='http://beaver-program.blogspot.com/feeds/8622703808412318416/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36233737/8622703808412318416' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/8622703808412318416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/8622703808412318416'/><link rel='alternate' type='text/html' href='http://beaver-program.blogspot.com/2012/07/what-can-i-do-to-resolve-row-not-found.html' title='What can I do to resolve a “Row not found or changed” Exception in LINQ to SQL on a SQL Server?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05353490162191812920</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36233737.post-1794263303136622969</id><published>2012-07-05T10:17:00.001+08:00</published><updated>2012-07-05T10:17:12.431+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>SQL資料庫用Windows認證出現:Cannot Generate SSPI Context Error</title><content type='html'>Cannot Generate SSPI Context Error @ SQL

遇到一個SQL問題。
經驗中，這鐵定是使用NT整合式認證連線SQL資料庫失敗所致。
只要調整時間將Client &amp; Db一致即可.
或者用setspn的方式也可</content><link rel='replies' type='application/atom+xml' href='http://beaver-program.blogspot.com/feeds/1794263303136622969/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36233737/1794263303136622969' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/1794263303136622969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/1794263303136622969'/><link rel='alternate' type='text/html' href='http://beaver-program.blogspot.com/2012/07/sqlwindowscannot-generate-sspi-context.html' title='SQL資料庫用Windows認證出現:Cannot Generate SSPI Context Error'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05353490162191812920</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36233737.post-882179544656107671</id><published>2012-01-13T17:24:00.004+08:00</published><updated>2012-01-13T17:47:56.921+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><title type='text'>ASP.net網頁出現URL-encoded form data is not valid的處理方法</title><content type='html'>HttpException (0x80004005): The URL-encoded form data is not valid
於web.config中加入&lt;br /&gt;
&lt;blockquote&gt;
&lt;b&gt;&amp;lt;appsettings&amp;gt; &lt;br /&gt;
  &amp;lt;add key=&quot;aspnet:MaxHttpCollectionKeys&quot; value=&quot;5000&quot;&amp;gt;&amp;lt;/add&amp;gt;&lt;br /&gt;
&amp;lt;/appsettings&amp;gt;&lt;/b&gt;&lt;/blockquote&gt;
如果還超過則要將該值放大</content><link rel='replies' type='application/atom+xml' href='http://beaver-program.blogspot.com/feeds/882179544656107671/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36233737/882179544656107671' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/882179544656107671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/882179544656107671'/><link rel='alternate' type='text/html' href='http://beaver-program.blogspot.com/2012/01/aspneturl-encoded-form-data-is-not.html' title='ASP.net網頁出現URL-encoded form data is not valid的處理方法'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05353490162191812920</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36233737.post-8547052365883204260</id><published>2011-12-20T11:42:00.001+08:00</published><updated>2011-12-20T11:56:47.543+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CDC"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>CDC (Change Data Capture) 範例</title><content type='html'>EXEC sp_cdc_enable_db&lt;br&gt;
select name, is_cdc_enabled from sys.databases&lt;br&gt;
exec sp_cdc_enable_table &#39;dbo&#39;,&#39;tblA&#39;,@role_name=&#39;sa&#39;&lt;br&gt;
select name, type, type_desc, is_tracked_by_cdc from sys.tables&lt;br&gt;
select * from tbla&lt;br&gt;
insert into tblA values (&#39;6&#39;,&#39;aga&#39;)&lt;br&gt;
select * from cdc.dbo_tblA_CT --__$operation欄位1表示DELETE 2表示INSERT 3表示UPDATE之前 4表示UPDATE之後&lt;br&gt;
Declare @begin_LSN binary(10),@End_LSN binary(10)&lt;br&gt;
select @begin_LSN=sys.fn_cdc_get_min_lsn(&#39;dbo_tblA&#39;)&lt;br&gt;
select @End_LSN=sys.fn_cdc_get_max_lsn()&lt;br&gt;
select @begin_LSN,@End_LSN&lt;br&gt;
select * from  cdc.fn_cdc_get_net_changes_dbo_tblA(@begin_LSN,@End_LSN,&#39;ALL&#39;);&lt;br&gt;
select * from cdc.fn_cdc_get_all_changes_dbo_tblA(@begin_LSN,@End_LSN,&#39;ALL&#39;);&lt;br&gt;

select * from cdc.lsn_time_mapping --用來查看LSN的時間&lt;br&gt;
exec test.sys.sp_cdc_disable_table @source_schema=&#39;dbo&#39;,@source_name=&#39;tblA&#39;,@capture_instance=&#39;dbo_tblA&#39;&lt;br&gt;
EXEC sp_cdc_disable_db&lt;br&gt;</content><link rel='replies' type='application/atom+xml' href='http://beaver-program.blogspot.com/feeds/8547052365883204260/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36233737/8547052365883204260' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/8547052365883204260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/8547052365883204260'/><link rel='alternate' type='text/html' href='http://beaver-program.blogspot.com/2011/12/cdc-change-data-capture.html' title='CDC (Change Data Capture) 範例'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05353490162191812920</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36233737.post-5714542680789685044</id><published>2011-12-16T16:20:00.001+08:00</published><updated>2011-12-16T16:20:37.384+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="Excel"/><title type='text'>四種 EXCEL 讀寫.Net Library without Excel.Application</title><content type='html'>ExcelPackage  &lt;a href=&quot;http://excelpackage.codeplex.com/&quot;&gt;http://excelpackage.codeplex.com/&lt;/a&gt;&lt;br /&gt;
EPPlus          &lt;a href=&quot;http://epplus.codeplex.com/&quot;&gt;http://epplus.codeplex.com/&lt;/a&gt;&lt;br /&gt;
NPOI            &lt;a href=&quot;http://code.google.com/p/npoi/&quot;&gt;http://code.google.com/p/npoi/&lt;/a&gt;&lt;br /&gt;
ExcelLibrary    &lt;a href=&quot;http://code.google.com/p/excellibrary/&quot;&gt;http://code.google.com/p/excellibrary/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
各有優缺點&lt;br /&gt;
目前要同時支援xls vs xlsx只有ExcelLibrary&lt;br /&gt;
NPOI支援xls&lt;br /&gt;
ExcelPackage支援xlsx (office 2007之後)&lt;br /&gt;
EPPlus是ExcelPackage改善來的</content><link rel='replies' type='application/atom+xml' href='http://beaver-program.blogspot.com/feeds/5714542680789685044/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36233737/5714542680789685044' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/5714542680789685044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/5714542680789685044'/><link rel='alternate' type='text/html' href='http://beaver-program.blogspot.com/2011/12/excel-net-library-without.html' title='四種 EXCEL 讀寫.Net Library without Excel.Application'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05353490162191812920</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36233737.post-6060152221368673417</id><published>2009-09-04T15:12:00.002+08:00</published><updated>2009-09-04T15:14:19.435+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>如何解SQL lock</title><content type='html'>首先透過 sp_lock 去查詢被 Lock 的資料有哪些,&lt;br /&gt;因為他不會直接列出 Table 名稱, 所以可透過select object_id(&#39;TABLE_NAME&#39;) 或是 select object_name(&#39;OBJECT_ID&#39;) 去查出該 Lock 是屬於哪個 Table 的&lt;br /&gt;&lt;br /&gt;直接下kill spid...spid為sp_lock查出的第一個欄位&lt;br /&gt;kill xxx</content><link rel='replies' type='application/atom+xml' href='http://beaver-program.blogspot.com/feeds/6060152221368673417/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36233737/6060152221368673417' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/6060152221368673417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/6060152221368673417'/><link rel='alternate' type='text/html' href='http://beaver-program.blogspot.com/2009/09/sql-lock.html' title='如何解SQL lock'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05353490162191812920</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36233737.post-4504704089568477488</id><published>2009-07-24T11:44:00.002+08:00</published><updated>2009-07-24T11:48:59.070+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>判斷IP是哪個國家的位址</title><content type='html'>http://www.maxmind.com/app/geoip_country&lt;br /&gt;http://ip-to-country.webhosting.info/downloads/ip-to-country.csv.zip&lt;br /&gt;&lt;br /&gt;這兩個網站可以下載到ip對應的國家..&lt;br /&gt;但是&lt;br /&gt;資料要自己從CSV匯入到SQL內&lt;br /&gt;&lt;br /&gt;ip=&quot;168.95.1.1&quot;&lt;br /&gt;arr=split(ip)&lt;br /&gt;sum =  arr(0) * 16777216 + arr(1) * 65536 + arr(2) * 256 + arr(3)&lt;br /&gt;SELECT country, name FROM ip_country WHERE sum BETWEEN begin_num AND end_num</content><link rel='replies' type='application/atom+xml' href='http://beaver-program.blogspot.com/feeds/4504704089568477488/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36233737/4504704089568477488' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/4504704089568477488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/4504704089568477488'/><link rel='alternate' type='text/html' href='http://beaver-program.blogspot.com/2009/07/ip.html' title='判斷IP是哪個國家的位址'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05353490162191812920</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36233737.post-6398894893993203489</id><published>2009-05-12T09:29:00.001+08:00</published><updated>2009-05-12T09:31:11.038+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><title type='text'>Error: Common Language Runtime...Application has generated an exception that could not be handled</title><content type='html'>The Microsoft .NET Framework 1.1 Cache must be cleared.&lt;br /&gt;&lt;br /&gt;   1. Go to the Control Panel.&lt;br /&gt;   2. Double-click Administrative Tools.&lt;br /&gt;   3. Double-click Microsoft .NET Framework 1.1 Configuration.&lt;br /&gt;   4. From the left panel, click Assembly Cache.&lt;br /&gt;   5. From the right panel, click View List of Assemblies...&lt;br /&gt;   6. CRTL+A 刪除全部&lt;br /&gt;   7. 重新執行程式</content><link rel='replies' type='application/atom+xml' href='http://beaver-program.blogspot.com/feeds/6398894893993203489/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36233737/6398894893993203489' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/6398894893993203489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/6398894893993203489'/><link rel='alternate' type='text/html' href='http://beaver-program.blogspot.com/2009/05/error-common-language.html' title='Error: Common Language Runtime...Application has generated an exception that could not be handled'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05353490162191812920</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36233737.post-653011045409630728</id><published>2009-01-13T16:44:00.001+08:00</published><updated>2009-01-13T16:46:30.467+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>SqlDependency的設定方式</title><content type='html'>Private Delegate Sub UICallBack()&lt;br /&gt;    Private changeCnt As Integer&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    Private Sub getdata()&lt;br /&gt;        Dim cn As New SqlClient.SqlConnection(&quot;Data Source=localhost;Initial Catalog=MIS;Persist Security Info=True;User ID=sa;password=&quot;)&lt;br /&gt;        cn.Open()&lt;br /&gt;        Dim strSQL As String = &quot;select test from dbo.tblTest where test&gt;=2&quot;&lt;br /&gt;        Dim da As New SqlClient.SqlDataAdapter(strSQL, cn)&lt;br /&gt;        Dim sqld As New SqlClient.SqlDependency(da.SelectCommand)&lt;br /&gt;&lt;br /&gt;        SqlDependency.Start(cn.ConnectionString)&lt;br /&gt;        ds.Clear()&lt;br /&gt;        da.Fill(ds, &quot;test&quot;)&lt;br /&gt;        DataGridView1.DataSource = ds&lt;br /&gt;        DataGridView1.DataMember = &quot;test&quot;&lt;br /&gt;        DataGridView1.Refresh()&lt;br /&gt;        AddHandler sqld.OnChange, AddressOf Me.dataChanged&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;    Private Sub rebind()&lt;br /&gt;        getdata()&lt;br /&gt;        lblmsg.Text = ds.Tables(&quot;test&quot;).Rows.Count&lt;br /&gt;&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;    Private Sub dataChanged(ByVal sender As Object, ByVal e As SqlNotificationEventArgs)&lt;br /&gt;        changeCnt += 1&lt;br /&gt;        Me.Invoke(New UICallBack(AddressOf rebind))&lt;br /&gt;&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;主要不能使用*來選取所有欄位...並且一定要有where 篩選條件..&lt;br /&gt;不然dataChanged會形成無窮迴圈</content><link rel='replies' type='application/atom+xml' href='http://beaver-program.blogspot.com/feeds/653011045409630728/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36233737/653011045409630728' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/653011045409630728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/653011045409630728'/><link rel='alternate' type='text/html' href='http://beaver-program.blogspot.com/2009/01/sqldependency.html' title='SqlDependency的設定方式'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05353490162191812920</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36233737.post-5821366466026296069</id><published>2007-01-04T09:28:00.000+08:00</published><updated>2007-01-04T09:36:50.400+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ACCESS"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>ACCESS無法更新查詢</title><content type='html'>ACCESS無法更新查詢&lt;br /&gt;1.如果用ASP出現此問題一般為檔案權限的問題&lt;br /&gt;將之檔案唯獨取消即可&lt;br /&gt;2.如果用在進階SQL 語法根據某個Table or View的值更新update某個Table的值&lt;br /&gt;如果是update Table by Table語法對了，則沒有問題&lt;br /&gt;&lt;br /&gt;如果是update Table by View則一定會出現ACCESS無法更新查詢..必須改成真實Table才可正常...&lt;br /&gt;&lt;br /&gt;ex.&lt;br /&gt;UPDATE autoymd INNER JOIN viwAUTOYMD ON (autoymd.TITLE = viwAUTOYMD.vtype)SET autoymd.LASTNO = CInt(viwAUTOYMD.[no])&lt;br /&gt;&lt;br /&gt;必須將view改成真實table才不會出現此錯誤&lt;br /&gt;&lt;br /&gt;一些小小經驗</content><link rel='replies' type='application/atom+xml' href='http://beaver-program.blogspot.com/feeds/5821366466026296069/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36233737/5821366466026296069' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/5821366466026296069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/5821366466026296069'/><link rel='alternate' type='text/html' href='http://beaver-program.blogspot.com/2007/01/access.html' title='ACCESS無法更新查詢'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05353490162191812920</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36233737.post-116729013862846084</id><published>2006-12-28T15:14:00.000+08:00</published><updated>2007-01-04T09:36:32.529+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>OleDbConnection Good, SQLConnection Bad</title><content type='html'>vs2003&lt;br /&gt;\WINNT\SYSTEM32\COM\comadmin.dll  lost&lt;br /&gt;所以找光碟或找其他台電腦拷貝過來即可正常</content><link rel='replies' type='application/atom+xml' href='http://beaver-program.blogspot.com/feeds/116729013862846084/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36233737/116729013862846084' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/116729013862846084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/116729013862846084'/><link rel='alternate' type='text/html' href='http://beaver-program.blogspot.com/2006/12/oledbconnection-good-sqlconnection-bad.html' title='OleDbConnection Good, SQLConnection Bad'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05353490162191812920</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36233737.post-116156518887810734</id><published>2006-10-23T08:56:00.000+08:00</published><updated>2007-01-17T15:07:54.097+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><title type='text'>VS2003 VS2005無法啟動偵錯</title><content type='html'>&lt;span id=&quot;_ctl0_MainContent_PostFlatView&quot;&gt;&lt;/span&gt;                                 &lt;table align=&quot;left&quot; cellpadding=&quot;0&quot; cellspacing=&quot;2&quot; width=&quot;100%&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td rowspan=&quot;2&quot; class=&quot;spacer&quot;&gt;&lt;br /&gt;&lt;/td&gt;             &lt;td colspan=&quot;3&quot; style=&quot;padding-top: 4px;&quot; valign=&quot;top&quot; width=&quot;100%&quot;&gt;             &lt;table align=&quot;left&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;90%&quot;&gt;              &lt;tbody&gt;&lt;tr&gt;               &lt;td class=&quot;txt4lt&quot; style=&quot;&quot; width=&quot;625&quot;&gt;                &lt;span&gt;&lt;p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;v2.0.50727為.net版本&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;或是你也可以在command prompt執行下列指令&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;set path=%path%;&lt;/span&gt;%Windir%\Microsoft.NET\Framework\v2.0.50727&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;color: rgb(0, 0, 255);font-size:85%;&quot; &gt;aspnet_regiis -s W3SVC/1/ROOT/&lt;你的virtual directory name&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(0, 0, 255);font-size:85%;&quot; &gt;或&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(0, 0, 255);font-size:85%;&quot; &gt;VS2005無法啟動偵錯 IP的問題&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(0, 0, 255);font-size:85%;&quot; &gt;則於IIS內改成為指定IP即可.....&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://beaver-program.blogspot.com/feeds/116156518887810734/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36233737/116156518887810734' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/116156518887810734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/116156518887810734'/><link rel='alternate' type='text/html' href='http://beaver-program.blogspot.com/2006/10/vs2003-vs2005.html' title='VS2003 VS2005無法啟動偵錯'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05353490162191812920</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36233737.post-116117011225064427</id><published>2006-10-18T19:14:00.000+08:00</published><updated>2007-01-04T09:35:46.886+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VB6"/><title type='text'>如何在DATA REPORT抓在按下Print的事件(VB6)</title><content type='html'>Private Sub DataReport_AsyncProgress(ByVal JobType As MSDataReportLib.AsyncTypeConstants, ByVal Cookie As Long, ByVal PageCompleted As Long, ByVal TotalPages As Long)&lt;br /&gt;  If JobType = MSDataReportLib.AsyncTypeConstants.rptAsyncPrint Then&lt;br /&gt;      SendMail&lt;br /&gt;  End If&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;jobtype有列印、匯出與預覽的事件&lt;br /&gt;如此方便許多..&lt;br /&gt;而如果用Crystal Report要抓到Print的事件&lt;br /&gt;則只能自訂按鈕來取代Crystal Report內建的列印按鈕</content><link rel='replies' type='application/atom+xml' href='http://beaver-program.blogspot.com/feeds/116117011225064427/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36233737/116117011225064427' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/116117011225064427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/116117011225064427'/><link rel='alternate' type='text/html' href='http://beaver-program.blogspot.com/2006/10/data-reportprintvb6.html' title='如何在DATA REPORT抓在按下Print的事件(VB6)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05353490162191812920</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36233737.post-116117006022114209</id><published>2006-10-18T19:13:00.000+08:00</published><updated>2007-01-04T09:36:13.548+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><title type='text'>部分Com轉.Net出現記憶體毀損的解決方法</title><content type='html'>部分Com轉.Net出現記憶體毀損的解決方法&lt;br /&gt;改成late binding&lt;br /&gt;ex.將dim a as hctaddr2.addr_Compare2改成以下原始碼&lt;br /&gt;     Dim a As Type = Type.GetTypeFromProgID(&quot;hctaddr2.addr_Compare2&quot;)&lt;br /&gt;     Dim hct As Object = Activator.CreateInstance(a)</content><link rel='replies' type='application/atom+xml' href='http://beaver-program.blogspot.com/feeds/116117006022114209/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36233737/116117006022114209' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/116117006022114209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36233737/posts/default/116117006022114209'/><link rel='alternate' type='text/html' href='http://beaver-program.blogspot.com/2006/10/comnet.html' title='部分Com轉.Net出現記憶體毀損的解決方法'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/05353490162191812920</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>