Scheduled Job
Hello,Is it possible to create a SQL Job to run on Mon, Wed, Fri, and twice on Saturday at 7AM AND 6PM? Or must I have 2 individual Jobs to riun the 2nd process on Saturday?
View ArticleREMOVE SECODARY FILE GROUP
Hi allI've created a new filegroup on my db and I've also provided to create indexes.Now I'm trying to delete the filegroup after drop all interested indexes but I'm unable to do that because even if...
View ArticleConversion failed when converting the nvarchar value 'NONE' to data type int.
I know this is a beginner type question but I am stumped.I am attempting to convert a table called 'Inactive' which is a Boolean table. Its referenced from a Dept_ID #:UPDATE InventorySET Inactive =...
View ArticleBringing data from a mySQL db server to SQL Server
Hello,Is there a way (other than OPENQUERY) to pull data from a MySQL database to a SQL Server database?Currently, I am using the following:SELECT * FROM OPENQUERY (MY_LINKED_SERVER_NAME, 'SELECT *...
View ArticleMemory optimized table: The current transaction failed to commit due to a...
In a high-volume test environment, we are getting sporadic instances of this error: The current transaction failed to commit due to a serializable validation failure.I understand WHAT causes this to...
View ArticleRunning a stored proc using opendatasoirce
Good Day guys,Very excited , that I get a chance to actually be active by posting my very first question. I have been using this forum for quite a while now. Well , enough , here goes.I want to...
View ArticleHelp with dynamic join with case statement
I need to have a case statement in within a JOIN. The condition needs to be a SELECT,Basically I need to see if records exist that matches a condition.If there are any records that match the condition...
View ArticleWhich of the 2 queries is better in terms of performance
select c.custid,c.companyname from sales.MyCustomers c left join sales.MyOrders o on c.custid=o.custidwhere o.orderid is nullOrselect custid,companyname from sales.MyCustomers where custid not in...
View ArticleSSIS Package Foreach Loop Container not finding files when deployed (fine in...
Hi there,I have a SSIS 2014 package using the Project Deployment model and parameters. I have a project parameter called FlatFilePath which is the path to a folder where a bunch of text files are. I...
View ArticleSSIS 2012 Foreach file enumerator issue
All variables are dynamic, passing Directory and FileSpecChecked going in via debug, moved 1 file to the archive which meets the criteria.Get warnings that "Warning: The For Each File enumerator is...
View ArticleRecursive loop
Hi, I'm trying to write a code to do a recursive check. I can get the below sample data from different table into a single table. My first record should always start with the Code D and end last record...
View ArticleFile streaming storage volumes
Is it possible to set up file streaming using one windows server for the storage volumes and a second server for the SQL front end? All in the same domain of course. We are using SQl 2008R2. Any tips...
View ArticleHaving issues inserting into a linked server (mysql table)
Hey guys,I'm trying to insert into a linked server table from sql server (to mysql). I can do this with openquery but it takes forever. I read on the following link that you can make this much faster...
View Articleerror link server from oracle
i made linke server to oracle to schema "Ct2" with user dba .when i do openquery select = all work when i do update select * from openquery(LinkedSRV, 'update xfer_in_order set is_downloaded = 1 where...
View ArticleQuery to compare values between multiple columns
To all:I am looking to create a “Change Query” between a Test and Prod table. I want to Compare Name1 and Name2 on server #1 to see if they match either column Name1 OR Name2 on server #2.Below, is my...
View ArticleDynamically checking for columns and update
Hi All,I have to update target table and I am good with below logic.MERGE testdb.dbo.targettable r using dbo.sourcetable s on s.id=r.id WHEN MATCHED THEN UPDATE SET column1 = CASE WHEN r.column1...
View ArticleDTA Cannot initialize tuning. (.Net SqlClient Data Provider)
SQL Server 2014 Enterprise (Initially installed SSMS only). I am getting this exception:[size="2"]===================================Cannot initialize tuning. (.Net SqlClient Data...
View ArticleUpgraded to 2014 from 2012, what happened to my colors?
We recently upgraded from 2012 to 2014 at work and, ever since the upgrade, my colors have changed in SSMS.For example, in 2012, in my queries, table names, field names, variables, etc were all in a...
View Articlesp_MSforeachdb newbie trying to get query to run across 100+ databases.
Stumbled across the sp_MSForeachdb proc and thought I could use it for my problem. Trying to select off data sets across over 100 databases.. Thought this might work. however everything I've tried...
View ArticleDisplay Live clock event
Hi Experts,I need to solve below two issues in my SQL query,1. query should not show any duplicate clock event(ex: if it is last event clock_in than next query display should be only clock out )...
View Article