Forum Replies Created

Viewing 15 posts - 1,231 through 1,245 (of 1,424 total)

  • Reply To: SQL Job advice...am I being ripped off?

    danazzu wrote:

    Thanks for the advice, Ill look into that.

    We have a caching issue with our site which can make it extremely slow at times, but I think the main issue...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: SQL Job advice...am I being ripped off?

    Is Zoho slow or is your site slow or are both slow?  One way to gain some traction over the situation could be to recreate the data flow without the...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Update data to null when Id matches

    The sample data didn't contain any duplicates so I added a few.

    DROP TABLE if exists #mytable;
    go
    CREATE TABLE #mytable(

    Id INTEGER NULL

    ,Empid INTEGER NULL

    ,CatId INTEGER NULL

    ,age NUMERIC(5,2) NULL

    ,Type VARCHAR(5)...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Stored Procedure Documentation

    The alternate way to pass structured data to a stored procedure is json.   Imo json is the way to go.

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: ASP code generator?

    Well, you could use Visual Studio.  In System.Web.Helpers there's something called WebGrid.  You could put one of those on each page.

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Stored Procedure Documentation

    The type of the object (in C#) assigned to the SqlParameter is DataTable.  The SqlDbType is SqlDbType.Structured.

    SqlParameter lts = SqlCmd.Parameters.Add("@logged_times", SqlDbType.Structured);
    lts.Direction = ParameterDirection.Input;
    lts.Value = DataTableConverter.ToDataTable(model.Values);

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Merge statement not working as expected for bulk load.

    Jonathan AC Roberts wrote:

    I don't think the OP has explained very precisely what the problem is. Why do they only want ProductId 101? Why does this take presidency over ProductId 102? Why does...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Merge statement not working as expected for bulk load.

    Is it really necessary to use a merge statement?  Why not something like this?

    DROP TABLE IF EXISTS Test_Products;
    DROP TABLE IF EXISTS Test_UpdatedProducts;
    GO
    CREATE TABLE Test_Products(ProductIDint, ProductName varchar(10), Rate...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: SQL Server Name Convention and T-SQL Programming Style

    gserdijn wrote:

      <li style="list-style-type: none;">

    • Only use IF with BEGIN and END. That should be mandatory in my opinion.

    So this...

    if @x=1
    begin
    return 'xyz';
    end
    else
    begin
    return 'abc';
    end

    ...is preferable to?

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Need Help formatting query to pull date-related data from Table

    These are temporal tables?  When you look at the table name in SSMS it says "TableName (System-Versioned)"?

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Insert using select statements

    Is id the primary key of jobs?

    Is siteid the primary key of SiteAddresses?

    To get the columns from both tables onto a single row you could use CROSS JOIN.  It works...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Data Security

    Is this the documentation you're looking for?

    https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/enable-encrypted-connections-to-the-database-engine?view=sql-server-2017

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Can we send temp table as parameter from one store procedure to store procedure

    It's possible to pass a user defined table type to a stored procedure as a readonly parameter.  This code defines a table type called test_type1.  The procedure dbo.test_proc1 declares a...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: SQL Server Name Convention and T-SQL Programming Style

    The entire plural column is 'no' including temporal tables.  If tables are collections of rows then they should be plural, no?  If the table name is 'orders' then one row...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Are the posted questions getting worse?

    Thom A wrote:

    Steve Collins wrote:

    Lynn Pettis wrote:

    They have to want to help for the encouragement to work.  Not sure how to get someone who really doesn't want to contribute to do so.

    Just...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Viewing 15 posts - 1,231 through 1,245 (of 1,424 total)