Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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 :-)


  #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

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

  #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

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

Hovik Melkomian.
  #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


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.



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

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.