Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Calling Stored Procedures in a Query

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2000-09-07 : 14:12:51
Brad writes "We're using SQL Server 7.0 SP1. We're running NT Enterprise 4.0 SP5. In Access, you can call a vba function from a query. So you can easily do something like:

Update tblOrders Set Order_No = Zero_Pad("Order_No", 3)

When I output numeric fields to a flat file for our mainframe, I have to put zeros in front of the numerics to a specified width. Right now, I run an update cursor through a temporary table and it is horribly slow. Is there a way to call stored procedures in update or insert queries? I've thought about going to a CASE When Len(Field) = 1 Then '00' + Field END type of scenario, but there has to be a better way. Any ideas?"
   

- Advertisement -