case statement in sql server
I am trying to retrieve students who are ferpa restricted or not.(1) When I enter 'y' it should give me a list of ferpa restricted students. (2) When I enter 'n' it should give me a list of ferpa...
View ArticleProgramatically restart SQL replication
We have two MSSQL 2014 SP1 servers; one replicates data to the other via MSSQL replication.I'd like to be able to script out dropping and re-initializing replication, but the scripts produced by SSMS...
View ArticleSQL Server Windows Authentication mode if domain unavailable
I'm a part-time DBA for our small shop. Â Up to now, our SQL Servers have all used mixed authentication for application compatibility. Â I have a new SQL Server that I'm spinning up now that doesn't...
View ArticleWhat is the best way to cross reference two tables in Report Builder?
Hello,I'm new to SQL queries and need to build a custom report in Microsoft SQL Report Builder 3.0. The data source is SCCM database. I need help with understanding the best approach to achieve the...
View ArticleAudittraceyyyymmdd.trc files growing rapidly
Hello,I have weird issue. In c:\programfiles\ms sql server\mssql10_50\mssql\data folder audittrace file growing automatically and it consumes lot of diskspace.I already disable c2 audit trace option...
View Article[SOLVED] What is the best way to cross reference two tables in Report Builder?
Hello,I'm new to SQL queries and need to build a custom report in Microsoft SQL Report Builder 3.0. The data source is SCCM database. I need help with understanding the best approach to achieve the...
View ArticleSyncing multiple stored procedures between instances
Not sure if this is possible but I'm hoping someone can point me in the right direction if it is. I'll try to explain things as best I can.Basic background: My company manufactures kitchens for new...
View ArticleTrying to display field data in paragraph format vs column SQL server 2008
I am trying to display a list of values from a dataset in SSRS 2008 r2. I created a dataset that pulls a list of serial numbers from a shipper number parameter. I can get the S/Ns to display on the...
View ArticleTroubleshooting SQL CPU spikes in Activity Monitor
I've got a SQL server that CPU time spikes to 99%, sometimes for up to 10 minutes. I was viewing this in SQL Activity Monitor. How can I find out what is causing the spikes?
View ArticleSQL Server 2014 SP2 Won't Install
Edit: Solved. My issue was that I was trying to install the SP2 upgrade file, not SQL2014 WITH SP2. Figured this out when I realized my file sizes were 2 gigs off. Thanks everyone!Hi everybody, got a...
View ArticleSSIS Use a flat file source as an if then statement in a derived column
Hello,I can't think of a way around this and perhaps there isn't a way but thought I would ask anyway.I have a list of folders with .csv files in from different companies that I need to imort into...
View ArticleUnable to truncate SQL logs error 0x80040e14
My Veeam is having a hard time truncating SQL logs. When I'm looking at the job log I see the following: failed to truncate transaction logs. Error: Code = 0x80040e148/29/2016 7:05:10 AM 2092 Code...
View ArticleHelp with SSRS query - branching between two where clauses
Is there a way to run one of two where clauses based on the value of a parameter? If @ref = all I want to run the first statement otherwise run the second statement. Here's my code:SELECT...
View ArticleSetting up Webserver to connect to DB server
We have a small network with a domain controller and another sql server virtualised on a physical server 2012 R2. The database developer has asked to add one more server windows 2012 with IIS for...
View ArticleFrom SQL Server 2016 Evaluation Enterprise to Standard
Hello,I have a SQL Server 2016 Enterprise Evaluation Edition installed on a VM and I need to move from evaluation to SQL Server 2016 Standard Edition.The prblem is that in the Volume licensing service...
View ArticleMySQL creation of User interfaces
Hi community, i have been creating and administering Databases for some time. However as a concerned Systems administrator who doesn't want to make the life of these "users /Data entrants" hard when...
View ArticleSQL Daily Backups
Hello All,I'm pretty new to SQL and my new job requires that I know more then I actually do, I know in time I will get there but for now I am going to run this one by the awesome group of very...
View ArticleUpgrading 2008 to 2016: Post mortem writeup
Hi, everyone! It's been a while since I've posted here, but I wanted to take the time to do a brief writeup about some of the huge performance benefits I've achieved by moving from SQL Server 2008R2 to...
View ArticleSQL Server 2012 or 2014 - Test Version
Does Microsoft allow a business to download and install a free version of SQL Server 2014 and when the business is ready to cut over to this software as a live production database, the license can then...
View ArticleSQL query - all records within a given time window (harder than it sounds)
I'm working on a project that involves 2 shifts. Parameters are logged throughout each shift, and there are different criteria to be met for each shift. The shifts are 12 hours long. The ua table holds...
View Article