Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How alter User Defined Table Types and Table-Valued Parameters in sequence.?

Can any one have syntax for the same.?


SQL
CREATE TYPE [dbo].[imptbls] AS TABLE(
    [varSrNo] [int] NOT NULL,
    [varStatus] [varchar](100) NULL,
    [varUserID] [varchar](50) NULL,
   [varRole] [varchar](25) NULL,
    PRIMARY KEY CLUSTERED
(
    [varSrNo] ASC
)WITH (IGNORE_DUP_KEY = OFF)
)
GO


I want to swap both parameter so thts's Why i want to alter the table.
Posted
Updated 7-May-15 0:36am
v2
Comments
OriginalGriff 7-May-15 4:35am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Perhaps if you give us an example of what you are trying to do?
Use the "Improve question" widget to edit your question and provide better information.

1 solution


The user-defined table type definition cannot be modified after it is created.

You will need to drop any procedures or functions which depend on the type; drop the type; create the type with the new definition; and finally re-create the dependant procedures / functions.
 
Share this answer
 
Comments
Niravvasoya 19-May-15 8:53am    
Thanks for you Support @Richard..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900