Forum Replies Created

Viewing 15 posts - 1,966 through 1,980 (of 39,720 total)

  • Reply To: Load .sql from folder

    Honestly, use something like FlywayDB Community or a similar framework. No need to reinvent this stuff.

  • Reply To: Set Up SQL Server on SANs, NAS or computer

    Mostly agree with the above. Use a SAN. VPNs tend to be fairly cheap and work well, but in the long term you might want some type of app. I'd...

  • Reply To: Dynamic Alert query

    If you don't want second alerts, what I might do is log alerts as they are sent based on a silo and time. If you have sent an alert in...

  • Reply To: Database alert if no data added

    How can you tell if there is more data in the table? You can count rows, but if someone adds a row and deletes a row, you won't be alerted.

    As...

  • Reply To: No-code Software Engineering

    I like no/low code tools, like Power BI and others. Let some people start to solve problems, and when they find them working, take what they did and improve it...

  • Reply To: Holding Code in Your Head

    That context switching is tough. It gets me, too, and so I try to batch together different types of work and areas so that I can focus better.

  • Reply To: Forum Api Project

    This script creates 2 procedures which return view models in JSON format.  The view models return the posts for a thread in either recent view (plain old normal view) or...

  • Reply To: Forum Api Project

    This script creates 7 posts in the 'frm.posts' table.  These are "indirect responses" to thread(s) or replies to (other) posts.  The variable declarations are repeated for each procedure execution (to...

  • Reply To: Forum Api Project

    Added statements to populate frm.posts_sv as well as frm.posts.

    /*
    delete frm.posts;
    dbcc checkident ('frm.posts', reseed, 0) with no_infomsgs

    alter table frm.posts_sv set (system_versioning = off);
    delete frm.posts_sv;
    delete frm.posts_sv_history;
    alter table frm.posts_sv...
  • Reply To: Forum Api Project

    This script creates 5 posts in the 'frm.posts' table.  These are direct responses to threads.

    /*
    delete frm.posts;
    dbcc checkident ('frm.posts', reseed, 0) with no_infomsgs
    go
    */

    set nocount on;
    set xact_abort on;

    begin...
  • Reply To: Forum Api Project

    This script creates 5 posts in the 'frm.posts' table.  These are direct responses to threads.

    /*
    delete frm.posts;
    dbcc checkident ('frm.posts', reseed, 0) with no_infomsgs
    go
    */

    set nocount on;
    set xact_abort on;

    begin...
  • Reply To: Forum Api Project

    This script creates 5 threads in the 'frm.threads' table.

    /*
    delete frm.threads;
    dbcc checkident ('frm.threads', reseed, 0) with no_infomsgs
    go
    */

    set nocount on;
    set xact_abort on;

    begin transaction

    /*create proc frm.api_threads_post
    @f_idint,
    ...
  • Reply To: Forum Api Project

    Regarding the MERGE statement in the frm.api_posts_reply_post procedure the major issue I saw is/was the target is the entire frm.posts table.  The Docs for MERGE is a litany of warnings,...

  • Reply To: Forum Api Project

    This script creates 3 stored procedures which create rows in the remaining 2 tables, 'frm.threads' and 'frm.posts' tables.  The proc to create new threads is a plain insert.  The proc...

Viewing 15 posts - 1,966 through 1,980 (of 39,720 total)