SSIS 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 ArticleInvalid Error given for SQL statement
I like to know if this is expected behaviour of SqlServer or if it is a bug.The error is shown at the derivation of the column SourceDocumentId:(SELECT sfdinner1.SourceDocumentId FROM (SELECT...
View ArticleSSIS retrieving data from alwayson secondary
I have a number of SSIS packages (package deployment model) running on their own ETL server. I am trying to modify several of them to use the always on secondary via the LISTENER, but having trouble...
View ArticleDynamically passing values to IN clause.
[font="Arial"]Hi,I am trying to pass values dynamically to IN clause.I have copied records into variable @String and I am trying to pass this variable as a filter to next query.Please help me here.I...
View ArticleNeed help to modify XML file using T-SQL
Hi Experts,I am using SQL Server 2005 for this requirement.I have a requirement to modify XML file to delete few nodes and return result as XML.Source XML file structure:<SyncContract...
View Articlemax degree of parallelism
Hi,I would like to know how to get max degree of parallelism via SQL statement?
View ArticleFullText Index on Image
I´m trying to create FullText Index on Image field witch contains text in rich text format. I´m from Iceland and we use several characters based on our language like á, í, ó, ú, ð, þ and æ. When I´m...
View Articleunzip file from t sql cmd line
Hi I am getting incorrect command line error when I type this code,[code="sql"]DECLARE @Result intDECLARE @cmd varchar(200)set @cmd = '"\\localhost\7-Zip\7z.exe"...
View ArticleColumns to row
I have 2 tables where i can search on PK. However 1 table has other columns than the other. Is there a way I can use the same query (except for changing tablename) with having the columns converted to...
View ArticleSSIS Metadata can not be determined
Hello,I have upgraded ssis package from 2005 to 2014. I have this component inside package "Executes an SQL command for each row in a dataset." and I am using a SP called EXEC sp_exe_cmdshell_restore...
View ArticleSync table in two different database (different Server)
Hi Team,Below is my scenario.[u]Server 1[/u]Database Name : UNIFYTable Name : UserNo.of Columns : 50String Datatype : VarcharNo.of Records : 10000[u]Server 2[/u]Database Name : UNIFYTable Name :...
View ArticleTempDB file properties
Hi,In our SQL Server, we have 8 TempDB files and 1 log file. Is there any way to retrieve the autoGrowth properties of them via SQL statement?Regards,
View ArticleSync table in two different database (different Server)
Hi Team,Below is my scenario.[u]Server 1[/u]Database Name : UNIFYTable Name : UserNo.of Columns : 50String Datatype : VarcharNo.of Records : 10000[u]Server 2[/u]Database Name : UNIFYTable Name :...
View ArticleTrigger Help
I have an issue with an application I am writing. The data model is comprised of tables that represent a system that will track inventory for IT, e.g. Computers, Software and Licenses. In order for...
View Articlexp_cmdshell for restore db
When I just run this command from query windows it works fine.[code="sql"]restore database test from DISK='\\share\dumps\test.bak ' with replace[/code]Now I am trying,[code="sql"]DECLARE @sqlcmd...
View ArticleJunk Dimension Design
Hello Eveyone,I am struck with Junk dimension.My target table structure is as below. Junk_Dim----------JunkID -- PKJunkTypeID -- PKJunkCodeJunkNameJunkTypeNameBelow values need to be propagated to the...
View ArticleExecution plan differences in QA and Prod
I am run into an situation with a change in behavior to one query, and I'm looking for advice on how to interpret this.
View ArticleScript to create an alert
Hi,Does anyone have a sample script that will create an alert [b]when the performance counter "General Statistics:Processes blocked" > 0, "SQL Server: Locks – Lock Wait Time (ms)" > 5000, and SQL...
View Articlenumber of blockings and deadlocks in a specific time range
Hi, Is there any way to calculate the number of blockings and deadlocks in a specific time range (e.g. 8AM~9AM today)?Regards,
View ArticleFull text index not updating
I am having an issue with a full-text index. I am not very familiar with indexes so please forgive me if this is unclear.New values are added through an application by end users and I think maybe the...
View Article