Viewing 15 posts - 181 through 195 (of 1,496 total)
This post makes no sense. Why would you have an OrderId in a Customer table!?
Also there is no DDL, including the primary key, so the best that can be done...
November 24, 2023 at 8:52 am
I am not sure what question/problem is.
A few basic points to note:
1. Oracle effectively works as SET IMPLICIT_TRANSACTIONS ON so third party applications, which target multiple dbs, tend to work...
November 23, 2023 at 5:38 pm
WITH ChangeDates
AS
(
SELECT R.TeamId, R.PersonId, D.ChangeDate
,MAX(CASE WHEN R.RoleName = 'Manager' THEN X.StartEnd END) AS Manager
,MAX(CASE WHEN R.RoleName = 'Leader' THEN X.StartEnd END) AS Leader
,MAX(CASE...
November 20, 2023 at 11:32 am
Or dynamically:
/* Should be able to get this from a role table without DISTINCT
SELECT DISTINCT RoleName
INTO #Roles
FROM #AssignmentRange;
*/
SELECT RoleId, RoleName
INTO #Roles
FROM
(
...
November 18, 2023 at 11:14 am
WITH ChangeDates
AS
(
SELECT R.TeamId, R.PersonId, D.ChangeDate
,MAX(IIF(R.RoleName = 'Manager', X.StartEnd, 0)) AS Manager
...
November 17, 2023 at 10:16 pm
Try returning LogDate as a datetime2 instead of datetime. Some programs, like Excel, do not format datetime very well.
The total rows suggests you have not SET NOCOUNT ON; at the...
November 14, 2023 at 8:34 pm
As you are using a trusted connection (-E for SQLCMD) it might just be easier to exec a signed stored procedure. I cannot test anything at the moment but something...
November 14, 2023 at 5:16 pm
Thanks. That is certainly worth thinking about.
November 13, 2023 at 9:19 pm
Sorry for the late reply.
Currently we have an onsite system where images/documents are stored in the database. We are considering if these should be placed on the file system, or...
November 13, 2023 at 2:19 pm
You might be able to use Convert_HtmlToXml in the following to get XML which you might then be able to process as you want.
https://sqlsharp.com/features/
I suspect it would be better...
November 6, 2023 at 9:06 pm
Are there actually still places in the wild that implement database logic primarily with stored procedures in applications?
Yes. I would have thought this is the main use of Micro...
November 6, 2023 at 4:59 pm
No one here has any experience with Dapper.
Fair enough, the SQL generated by EF is a lot better than it used to be. It is just my experience that...
November 5, 2023 at 4:47 pm
I'm concerned the Entity Framework Core...
While EF has some nice advanced features, is there any reason why the bulk of the DB access cannot be done with Dapper and...
November 4, 2023 at 5:33 pm
The hope by corporate is we get every individual AOR jobs moved to ESP instead of SQL, which solves the security issue.
What is an AOR job?
If ESP means...
November 1, 2023 at 3:52 pm
I have experience with two large systems - one with FILESTREAM blobs and the other using normal blobs. Both ultimately got migrated out of the database into an object...
November 1, 2023 at 8:27 am
Viewing 15 posts - 181 through 195 (of 1,496 total)