Viewing 15 posts - 1,201 through 1,215 (of 1,396 total)
Have you considered using a tool to simulate requests? Some DBA's are cynical about performance claims. Sometimes vendor examples are designed to support the solution being offered by salesmen. I've...
December 18, 2019 at 3:39 pm
You could row multiply and summarize across large sequences using a tally function and it wouldn't matter which db instance. These peg the cpu at 100%. If you'd like it...
December 17, 2019 at 10:18 pm
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...
December 17, 2019 at 6:57 pm
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...
December 17, 2019 at 4:16 pm
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)...
December 17, 2019 at 4:58 am
The alternate way to pass structured data to a stored procedure is json. Imo json is the way to go.
December 16, 2019 at 4:56 pm
Well, you could use Visual Studio. In System.Web.Helpers there's something called WebGrid. You could put one of those on each page.
December 16, 2019 at 3:58 pm
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);
December 16, 2019 at 3:54 pm
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...
December 15, 2019 at 11:45 pm
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...
December 15, 2019 at 6:35 pm
These are temporal tables? When you look at the table name in SSMS it says "TableName (System-Versioned)"?
December 12, 2019 at 9:08 pm
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...
December 12, 2019 at 3:27 pm
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...
December 12, 2019 at 1:02 pm
Viewing 15 posts - 1,201 through 1,215 (of 1,396 total)