https://software.codidact.com/categories/38/tags/4096.rssNew Posts Tagged 'sql-server' - Software DevelopmentSoftware Development - Codidact2022-06-29T10:45:41Zhttps://software.codidact.com/posts/286634VBScript Listener in SSRSYolandahttps://software.codidact.com/users/567242022-06-24T18:44:20Z2022-06-29T10:45:41Z<p><a href=""></a></p>
<p>Is it possible to add listeners via VBScript/ JS directly into
a SRSS report?</p>
<p>Goal:</p>
<ul>
<li>Track changes of input fields and key press inside the wrapper...https://software.codidact.com/posts/286068How to get rid of HTML tags and convert entities in SQL Server?Alexeihttps://software.codidact.com/users/531772022-03-07T12:15:15Z2022-03-24T18:52:00Z<p>I have to migrate a bunch of text from an old application into a new one. Some of these texts contain HTML tags and entities (HTML editor was used) and now they do not want to support this in th...https://software.codidact.com/posts/285807Rationale of using database-level transactions inside a store procedure when application layer already manages a transactionAlexeihttps://software.codidact.com/users/531772022-02-02T17:16:14Z2022-02-02T18:58:54Z<p>One of the legacy applications my team has to maintain has almost always this pattern for dealing with data modification:</p>
<pre><code class="language-c#">try
{
// get the connection
...https://software.codidact.com/posts/285389Transferring files from a legacy project to an existing one as varbinaryAlexeihttps://software.codidact.com/users/531772021-12-26T21:29:47Z2021-12-27T23:18:47Z<p>Our team is currently transferring all functionality (+ some changes) from small and very old project A (almost code freeze) to project B (actively developed). As part of the data migration, the...https://software.codidact.com/posts/284607What are the disadvantages of using SQL Server Replication - Transactional Replication type?Alexeihttps://software.codidact.com/users/531772021-10-15T09:00:11Z2021-10-15T09:00:11Z<h3>The context</h3>
<p>A reports related process is directly reading the production operational database once about two hours. This involves reading all the data from some 70 tables which takes a...https://software.codidact.com/posts/284554Is there any justification for having a single tempdb database to be used by all databases on a SQL Server intstances?Alexeihttps://software.codidact.com/users/531772021-10-10T07:14:22Z2021-10-10T22:51:17Z<p>Despite the fact that I have programmed against SQL Server for quite a while I did not pay much attention to the <code>tempdb</code> database. This is especially true if application logic is mos...https://software.codidact.com/posts/281605How to easily support time frame grouping in queries?Alexeihttps://software.codidact.com/users/531772021-05-05T07:42:29Z2021-05-05T18:42:57Z<p>I had a curiosity about how much the experienced users wait for their questions to be answered on Stack Overflow and had written <a href="https://data.stackexchange.com/stackoverflow/query/14047...https://software.codidact.com/posts/281415How to break infinite loop in CTEartaxerxehttps://software.codidact.com/users/534832021-04-19T12:40:13Z2021-04-21T08:59:28Z<p>I have a parent child relation in my table, with possibly circular cases. Is it possible to break the infinite recursivity in CTE checking values of all previous rows? I would need something lik...https://software.codidact.com/posts/278771SID to login for access via a groupJames Jenkinshttps://software.codidact.com/users/363322020-10-23T23:42:23Z2020-11-07T13:37:13Z<p>I have a query that returns the owner of jobs on an SQL instance,</p>
<pre><code> select s.name as JobName
, s.owner_sid
, ISNULL(L.name,'AccessViaGroup') as LoginName --Trying to figure out...https://software.codidact.com/posts/278981How can I can I reduce the size of a SQL Server database after being restored and massive embedded files stripped?Alexeihttps://software.codidact.com/users/531772020-11-05T19:49:51Z2020-11-05T19:58:46Z<p>My project has the following set up for the production and preproduction ("clone") environment.</p>
<ul>
<li>Production is not accessible at all for the development team, only the pr...https://software.codidact.com/posts/277474How are integers interpreted in contexts that expect a date?ajvhttps://software.codidact.com/users/532422020-08-24T21:02:10Z2020-10-24T14:57:32Z<p>I found a confusing construction in several stored procs in an MS SQL 2008 R2 database:</p>
<pre><code>DATEADD(dd, 0, DATEDIFF(dd, 0, some_date))
</code></pre>
<p>As I understand it, these are t...https://software.codidact.com/posts/277415Error: 18456, Severity: 14, State: 5; SSMS > Network sever from PCJames Jenkinshttps://software.codidact.com/users/363322020-08-21T17:53:00Z2020-10-20T17:12:18Z<p>I just completed my first install of SQL as a server-based, Enterprise Edition. I wanted to check it out using SSMS on PC using my Admin Access. But could not connect.</p>
<p>For security reas...