June 15, 2020 at 9:17 am
I have this table abc. when I script it out it contains Create table and Alter procedure commands.
Now I want to add a Select statement to this table, so when I script out the next time it should consist of Create table, Alter procedure and the new Select statement
Is there a way to do this.
Regards
Atulyan Padmanabhan
June 15, 2020 at 9:55 am
What tool are you using as SSMS doesn't do that by default.
If it is within SSMS what plugins do you have?
June 15, 2020 at 9:56 am
no tools
June 15, 2020 at 10:33 am
Please post screenshots and a walkthrough as by default when you script a table via the gui it only scripts the table. not the procedures also.
June 15, 2020 at 1:53 pm
Sorry... post removed. Apparently, I posted to the wrong thread.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 15, 2020 at 2:17 pm
It's not quite clear what you want here. What would the SELECT statement include?
The scripting engine in SQL Server produces the DDL code for the object, but does not include the data. You can use a bacpac export, which is the table + data, with the Export Data Tier Application option under the Tasks (right click the db name)
June 15, 2020 at 2:19 pm
Jeff, to which article are you referring?
The absence of evidence is not evidence of absence
- Martin Rees
The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
- Phil Parkin
June 15, 2020 at 3:25 pm
Jeff, to which article are you referring?
Sorry... post removed. Apparently I replied on the wrong thread.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 15, 2020 at 10:37 pm
no tools
Ok then... let's reword the question... how are you producing the scripts that you cite in your original post?
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply