Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9240207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:09:00+00:00 2026-06-18T08:09:00+00:00

We have a large Database (Many Table, SP, Function and…) and our database programers

  • 0

We have a large Database (Many Table, SP, Function and…) and our database programers are over 10 person. All of theme can use the database on our main server computer or on his local system.

Our requirements:

we want each db programmer can apply his definitions (create table, triger, sp, fn &…) and modifications (on tables, sp, trigers, fn &…) by SQL SERVER MANAGMENT STUDIO (or your suggest tool) and get all of this activities as a TSQL Script at the end of each day.

So, we want a automatic log of our db programers activities as a TSQL script (sequence of sub tsql queries). for example:

My Activities:

My first activity>> I open my Customer table as design mode, by right
click on table and click Design. then i change datatype of ID field
from INT to BigInt. then save

My second activity>> I change
PR_Customer_Insert stored procedure and i execute it.

Now i want an executable log like this:

-- UserName: Ram
-- 2013-02-10 10:20:35
Alter Table ALTER TABLE Customer ALTER COLUMN Id TYPE bigint;
Go


-- UserName: Ram
-- 2013-02-10 10:45:00
Drop Sp DROP PROCEDURE dbo.PR_Customer_Insert;


-- UserName: Ram
-- 2013-02-10 10:45:00
Create sp CREATE PROCEDURE PR_Customer_Insert
@id int,
@name nvarchar(30) AS
       
 INSERT INTO Customer
 (
    @id,
    @name
 )
       
GO

We know compare tow database is a solution but we want access to SSMS Query Pipeline…

My Questions:

Is there any way for this request (an automatically generated log that is an executable TSQL script)?
What is the best solutions for generate this scripts automatically???
What do you think about this idea in a team work on database?

Thanks…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:09:01+00:00Added an answer on June 18, 2026 at 8:09 am

    Possible use DDL triggers, but on a certain database

    Simple example:

    --Create table EvtLog     
    CREATE TABLE EvtLog 
     (
      LoginName NVARCHAR(100),
      PostTime DATETIME,  
      EventType NVARCHAR(100),
      TSQLCommand NVARCHAR(2000)  
      )
    GO
    --Create the DDL trigger 
    CREATE TRIGGER trPreventTblChange 
    ON DATABASE
    FOR DROP_TABLE, CREATE_TABLE, ALTER_TABLE, 
        DROP_PROCEDURE, CREATE_PROCEDURE, ALTER_PROCEDURE
    AS
    DECLARE @Data XML
    SET @Data = EventData()
    INSERT EvtLog (LoginName, PostTime, EventType, TSQLCommand)
    SELECT @Data.value('(/EVENT_INSTANCE/LoginName)[1]', 'nvarchar(100)'),
           @Data.value('(/EVENT_INSTANCE/PostTime)[1]', 'nvarchar(100)'),       
           @Data.value('(/EVENT_INSTANCE/EventType)[1]', 'nvarchar(100)'),
           @Data.value('(/EVENT_INSTANCE/TSQLCommand)[1]', 'nvarchar(2000)');
    GO
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very large Oracle database, with many many tables and millions of
I have large database table, approximately 5GB, now I wan to getCurrentSnapshot of Database
I have one large database table of request data, much like Apache request logs,
I have a large database table that I need to display on a Windows
I have a large database of resumes (CV), and a certain table skills grouping
I have a large database with over 150 tables that I've recently been handed.
I have two very large enterprise tables in an Oracle 10g database. One table
I am working with legacy database and have a many-to-many association with a join-table
I have a large database that contains many urls, there are many domains repeating
I have a rather large (many gigabytes) table of data in SQL Server that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.