473,657 Members | 2,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Csharp sql server query locks database as I step through it

2 New Member
Is there a way in cSharp using SqlDataReader, SqlConnection and sqlCommand, to step through a query and not lock it, like the option adOpenStatic in vb6 did? Thanks
Jun 29 '11 #1
2 1758
Subin Ninan
91 New Member
Set MultipleActiveR esultSets property to True in connection string.
Jun 30 '11 #2
Steve
2 New Member
Hi thanks for the reply but that did not work. While a report was running, a application could not connect to the database. I got around this my using a DataSet in my report.
Jun 30 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
9445
by: Michael Holberton | last post by:
Hi All Can we connect remotely using SQL Server Enterprise Manager from our home PCs using a VPN connection, across the Internet, to an instance of SQL Server(or a database on it) that resides on an ISP's Server? Can this be done using a VPN IP connection? I believe a static IP is required for this? Thanks in Advance, Michael
2
2493
by: vidya | last post by:
Hi, I wrote a stored procdure in SQL Server which calculates some metrics. This procedure always returns only one row with 11 columns of integer values. I ran it in SQL Server Query Analyzer thru a remote machine and it executes the procedure in 5 to 6 seconds. I wrote some ADO.Net SqlDataReader code and it takes 25 seconds to get the data back from the same remote machine.
2
1353
by: Jorge Varona | last post by:
Greetings, I am having a difficult time trying to get my index server query to work. Here's the code: // create a connection object and command object, to connect the Index Server System.Data.OleDb.OleDbConnection odbSearch = new System.Data.OleDb.OleDbConnection();
3
1762
by: johnb41 | last post by:
Can anyone help me? I need to create a SQL Server Express 2005 database programmatically in my app. I have searched the web and I found nothing. Can anyone help? Are there classes in the new framework 2.0 that makes this easier? Thanks for all your help! John
1
3287
by: swatijogdand | last post by:
How to link table of sql server to access database using ado?
1
2364
by: wintonsl | last post by:
Would anyone know how to convert this Access Query to SQL Server Query? Format(((+++)/(IIf(>0,1,0)+IIf(>0,1,0)+IIf(>0,1,0)+IIf(>0,1,0))),"Standard") What this query is doing in Access is Averaging numbers that are not equal to 0. If the number is equal to 0, it should not be averaged in. The average is set to 2 decimal places.
1
1342
by: srikalyan | last post by:
I have this C++ program that queries the database on the local host. But if I have to query the database that from a remote machine then what are the commands and libraries that I have to include in the program? I am a newbie and sorry for my silly question... Best, sri
4
4150
by: winniewang | last post by:
Hi everyone, Who can help me to translate the SQL Server query to DB2 query? The query were shown as below: CAST( CONVERT( CHAR(2), MonthNumberOfYear) + '/ ' + '1/' + CalendarYear AS DATETIME) Any reponse is appreciated^_^ Thanks! Winnie
3
2818
by: Max2006 | last post by:
Hi, I have a search result GridView bound to an ObjectDataSource. Once I open the asp.net page, the ObjectDataSource automatically refreshes the GridView which is the default behavior. I am trying to disable automatic query feature in ObjectDataSource, such that it query the database only when the user click on Search button. Is there anyway to prevent ObjectDataSource query the database when the page
3
9057
by: Kunal Desale | last post by:
Hello, I am migrating access queries to SQL Server 2005 Queries. My Access Query Is: SELECT qtrade.intordreftrim AS Expr1, qtrade.extordreftrim AS Expr2, qtrade.intinvreftrim AS Expr3, DLookUp("",""," = " & 4 & "and ='" & & "'") AS InvNoLookup, qtrade.invline AS Expr4, qtrade.accountid AS Expr5, qtrade.descriptn AS Expr6, DLookUp("",""," = " & 0 & "and ='" & & "'") AS , qtrade.qtyinv AS Expr7, qtrade.invdate AS Expr8, qtrade.amtuchg...
0
8397
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6167
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4315
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2731
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1957
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.