Solved

ALTER PROCEDURE Doesn't work correctly

Posted on 2004-03-29
7
240 Views
Last Modified: 2008-03-06
Hi.
I have a stored procedure that include a dinamyc query.

If i modify that stored procedure from the "enterprise manager", runs well.


But, if i modify that stored procedure from the "query analizer" using the "alter procedure" statement,
when i run the stored procedure, i get an error message.

This always happen to me when i do this with stored procedures that have dinamyc querys.

What is happen ? What can i do ?
0
Comment
Question by:fnajar
7 Comments
 
LVL 8

Expert Comment

by:plq
ID: 10706484
Try

exec sp_recompile procname
0
 
LVL 50

Expert Comment

by:Lowfatspread
ID: 10706908
whats the actual error message


pot the query
0
 
LVL 34

Expert Comment

by:arbert
ID: 10707099
I'm guessing it's because your SET statements are different between EM and Query analyser (ansi warnings, quoted identifiers, etc.).....
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 500 total points
ID: 10710139
Do you need help maintaining your open questions?  For the record:

Questions Asked 6
Questions Open 4
Questions Graded: 2
Questions Deleted: 0
Last 10 Grades Given: C B

And here are all your old open questions:
1 06/13/2003 500 Help with a query  Open Microsoft SQL Server
2 06/30/2003 365 I can't run asp's on my IIS Server  Open Internet Information Server
3 09/30/2003 210 Explicit error messages in IIS  Open Internet Information Server
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 10714475
Thank you for the points, but I believe you awarded them in error.  Please see here:
I accepted the wrong answer. Now what?
http://www.experts-exchange.com/help.jsp#hi17
0
 
LVL 34

Expert Comment

by:arbert
ID: 10714494
at least you got a C lol
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 10750540
>>at least you got a C lol<<
I am not complaining: That was 1000 points :)

But seriously, some people just don't get it.  I mean who is going to help ot someone with this record:

Questions Asked 6
Questions Open 3
Questions Graded: 3
Questions Deleted: 0
Last 10 Grades Given: C C B
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Suggested Solutions

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now