Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. SQL Server 2008

SQL Server 2008

Scheduled Pinned Locked Moved Database
databasesql-serverdesignsysadminsales
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VishwaKL
    wrote on last edited by
    #1

    Hi Guys, I want to know the table creation for the problem described below. I have a 26 parameters for a customer feed back, and i have a set of sites , some sites don't have some parameters in my 26 points, and some site want more then 26 points, so i thought to create table like id(int),parametename(Nvarchar(max)),site1(bit),site2(bit),site3(bit),site4(bit) and i will allow in UI to check which point is applicable for which site, this solution is for time being, my concern is id the site name may add in future that time we have to change the parameter table and modify the insert and update methods as well as Store procedure, How can avoid the re-coding by creating customized table. Please suggest me the solution. Thanks and regards Vishwa

    L J 2 Replies Last reply
    0
    • V VishwaKL

      Hi Guys, I want to know the table creation for the problem described below. I have a 26 parameters for a customer feed back, and i have a set of sites , some sites don't have some parameters in my 26 points, and some site want more then 26 points, so i thought to create table like id(int),parametename(Nvarchar(max)),site1(bit),site2(bit),site3(bit),site4(bit) and i will allow in UI to check which point is applicable for which site, this solution is for time being, my concern is id the site name may add in future that time we have to change the parameter table and modify the insert and update methods as well as Store procedure, How can avoid the re-coding by creating customized table. Please suggest me the solution. Thanks and regards Vishwa

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You should have a table that stores the list of sites identified by a SiteID column. And then you can store the values in your table with these columns id(int),parametename(Nvarchar(max)),SiteID(int),value(bit) Whenever there is a new site is to be added, just add it to the site table and insert a new row with that id in this table.

      1 Reply Last reply
      0
      • V VishwaKL

        Hi Guys, I want to know the table creation for the problem described below. I have a 26 parameters for a customer feed back, and i have a set of sites , some sites don't have some parameters in my 26 points, and some site want more then 26 points, so i thought to create table like id(int),parametename(Nvarchar(max)),site1(bit),site2(bit),site3(bit),site4(bit) and i will allow in UI to check which point is applicable for which site, this solution is for time being, my concern is id the site name may add in future that time we have to change the parameter table and modify the insert and update methods as well as Store procedure, How can avoid the re-coding by creating customized table. Please suggest me the solution. Thanks and regards Vishwa

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #3

        Table: site - id - Site_name - Site_url Table: site_parameter - id - Site_id (foreign key to above table) - name - value For "26 parameters" you would have 26 rows in the site_parameter table.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups