SQL query to get same day chek in time on different columns.
Hello! I'm having a little trouble getting around to get a report from a sql table where i have all the employees check in and check out times. The data looks like this:TextID CHECKTIME 33 2016-04-01...
View ArticleSQL Log Growth
I have a sql2014 database that I use Ola Hallengren Index Optimizer that runs every day at 2:45 in the morning to help keep the data properly maintained. The issue I have is I have a couple of tables...
View ArticlePregenerated report which pulls up records multiple times
Hello,We have one report and which is send us by email every day by SQL jobs.I just see drop date for one student multiple times.I donot want Remilard-Kunz Virginia three times same value in drop date...
View ArticleSSIS Flat File Import to SQL Server - All Files Flowing through Error Path
Hello I am importing a .csv file to sql via SSIS. All is going ok although the file that we are trying to import is not what I would call "clean". I can't do anything about that as it is from another...
View Articletransfer data from one id to another
Hello, We have one employee with two id's. Now we want to delete one id, but we still need to transfer their data from one id to another to keep records up to date. The id which we want to delete it...
View ArticleSetup is unable to connect to SQL Server with connection information.
The only thing I can think of is the names. Because I deleted a previous SCCM Install because we had missed pre-reqs before installing. I went back extended AD and went through all pre-reqs very...
View ArticleSQL Express 2012
I have a awkward situation here SQL Express 2012 is showing that the Database size is 8109.00MB in SQL Management Studio but in actuality the MDF file is 5.19GB is SQL counting the LDF file toward the...
View ArticleSQL Configuration
I am planning to deploy MS SQL Server 2014 - Standard Version. The current DB Size is about 400GB and plan to grow to about 700-800 GB in the next 3 yearsI am looking for some advise on how to...
View Articlehow to count number of student in existing script
Hello,I have one script. I need to modify that script. I have different types of courses in that crs_cde column. I need to find number of students under that course. I have tried using group by but it...
View ArticleSSMS Exports to CSV
Hey there, I have a query that shows all the data I need, formatted the way I need it when it shows up in the results grid in SQL Server Mgmt Studio.I created a SSIS package that exports to a csv but...
View ArticleSQL cursor :: Search rtf files for string.
I have some Text stored in RTF file outside of a database. I have a query that will tell me the names of all these files. Some of hem will have a specific string in them, some wont.I am looking...
View ArticleAdd Linked Server in SQL Server 2012
I have two servers running SQL Server 2012. SERVER A has a named instance, SERVER B has only the default instance.SERVER A is running SQL Server 11.0.3156SERVER B is running SQL Server 11.0.5343Both...
View ArticleExecuting xp_cmdshell inside of a stored procedure
I am currently migrating from Sql Server 2005 to 2008R2. I have legacy code that calls a custom executable inside of a stored procedure. The procedure with this line compiles in 2005 but not...
View ArticleSQL-Server
Gibt es hier die SQL Spezialisten? Die Auslastung der Zentraleinheit ist 100% vom SQL Prozess. Worauf kommt es an? Wenn ist es die große Anfrage wie kann ich herausbekommen was für Anfrage ist das?...
View ArticleAuto update SQL table entries using foreign keys
Hello,I am using Microsoft SQL server 2008. I have 2 SQL tables Table 'Product1' and Table 'Product2'. In 'Product1' Table I have columns named 1.SLNO, 2.Name, 3.Place4.StateAnd 'Product2' have columns...
View ArticleTrying to open ports for SQL/SCCM setup
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allowThe above is the last line of my PS1 script that opens up the firewall ports for...
View ArticleCluster for Windows 2012 R2 and SQL 2014 running on VMWare
Hi all,I have created a cluster for my new environment that I am setting up to replace the physical servers I am running on my network. I researched it a little, and I also discussed it with VMWare,...
View ArticleMS SQL Backup OnSite server to Azure Blob Storage - Real World Experiences
Hi fellow spiceheads,I am looking into other options for our off-site backups of our MS SQL (2014) data and I came across this Azure blog post...
View ArticleError in adding 'ON DELETE CASCADE'
Hello,I am getting an error while running a query,I have two tables Parent and Child. In both tables I have columns named Name, Place and State. I know its not a good practice to have that, but for...
View ArticleSQL Process - Cannot generate SSPI context
We have recently moved a custom application to a new domain we are moving to for a variety of reasons, adjusting its settings to point to the new servers that it will be using.If the application is run...
View Article