Click here to Skip to main content
16,007,472 members
Home / Discussions / Database
   

Database

 
Generalhd serial number Pin
Anonymous29-May-04 3:27
Anonymous29-May-04 3:27 
GeneralRe: hd serial number Pin
Mazdak30-May-04 4:38
Mazdak30-May-04 4:38 
GeneralRe: hd serial number Pin
eggie54-Jun-04 9:15
eggie54-Jun-04 9:15 
GeneralAccessing a table in a different DB then the stored procedure Pin
DotNet_Newbie28-May-04 6:27
DotNet_Newbie28-May-04 6:27 
GeneralRe: Accessing a table in a different DB then the stored procedure Pin
standers28-May-04 6:44
standers28-May-04 6:44 
GeneralCentralised Stored Proc. Pin
RChin28-May-04 5:38
RChin28-May-04 5:38 
GeneralRe: Centralised Stored Proc. Pin
Carlos Antollini28-May-04 5:57
Carlos Antollini28-May-04 5:57 
GeneralRe: Centralised Stored Proc. Pin
Hesham Amin28-May-04 7:16
Hesham Amin28-May-04 7:16 
GeneralRe: Centralised Stored Proc. Pin
Colin Angus Mackay1-Jun-04 22:45
Colin Angus Mackay1-Jun-04 22:45 
GeneralRe: Centralised Stored Proc. Pin
RChin1-Jun-04 23:40
RChin1-Jun-04 23:40 
GeneralCollecting Data via Merge Replication Pin
Roland Bär28-May-04 5:24
Roland Bär28-May-04 5:24 
GeneralSQL Server generate static HTML on a schedule Pin
standers28-May-04 4:29
standers28-May-04 4:29 
GeneralRe: SQL Server generate static HTML on a schedule Pin
Michael Potter1-Jun-04 6:33
Michael Potter1-Jun-04 6:33 
I have to agree with your supervisor on this one. Always go to the source when you can, otherwise you risk presenting invalid data. I would not build new HTML on every update. I would use a version based system for speed.

Example

HTML_Table
===============
HTMLid int
Updater int
HTMLData NTEXT


Every time you rebuild the HTMLData you set the Updater to zero.
UPDATE HTML_Table
SET
Updater = 0,
HTMLData = "whatever"
WHERE HTMLid = 1


Every time you update a table that can change your HTML, increment the Updater:
UPDATE HTML_Table
SET Updater = Updater + 1
WHERE HTMLid = 1

Every time a page needs the HTML:
(1) If the updater > 0 the rebuild HTML
(2) return HTML
This part would best be implemented in a Stored Proc. Remember, SQL Server will cache the last few requests on its own - no need to build your cache system that never knowns when it is out-of-date.



QuestionHow can I know MSDE installed or not? Pin
wk_vigorous27-May-04 22:17
wk_vigorous27-May-04 22:17 
AnswerRe: How can I know MSDE installed or not? Pin
RichardGrimmer27-May-04 23:09
RichardGrimmer27-May-04 23:09 
QuestionHow to catch the internally-handled ADO errors. Pin
Mark Farmiloe27-May-04 21:50
Mark Farmiloe27-May-04 21:50 
GeneralMSDE Server messages Pin
RichardGrimmer27-May-04 21:40
RichardGrimmer27-May-04 21:40 
Generalntext data type Pin
MDem27-May-04 9:58
MDem27-May-04 9:58 
GeneralRe: ntext data type Pin
Mike Ellison27-May-04 10:42
Mike Ellison27-May-04 10:42 
GeneralRe: ntext data type Pin
MDem28-May-04 6:48
MDem28-May-04 6:48 
GeneralRe: ntext data type Pin
MDem3-Jun-04 3:10
MDem3-Jun-04 3:10 
QuestionHow can I use MSDE 2000? Pin
wk_vigorous27-May-04 6:40
wk_vigorous27-May-04 6:40 
AnswerRe: How can I use MSDE 2000? Pin
Grimolfr27-May-04 7:30
Grimolfr27-May-04 7:30 
GeneralRe: How can I use MSDE 2000? Pin
wk_vigorous27-May-04 22:15
wk_vigorous27-May-04 22:15 
GeneralRe: How can I use MSDE 2000? Pin
Grimolfr28-May-04 3:24
Grimolfr28-May-04 3:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.