SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Stored Procedure returns different values...
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

crazycat503
Starting Member

Eritria
16 Posts

Posted - 12/26/2012 :  04:32:42  Show Profile  Reply with Quote
Hi,

I have a stored procedure that adds multiple rows it accepts at once. I call it from vb.net 2010 application. Now, for the same parameters, it inserts them just fine then the next time it gives error.

I can't really gets behaviour cos there are times it would work for 4-5 consecutive calls then just gives errors for the same, same parameters.

Am I missing something?

All guys!

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 12/26/2012 :  05:06:50  Show Profile  Reply with Quote
can you post whats the error message? also specify how you are calling it.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

crazycat503
Starting Member

Eritria
16 Posts

Posted - 12/27/2012 :  03:56:49  Show Profile  Reply with Quote
it doesn't send an error message per say but rather it doesn't do anything. when the SP does nothing, it returns me the number -1 which is locally programmed to the sp. I just can't understand why it would work one minute then do nothing in the next call.

The call is made from vb.net 2010 in the usually way through the command object. Actually, i have executed the script over and over directly from sql server and it doesn't return -1 at all but the pm are directly copied from vb.net 2010 with no alternation at all. THat is what lead me to think it must be SQL SERVER problem.

All guys!
Go to Top of Page

bandi
Flowing Fount of Yak Knowledge

India
2224 Posts

Posted - 12/27/2012 :  04:43:59  Show Profile  Reply with Quote
Can you post that Stored Procedure once?

--
Chandu
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000