473,387 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

sql server 2000 - dts can't 'see' stored procedure

I am trying to get the DTS Execute SQL task to run a simple sql server 2000
no-parameter stored procedure.

The procedure runs without error when using SQL Analyzer but DTS Execute SQL
reports "could not find stored procedure "[dbo].[test]"

The stored procedure is as follows:

create procedure test as

declare tnames_cursor CURSOR
for
select database_name, tmp_table_name from
[DW_Dimensions].[dbo].[vw_dimension_temporary_tables_active]

open tnames_cursor

declare @tablename sysname
declare @databasename sysname

while (@@FETCH_STATUS <> -1)
begin
select @databasename = rtrim(@databasename)
select @tablename = rtrim(@tablename)
exec ("delete from " + @databasename + ".dbo." + @tablename)
fetch next from tnames_cursor into @databasename, @tablename
end
close tnames_cursor
deallocate tnames_cursor
GO

Any ideas?
Jul 20 '05 #1
1 3687
First thing is that DTS is not able to find stored
procedure.........two possibilities:

1. Stored Procedure don't exist in the SQL server
2. Stored procedures exists but u r not referring it correctly. May be
instead of [dbo].[test] it should be [<DB NAME>].[<DB USER>].[test]

Can you check this?

-Hayat
www.mysticssoft.com

"Bruce Lester" <br**********@email.com> wrote in message news:<FQ********************@rwcrnsc51.ops.asp.att .net>...
I am trying to get the DTS Execute SQL task to run a simple sql server 2000
no-parameter stored procedure.

The procedure runs without error when using SQL Analyzer but DTS Execute SQL
reports "could not find stored procedure "[dbo].[test]"

The stored procedure is as follows:

create procedure test as

declare tnames_cursor CURSOR
for
select database_name, tmp_table_name from
[DW_Dimensions].[dbo].[vw_dimension_temporary_tables_active]

open tnames_cursor

declare @tablename sysname
declare @databasename sysname

while (@@FETCH_STATUS <> -1)
begin
select @databasename = rtrim(@databasename)
select @tablename = rtrim(@tablename)
exec ("delete from " + @databasename + ".dbo." + @tablename)
fetch next from tnames_cursor into @databasename, @tablename
end
close tnames_cursor
deallocate tnames_cursor
GO

Any ideas?

Jul 20 '05 #2

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

Similar topics

2
by: Yves Touze | last post by:
Hi All, I'm trying to migrate from SQL Server 7.0 to SQL Server 2000. I've got some ASP page which call VB components that retrieve shaped recordsets from SQL Server using the MSDATASHAPE...
3
by: Michael | last post by:
This one's really got me. I have a VB.NET (version 1.1.4322) project that provides an easy way to execute stored procedures on a generic level. When I run the code on computer A (running SQL...
1
by: chloe.crowder | last post by:
Hi We're trying to use call a stored procedure to update information in a remote Ingres database. We've linked the server, and can read information using SELECT * FROM OPENQUERY (..........),...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
0
by: Melanie | last post by:
Hi - my problem is as follows: I'm writing an ASP.Net 2.0 app with C#. From the app, I call a stored procedure that updates some data in the app's database (SQL Server 2000). This stored procedure...
8
by: rbg | last post by:
I did use query plans to find out more. ( Please see the thread BELOW) I have a question on this, if someone can help me with that it will be great. In my SQL query that selects data from table,...
12
by: Light | last post by:
Hi all, I posted this question in the sqlserver.newusers group but I am not getting any response there so I am going to try it on the fine folks here:). I inherited some legacy ASP codes in my...
2
by: sqlgirl | last post by:
Hi, We have 2 servers. Server1 is a 2000 box, with SP3 (yes I know it is not up to date). Server2 is a 2005 box, SP2. I set up Server1 (2000) to have a linked server to Server2 (2005). The...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...

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.