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
 Import/Export (DTS) and Replication (2000)
 Error Export Stored Proc

Author  Topic 

ywb
Yak Posting Veteran

55 Posts

Posted - 2006-02-09 : 19:17:43
Hi,

I need to export about 100 stored procedures from the SQL server in my development environment to the one in the testing environment. But it keeps giving me an ambiguous error:

   [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'disable'.

Now how can I determine exactly which stored procedure is giving this error?


ywb.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-02-09 : 19:34:32
Are you getting this error in the Generate SQL Script wizard, while running the code in Query Analyzer, or somewhere else? Please explain.

Tara Kizer
aka tduggan
Go to Top of Page

ywb
Yak Posting Veteran

55 Posts

Posted - 2006-02-09 : 20:19:40
Oh, sorry, forgot to mention that I was using Enterprise Manager's "Export Data..." function
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2006-02-09 : 22:27:18
FIRST: you need to have a change control environment.

If you don't, then I would script the sprocs out of EM

And if you are tryin to export "data", you are using DTS....

Tell us what you need to do. bcp is probaly the best way.



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-02-10 : 13:50:02
ywb, don't use Export Data wizard or DTS packages to script out objects. You can do this via the Generate SQL script wizard in Enterprise Manager. Right click, all tasks, generate SQL script. Grab the script and run it in Query Analyzer. If there are errors, you'll at least have a line number. You can also double click on the error in the results pane to jump to that line.

Tara Kizer
aka tduggan
Go to Top of Page
   

- Advertisement -