Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 24th, 2003, 11:54 AM
Registered User
 
Join Date: Oct 2003
Location: Olympia, WA, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default stored proc working local and not remote

I know I'm missing some simple thing that's probably right in front of my nose, but I'm stumped and hope someone might be able to help me. Here's the situation:

I'm working on a project long distance. I'm using VB6.0 and SQL Server 2000.

I work local and then upload and install stuff remotely. My local
machine has SQL server on it while the remote machine connects to SQL
Server on a dedicated machine (my VB interface resides on the remote
machine and connects to the dedicated server using ADODB, etc.) All
connections work remotely, that's not the problem. The problem is in a stored proc that works on my local machine and doesn't on the client's.

The proc very simply calculates out the cost of a truckload of timber
and updates the cost field in the loads table with that calculated
cost. The procedure works perfectly on my local machine, but when it
is run on the client's machine, it places NULL in the cost field of
each load. I have run the proc in debug mode on both my machine and
the client's and it works on my machine, but on the client's, I pass in the three parameters and then click on execute and it doesn't even appear to run. I'm at a loss. I thought it might be a rights issue so I temporarily set the program to SA and it still didn't work. I even tried debugging as SA and it still doesn't work.

I checked the properties of the proc and it showed public with execute unchecked so I checked it and it still didn't work. I'm lost.

Any ideas as to where I might look for a solution or should I just
shoot the client (just kidding :-)

Dave


Reply With Quote
  #2 (permalink)  
Old October 24th, 2003, 01:03 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Location: Clarksville, TN, USA.
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What is the code that you are using to connect to the database?
What is the code for your stored procedure?


Sal
Reply With Quote
  #3 (permalink)  
Old October 25th, 2003, 03:24 AM
Friend of Wrox
Points: 3,558, Level: 25
Points: 3,558, Level: 25 Points: 3,558, Level: 25 Points: 3,558, Level: 25
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: California, USA
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

check ur connection & us DB Permissions for Conenction & SPs. can u connect & run ur SP from ur Query Analyzer?!
I hope this help u!

Always:),
Hovik Melkomian.
Reply With Quote
  #4 (permalink)  
Old October 25th, 2003, 02:02 PM
Registered User
 
Join Date: Oct 2003
Location: , , Portugal.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

usually the null update occurs, when in a select statement it doesn't return anything, or the result it's null. Are you using date values to select anything? If yes, try to use ISO format (yyyy-mm-dd, this one works allways) instead of american format.

If no, are you using the same software versions (service pack of ado and sql server) on your client?

The code of sp, would help too.

Regards,

Nuno
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Working Stored Proc fails in ASP.Net David_0223 SQL Server 2005 5 June 12th, 2008 07:19 PM
Calling an insert stored proc from a select stored dzitam SQL Language 10 April 2nd, 2007 12:39 PM
How to get value from stored proc busybee ASP.NET 1.0 and 1.1 Basics 4 April 2nd, 2006 01:06 AM
Synchronize a remote and local database - MAYBE??? kevorkian SQL Server 2000 3 March 8th, 2005 02:00 PM
Local COM working , but not working at Web Serv nagen111 .NET Web Services 3 February 19th, 2005 04:22 AM



All times are GMT -4. The time now is 01:05 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.