Viewing 15 posts - 1,201 through 1,215 (of 1,390 total)
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
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...
December 10, 2019 at 7:29 pm
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...
December 9, 2019 at 3:13 pm
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 a few...
December 9, 2019 at 1:58 pm
An alternative to nested sets is nested json arrays. Here it is using Jeff's (small) Employee table (renamed to dbo.Test_Employee)
drop table if exists dbo.Test_Employee;
go
CREATE TABLE dbo.Test_Employee
...
December 8, 2019 at 5:12 pm
To see if DesNorton's solution worked (it does) and to see if the interval could be created in Sql 2012 I tried with this sql although I don't have any...
December 6, 2019 at 10:33 pm
By the way, I did have a script published here on SSC that includes an example of nested json arrays. Please see:
December 4, 2019 at 9:48 pm
Viewing 15 posts - 1,201 through 1,215 (of 1,390 total)