x
login about faq Site discussion (meta-askssc)

How to use sp_sqlrefreshmodule?

Hi to all

I just change the user defined data type from smallint to int .

But i could not access any table it shows following error

"The parameter "@some" is not the same type as the type it was created with. Drop and recreate the module using a two-part name for the type, or use sp_refreshsqlmodule to refresh its parameters metadata. "

I dont know how to solve this error

Please help me Thanks in advance

more ▼

asked Apr 26 '11 at 04:52 AM in Default

varun 1 gravatar image

varun 1
21 5 7 8

(comments are locked)
10|1200 characters needed characters left

1 answer: sort newest

In the error message it refers to 'the module' - you need to get the name of this, it could be a stored procedure, function, trigger or view. What T-SQL are you executing when you get this error?

Then use

sp_refreshsqlmodule 'YourModuleName'

to solve the problem.

Check this MSDN/BOL page for detailed info.

more ▼

answered Apr 26 '11 at 05:03 AM

Kev Riley gravatar image

Kev Riley ♦♦
46.1k 39 43 69

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x600
x92

asked: Apr 26 '11 at 04:52 AM

Seen: 1028 times

Last Updated: Apr 26 '11 at 04:52 AM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.