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

Home Posts Topics Members FAQ

how to set SelectMethod=cu rsor; for SQL 2000

9 New Member
Hi Everyone,

I am trying to use the
Expand|Select|Wrap|Line Numbers
  1. setAutoCommit(false)
before doing the updates. So that in case of error I can use
Expand|Select|Wrap|Line Numbers
  1. rolloverTransaction().
But while trying to do so I am getting this error.

Expand|Select|Wrap|Line Numbers
  1. java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Can't start a cloned connection while in manual transaction mode.
I am using a datasource to connect to the database. And using connection pool way to do so.

I have appended SelectedMethod in URL as

Expand|Select|Wrap|Line Numbers
  1. <parameter>
  2.           <name>url</name>
  3.           <value>jdbc:microsoft:sqlserver://172.15.4.84:1367;DatabaseName=TEstDb;SelectMethod=cursor;naming=system;prompt=false;block size=64;extended dynamic=true; date format=iso</value>      
  4.       </parameter>
But still the things are not working fine. Hope some body here would help me out. TIA.
Sep 11 '08 #1
1 2959
Dököll
2,364 Recognized Expert Top Contributor
TIA, pal-o-mine!

Please post the whole code, might be easier to help you. Sorry for your troubles though, it must be annoying.

In a bit!
Nov 20 '08 #2

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

Similar topics

7
5465
by: Ken | last post by:
Hi All - I have a filtered GridView. This GridView has a check box in the first column. This check box is used to identify specific rows for delete operations. On the button click event I loop through the filtered GridView to identify the selected rows and assemble some XML to be sent to a stored proc. The problem I have is that when looping through the GridView, it doesn't
3
2164
by: Jerry Hewett | last post by:
Is there anything I can do from the Enterprise Manager console or from within a JDBC connection to achieve the same effect as WITH(UPDLOCK)? Yes, I could change all of my SQL statements to include the lock... but isn't there any way to set or tweak something in SQL Server so that I won't have to hack a lot of code* to make things concurrent? Perhaps a way to set UPDLOCK as the default behaviour for the server, or schema, or table, or...
0
1186
by: govus | last post by:
Hi everyone- I'm using the Microsoft JDBC driver for SQL Server 2000 and I'm trying to avoid using server cursors. Is there a way to guarantee that every query will not create a server-side ResultSet with a cursor? In other words, I want every ResultSet to be loaded into the client's (the web server's) memory. Does setting the "selectMethod" connection property guarantee this?
6
1825
by: gsuns82 | last post by:
hi, my java code: **************** import java.sql.*; public class sqljdbc { public static void main(String args) { try {
0
5515
by: Phillip Ian | last post by:
Tried this over in CSharp.General and didn't get anything, so I thought I'd try again here. If there's an AJAX specific group I could ask this in, please let me know...I did look. I'm trying to code what I think is a fairly typical Master/Detail scenario with two GridViews, using AJAX. Using the Northwind sample, I have two ObjectDataSources - one which pulls data from the Orders table, and one that pulls the related data from . Each...
8
2916
by: kanmbk | last post by:
Hi I write a simple program to connect MS-SQL in java. But it not work fine. So i want the exact code to connect MS-SQL with java. Thanks Bharathi..
0
2452
by: NamelessNumberheadMan | last post by:
I'm looking to use JUnit to test some code that uses Hibernate to connect to my DB (SQL Server). Although I can do this using a hibernate.cfg.xml file I want to create a super class I can extend so I won't have to rewrite code for each TestCase subclass. To make a long story short I'm trying to define some JNDI properties that will include my DB name, username, and password so hibernate can pick it up. I think I have the basics in my setUp...
2
3644
by: giffy | last post by:
I need to use commit and rollback feature in DB2. With executeBatch() feature. I am facing the problems a) journalling features are contradicting with it what does that mean? And how to get rid of that. b) I am not sure what is the databse version. How to see the version of database and the compatibility as far as executeBatch() support is concerned c) Do we need it mandatorily to use autoCommit= false for using executeBatch()
12
5340
by: vineetbindal | last post by:
Hi all, i have a hashtable which i have bounded to detailsview.. it is fine. but i donno what code should i use now to display the values of that hashlist on labels in my details view. hshTable .Add("UserLevel", UserLevel); hshTable .Add("TypeLevel", TypeLevel); hshTable .Add("ActionLevel", ActionLevel);
0
8392
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
8305
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8823
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
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...
0
7321
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
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
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1607
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.