Discussion:
SQLDataReader »Ý­nšCŠž³£Ãö³¬€~¥i°_°Ê¥t€@­Ó?
(时间太久无法回复)
TaTMiNG@HK
2006-06-22 16:31:35 UTC
Permalink
€£ªŸ¬O§_MSSQL Readerªº€£ŠP,
«Ü©_©Ç
±¡ªp¬O
§ÚŠb€@­ÓSub,Š³»Ý­nŠP®ÉŠ³ŽX­ÓSELECT Command ©MDataReader (ŠpMyReader)

·í§Ú¹BŠæ§¹Command1ªºMyReader1 ®É,ŠpªG±µµÛ¹B¥Î¥t€@­ÓCommand2ªºMyReader2®É,·|¥X²{Error°T®§.
ŠýŠpªG§Ú¥ý§âMyReader1.Close, «h¥i¹B§@¥¿±`.

§Ú°O±ošÏ¥ÎOLEDB Data Reader©MMySQL Data Reader®É
§ÚºD©Ê¬O³Ì«á€~€@Šž¹L§â©ÒŠ³Connection.Close, MyReader.Close ªº

³o¬O€£¬O.NET Framework 2.0©M1.1ªº€£ŠP?

--
Microsoft MVP Vivid Hsu
2006-06-23 03:19:14 UTC
Permalink
šS¿ù2.0€~€äŽ©³oŒËªº¥Îªk
--
·L³n³ÌŠ³»ù­È±M®a
Microsoft MVP
Vivid Hsu
Post by ***@HK
€£ªŸ¬O§_MSSQL Readerªº€£ŠP,
«Ü©_©Ç
±¡ªp¬O
§Ú°O±ošÏ¥ÎOLEDB Data Reader©MMySQL Data Reader®É
³o¬O€£¬O.NET Framework 2.0©M1.1ªº€£ŠP?
--
TaTMiNG@HK
2006-06-23 18:11:44 UTC
Permalink
šº€£¬OŠ³ÂI§Þ³N€WŠV«á°h¶Ü?@@
Šb€@­ÓSub€€¡AŠ³®É·|¥Î€W€T¬qSelect Command ¥HReader.GetValueªº,
Šž§Ç¥i¯à·|¬OReader1 => Reader2 => Reader1
°²ŠpŠbReader2.Getvalue«á¡A§Ú·QŠA­«¥ÎReader1,šº€£¬O­n«Ø¥ß€@­ÓReader3©MReader1ªº€@ŒË¶Ü?
--
Post by Microsoft MVP Vivid Hsu
šS¿ù2.0€~€äŽ©³oŒËªº¥Îªk
--
·L³n³ÌŠ³»ù­È±M®a
Microsoft MVP
Vivid Hsu
Post by ***@HK
€£ªŸ¬O§_MSSQL Readerªº€£ŠP,
«Ü©_©Ç
±¡ªp¬O
§Ú°O±ošÏ¥ÎOLEDB Data Reader©MMySQL Data Reader®É
³o¬O€£¬O.NET Framework 2.0©M1.1ªº€£ŠP?
--
Microsoft MVP Vivid Hsu
2006-06-26 06:16:23 UTC
Permalink
1.xª©€€»Ý¥Î€£ŠPConnection
--
·L³n³ÌŠ³»ù­È±M®a
Microsoft MVP
Vivid Hsu
Post by ***@HK
Šž§Ç¥i¯à·|¬OReader1 => Reader2 => Reader1
--
Post by Microsoft MVP Vivid Hsu
šS¿ù2.0€~€äŽ©³oŒËªº¥Îªk
--
·L³n³ÌŠ³»ù­È±M®a
Microsoft MVP
Vivid Hsu
Post by ***@HK
€£ªŸ¬O§_MSSQL Readerªº€£ŠP,
«Ü©_©Ç
±¡ªp¬O
§Ú°O±ošÏ¥ÎOLEDB Data Reader©MMySQL Data Reader®É
³o¬O€£¬O.NET Framework 2.0©M1.1ªº€£ŠP?
--
Loading...