How to sum up rows returned from a select statement
Below is the code that I am using. The desired goal is to return a single row that is the sum of m1, m2, and m3 for the criteria given at the end. At the moment, it is giving three rows. While I can...
View ArticleSQL pains: TLog files (.LFS) are over 2x size of database files (.MDF)....
...but I cannot for the life of me seem to shrink them. I'm still a SQL noob, so thanks for any help here. I got my last issue resolved(well, a sufficient workaround in place at least), but am stumped...
View ArticleSQL dbmail with variables
I am working on a SQL stored procedure (below). So far the below script runs successfully if I don't put variables in the body. When I do, it returns "Conversion failed when converting the varchar...
View ArticleSQL pains: TLog files (.LDF) are over 2x size of database files (.MDF)....
...but I cannot for the life of me seem to shrink them. I'm still a SQL noob, so thanks for any help here. I got my last issue resolved(well, a sufficient workaround in place at least), but am stumped...
View ArticleAvailability Group of SQL Server
Hi,Currently I'm working on the testing of availability group in SQL Server. So when I successfully failover from node 1 to node 2 in the availability group, I found out that the availability group...
View ArticleSSRS - How do I use a URL and use it as a parameter search?
I am new with SSRS and I am trying to figure out how I can use the SSRS web link and use the last 10 characters to be able to show the SSRS report result.It will be published from a different system as...
View ArticleSQL - Always on availability group
Hello,I have a question about always on availbility group, let's say you have Database A and Database B for fail over.if you make update to database B will it send it back to database A?
View ArticleSQL Database Table - Multiple Employees with Pay Rate, Hours, and Other Info
Ok, so I'm not going to pretend I'm well versed in databases by any means but I am looking at creating a job costing application for the small company I work for in C#.I can connectto a database with...
View ArticleSQLs Job running slow
Does SQL jobs running INTERNALLY between servers being slow have anything to do with the systems OS being old or windows update downloading at the same time as the jobs?
View ArticleHow to encrypt a SQL Express DB?
Hello Spicefolk!I spy with my little eye a SQL Express database deployed on a Windows Server 2012 VM that needs to be encrypted. It's a back-end DB for an app running elsewhere, everything within being...
View ArticleApplication closes with error regarding connection current state is closed
We have an application installed on Windows 2012 R2 using SQL Express 2012. The application setup is installed on the workstation (Windows 7, 8.1 & 10) and connects to a server SQL Express...
View ArticleSSIS Import Spreadsheet with 3 nested row headers
Hi all, I'm struggling somewhat with a task to import a sales SS which has 3 header rows, each represent either a grouping or a measure type.I need to transform the data to fit into a cube furthe down...
View ArticleSQL 2012 - Low PLE on one node in failover cluster
Hoping someone else has experienced this behavior before.We have two 2008 R2 failover cluster nodes running SQL 2012One node has 128 GB of memory. The one showing continuous low PLE has 156 GB. While...
View ArticleImproving SQL DB performace through Transaction Replication
I'm totally new to this SQL DB's I hope someone could help me out of this. We got a client whose database will be frequently accessed by nearly 300+ devices in the working hours. It was previously in...
View ArticleWays to Compress SQL Server 2016 Web edition Backups
I am looking for an affordable or free way to compress SQL Server 2016 Web edition backups, so that we can store backups for longer than a week. I am aware that the Web edition does not natively...
View ArticleAdding value from other table
Hello all, I am working with SQL Report Builder and need to add fields from another table (that are linked by order number), which is currently on the report. How would I go about doing this? I found...
View ArticleBest practice db settings for LS Nav 2016 to minimize table locks
hi friends, we are experiencing issues with sql table deadlocks. our application is Nav 2013R2, and the lockings seemed to be increasing as time passes and more data comes in the db.has anyone else...
View ArticleBacking up Sql Server and Transaction Log Files
I wish I had come on to Spiceworks and asked before I did this shrink database as I am now worried I have lost data.I am not a SQL expert and I am not supposed to be messing around with this, but the...
View ArticleUnexpected query results / dealing with wildcards
Hi all,I have a Transact SQL query that I am trying to write, but am having difficulties.I need to separate one field into three outputs, I can do that... that's not the problem.Here is an example of...
View Articlewhat are the steps to work on real time project of implementing BI on data?
I am a graduate having some practical experience(beginner level) on MS-BI/Data Modelling.want to work on a project to gain experience and able to apply for full-time jobs.I have real data of my...
View Article