CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2006
    Posts
    21

    Need idea regarding some Sql Server manipulations

    Hi

    I am more into web development than to database side. Recently I recieved a web project related to report generations. By going through the tables in DB which I need to use, I felt that those tables never support a web application development. So what I need is ,

    I need to a new table which contains only those data needed for my web application and I need to get the data from other tables. Is it possible to do something in Sql Server such that, whenever a new data comes into one table , it should be read and get only the necessary data and store in another table. It should be automated. I like to know if something can be done in sql server.

    Thank You

  2. #2
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,901

    Re: Need idea regarding some Sql Server manipulations

    Depending how you want to use the New Table

    If the data is already in a few other tables, already in the database, you are able to generate reports etc, by selecting data across a number of tables if required (which may mean you really dont need the new table at all)

    OR

    You are able to setup "Triggers" which will cause the new table to be updated each time a particular table is changed

    OR

    If your New Table is to be used for reporting occasionally, then simply generate the new table prior to creating the reports.

  3. #3
    Join Date
    Apr 2002
    Location
    Egypt
    Posts
    2,210

    Re: Need idea regarding some Sql Server manipulations

    Quote Originally Posted by George1111 View Post
    If your New Table is to be used for reporting occasionally, then simply generate the new table prior to creating the reports.
    I think this is one of the common approaches. Create a SSIS package that transforms data periodically from original table to the reporting table. Call this package from a scheduled SQL server job.
    Hesham A. Amin
    My blog , Articles


    <a rel=https://twitter.com/HeshamAmin" border="0" /> @HeshamAmin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured