473,508 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQLAdapter not returning value

Hi,

I have an application written in .Net and my database is
SQLserver. In my application i am using SqlAdapters to
get the values from the database. But sometimes, values
are not returned properly to these adapters and there are
no exceptions also. At this time, all database queries
will fail and the solution to this is restart the machine
(the client, not the sqlserver)

Could this be a problem with the connection pooling?

How should i proceed to nail down the problem?

Thanks,
Lekshmi
..
Nov 19 '05 #1
3 1021
lekshmi,
Try posting ur code!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #2
Hi,

his is the code which i am using

public decimal[] RetrieveReturnRange()
{

decimal[] RangeValues = new decimal[2];

m_command.CommandText = "[sp_GetRange]";

m_command.CommandType = CommandType.StoredProcedure;
m_command.Connection = m_connection;

DataTable RefundValueDT = new DataTable();

m_adaptor.Fill(RefundValueDT);
DataRow[] dr = RefundValueDT.Select("","RefundValue");
return dr
}

the stored procedure should ideally return one column
which has 2 rows from a look up table. this table will
always have 2 rows. the application runs fine most of the
times. but some times, say twice in a week ( frequency
not constant) the application will start throwing errors.
the value returned from the stored procedure will be
either null or some junk value. at this time, all the
queries to the database fails and we have to restart the
server mostly. but there are times when the problem will
get resolved by its own (say, after some 15 minutes).
this procedure is only a sample. Since this is the most
commonly used procedure, in the application during the
problem time, most of the errors are thrown by this
procedure.

Could some one help me out?

Thanks,
Lekshmi
-----Original Message-----
lekshmi,
Try posting ur code!

*** Sent via Developersdex http://www.developersdex.com ***Don't just participate in USENET...get rewarded for it!
.

Nov 19 '05 #3
Then if the error is from the Sprocedure then try checking it out.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1357
by: lekshmi | last post by:
Hi, I have an application written in .Net and my database is SQLserver. In my application i am using SqlAdapters to get the values from the database. But sometimes, values are not returned...
2
1968
by: Newbee Adam | last post by:
how to save textbox values to 2 tables using sqladapter I am new with this. Do I need to ADO.net? what is the simplist correct way? or can I write a query in my vb.net form insert table...
11
409
by: Newbee Adam | last post by:
I am new to vb.net coming from vb6 (intermediate level) 1. I am trying to wrap my mind around when I would use ADO.Net and when to use sqladapter. 2.can I use sqldataadapter in web app?
2
1574
by: lekshmi | last post by:
Hi, I have an application written in .Net and my database is SQLserver. In my application i am using SqlAdapters to get the values from the database. But sometimes, values are not returned...
1
1089
by: Steve Jacklin | last post by:
How do I link a TreeView Control to an SQLAdapter?
1
3656
by: Hrvoje Voda | last post by:
How to refresh dataset and sqladapter after using store procedure? I tried to call update on sqladapter but it doesn't work. Only when I close program and call it again a change is visible. Hrcko
0
933
by: jincep | last post by:
can you tell me how to configure sql adapter in vb.net 2005. i know to configure in 2003 by right clicking sqladapter -->properties, we can. but when i right click the same properties in 2005 it...
2
2722
by: MikeJ | last post by:
sqldapter ms sqlserver 2005 hi i have a main database 1 databasemain 2 databaseother i have a stored proc in databaseother i get error could not find stored procedure the Proc is in...
1
2677
by: DaveL | last post by:
I have 2 rows in a datatable When i Adapter.Update(mytable) i get Update requires valid update command error When In Fact I am Inserting SqlAdapter ad = new SqlDataAdapter()...
0
7233
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,...
0
7135
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...
0
7342
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,...
0
4729
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...
0
3215
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...
0
3201
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1570
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 ...
1
774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
440
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...

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.