Search   Articles   Dev Forums   Personalize   Favorites   Member Login   ASP.Net Hosting
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Sunday, July 20, 2008

Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 
FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home > Search > Knowledge Base > Visual Basic.Net > Errors and Bugs > VB.NET PRB
PRB: SET Statements Do Not Have Connection-Wide Scope with ExecuteReader() of SQLCommand Class (Q316889)        
Total Hits: 510  |  Today: 0 Author: MSDN       Rating:  
Read Reviews | Write Review |   Your Rating: 

When you are using SET statements that are followed by resultsets that are returning statements such as SELECT, existing Microsoft SQL tools return non-resultset queries. This is not true when you are using the SqlCommand.ExecuteReader method. When SET statements are used with SqlCommand.ExecuteReader, the SQL statements that contain SET statements such as "SET statistics profile on" return results from the set statements. The preceding SQL statements (such as SELECT * FROM TableA) that are executed in the same connection do not see results from the "SET statistics profile on" statement. "SET statistics profile on" is expected to be scoped to the connection. The real scope that is seen here ("SET statistics profile on") is scoped to the statement.


What's New at DevASP.Net
07/20  Server-side ASP.NET Data Binding,..
07/20  Server-side ASP.NET Data Binding,..
07/20  Server-side ASP .NET Data Binding
07/20  Advanced ASP.NET Server-side Cont..
07/20  Web Services: Building Reusable W..
07/20  The Component Model in ASP.NET
07/20  Advanced ASP.NET Server-side Cont..
07/20  Client-side Cookies, Unchecking C..
07/20  Beyond ASP: XML and XSL-based Sol..
07/20  Onstop, Connecting to SQL with AS..
07/20  To Cache or not to Cache
07/20  Taming the Stateless Beast: Manag..
07/20  Client-side Environment for ASP P..
07/20  Server-side Controls in Active Se..
07/20  Active Server Pages+: ASP+ Improv..
07/20  Implement Custom Cache Dependenci..
07/20  Foiling Session Hijacking Attempt..
07/20  Test Automation for ASP.NET Web A..
07/20  Script Callbacks in ASP.NET
07/20  Page Ready State, DataGrid Row De..
Latest Posts at Dev Forums
displaying an xml file in datagridview
Tory Block
Deploying website to offline and onlin..
Deploying website to offline and onlin..
window service c#
kiossru
Regular expression
asp.net
Very urgent--
submit to the server
load gif image
focus
filter combo boxes in formview control
ASP Composite Control and Position
Caching as a Master DataSource w/t Rea..
Method returning values in Threadpool!
ADVERTISEMENTS USING XML FILE
DATALIST PROBLEM
FTP Downloading using C#
Nested gridview footer total by using ..

DevASP.Net - Disclaimer - Privacy
Copyright © 2008 DevASP.net