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, 2011 at 04:52 AM in Default

avatar image

varun 1
22 8 8 10

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

1 answer: sort voted first

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, 2011 at 05:03 AM

avatar image

Kev Riley ♦♦
66.8k 48 65 81

(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



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Apr 26, 2011 at 04:52 AM

Seen: 2288 times

Last Updated: Apr 26, 2011 at 04:52 AM

Copyright 2018 Redgate Software. Privacy Policy