I am creating a SSIS package which creates a .csv file. The package works fine except it is not putting the column names as the first row.
How do I get the column names to also export?
Thanks,
~John
I am creating a SSIS package which creates a .csv file. The package works fine except it is not putting the column names as the first row.
How do I get the column names to also export?
Thanks,
~John
I am getting data in text file which is getting exported from DB2. The data is padded with white spaces.If the value is NULL, I am getting number of spaces equal to length of the field in DB2. Also, the numbers are padded with 0's like 20 is represented as +000020. Should I be first load the data into the staging tables like the way it appears in the file and then trim the padding while loading it into the final tables ? Or, should I remove the padding in SSIS using expression in derived column.
Which one is better performancewise? Any thoughts would be appreciated.
Job executing the SSIS pkg via cmdExec line step not picking the config details (of prod server connections/parameters)
specified in dtsConfig file and by default using the values present in the pkg (which is of dev env). I have to open the package
uncheck "Enable package configuration" save the package and check it again and save again then the package will use the prod config.
What could be the reason? and how to fix this?
The SSIS pkg and the dtsCofig reside in same folder of network drive.
SQL Server R2 Ent Ed
Thanks
I need to create a process that does the following with SQL 2008 R2 and SQL 2008 SSIS. Need to figure out the most efficient way to do this.
I have a database that has a number of tables with encrypted fields. These fields are encrypted through a SSIS package using a custom DLL. That is all set up and working. I need to create a new SSIS package that will be used when the encryption key gets updated.
So my question is how easy is it to use SSIS to read a record from a table, update it and then save that record back to the same table? From what I have read, SSIS is not the best at that kind of operation. I am not worried about the encrypt / decrypt parts, just the update same table portion.
Can anyone recommend any good examples of how to do this?
Thanks!
Jim
Hello,
Recently I have had started work on a development system that has VS 2012 and SQL Server Data Tools For VS2012. One thing that annoys me is the fact that a source comparison between a checked out package and the version stored in TFS no longer displays the message 'The files are identical', but instead opens the text editor with 2 panes for both sources as if there were differences, with sliders at the right side that do not show any differences (everything in B&W of course). A simple message like we had in VS2008 'The files are identical' would suffice to me. On the other hand when you check in the files with VS 2012 and they had not changed then the source control system warns that it did not make any changes since the files were identical. Why did the VS 2012 team fix something that worked ? Is there some advantage that I am missing?
Jan D'Hondt - Database and .NET development
Hi,
I have a csv file which looks like:
col1, col2, col3, col4,
data, data, data, data,
Notice there is an annoying comma in the end of the last column name as well as in the end of each row.
How should I set row delimiter and column delimiter to read this file correctly?
I have tried:
when I use {CR}{LF} as row delimiter, I get the following error:
[Flat File Source [11985]] Error: The column delimiter for column "Column 4" was not found.
when I use comma as row delimiter, then each column turns into a row in this case.
Any ideas?
Thanks a lot
Jia
I'm not sure what am I missing.
I'm creating a new SSIS package using Visual Studio 2010 Shell that was installed together with SQL Server Management Studio. I cannot find Package Configurations to launch the wizard.
Things I have tried:
1) Right Click on Control Flow design. On SQL Server BIDS 2008, I can do that andPackage Configurations ... option is there.
2) From the menu, SSIS. Package Configurations ... option is not there either.
Is it my Visual Studio 2010 installation? Or am I doing something wrong?
Edit: I have also tried http://msdn.microsoft.com/en-us/library/kwybya3w(v=vs.100).aspx - To open the Configuration Manager dialog box. The only thing I see underBuild is the Build <prjname>.
Hi All,
I have scheduled 2 packages in in Sql Server Agent jobs .
First job which is having Package 1 executing at 11 AM and where I am inserting the data in the table.
Second job which is having Package 2 executing at 12 AM and where I am updating the data in the table based on the first job inserted records.
When I am executing my first job it taking more time and executing till 12 AM and from 12 AM my job 2 also starting ,so getting deadlocks conflicts because inserting happening from job1 and updating happening from Job 2.
How to avoid deadlocks and fix the issue.
Please Suggest .
Thanks & Regards,
Anand
Hi everyone,
I have been tasked to upgrade an existing DTS package into an SSIS package.
The old package uses 3 tables.
Table 1) Has a list of file names
Table 2) Has a list of columns per file
Table 3) Is the data destination.
So what is supposed to happen is:
Step 1) the package should load the files into a resultset
Step 2) for each file in the resultset, the package should get the related columns
Step 3) the package should now map the columns to the destination table (variable column numbers here)
Step 4) the import should take place.
I have gotten to step 2 but am not sure how to dynamically map the columns to the destination table.
Any pointers anyone?
Thanks in advance!
I have created a custom datasource reader, that gets information from a webservice. The Data returned is in Json format. Below is an example of the Json returned. I edited it a bit theres a lot more stuff that is returned from the api that is not relivent to this question. Trust me the Json returned works.
{
"columnHeaders": [
{
"name": "ga:date",
"columnType": "DIMENSION",
"dataType": "STRING"
},
{
"name": "ga:entrances",
"columnType": "METRIC",
"dataType": "INTEGER"
},
{
"name": "ga:timeOnSite",
"columnType": "METRIC",
"dataType": "TIME"
}
"rows": [
[
"20130604",
"180",
"1.1"
],
[
"20130603",
"200",
"1.1"
]
]
}
As you can see the second column is an Int and the thrid column is Time which is really float. Now the way the API returns everthing in json is string "becouse of the". In my task i have created the output columns using the corect datatype supplyed by the api.
My question is do i need to cast results before writing them to the output. They are always corectly formated there is no chance that a string will be returned in an intiger column.
Currently my code looks like this: For each of the diffrent datatypes I parse them before I wright them to the buffer.
case "INTEGER":
ParseFail = Int32.TryParse(ColumnValue, NumberStyles.Any, CultureInfo.InvariantCulture, out parsedInt32);
if (!ParseFail)
{
msg = "Error: Data Feed Converting INTEGER string to int32: failed " + ColumnValue;
ComponentMetaData.FireError(0, ComponentMetaData.Name, msg, string.Empty, 0, out pbCancel);
throw new Exception(msg);
}
else
{
buffer[mycol.OutputColumnIndex] = parsedInt32;
}
break;
My question is do i need to do this? The only reason i could think to be foreced to do this is that the decimal point in all of the floats is a `.` if the server the task is installed on has EU settings which would make a decimal point a `,` Will
the insert fail if i dont do the cast first?
Hi all,
in my dev enviorement i have 10 packages but i want to deploy only 5 packages in testing enviorement .
I have several SQL Server 2012 SSIS packages 1 and 2, which perform Business logics of DW.
I have plan to run packages with SQL Server Agent Job.
If package 1 is successfull, package 2 is run.
We run these Jobs every night. No matter what happened in previous night, we run each night again.
Now I have need to add validation logic.
If Stored procedure return value 1, then run package 1.
If SP return value 0, then stop running job.
I wish to implement validation package to own SSIS package. Let call this as package 0, but it is okay as well if Agent call SP directly.
What is best practise for implementing and running validation logic?
Specially I need help to design how to implment logic where job is stopped if SP return value 0.
Should I do with some task inside package 0 or could Agent Job handle this?
Kenny_I
I installed BIDS from SQL Server 2008 R2 installer. I have .Net Framework 3.5 SP1 and sql server 2008 R2 with SP2.
I also have BIDS 2010 and sql 2012 installed on the same machine, which is working fine.
I created a new SSIS project on Visual Studio 2008 and added a script task to the control flow. I added User::test in the read only variables list. When I click on edit script I get the error copied below. The MSDN forum (http://blogs.msdn.com/b/j
Is there a way Microsoft tech support can check my installation via webex to help fix it?
Error:
"
Error: TITLE: Microsoft Visual Studio
--------------------------
Cannot show Visual Studio 2008 Tools for Applications editor.
--------------------------
ADDITIONAL INFORMATION:
The VSTA designer failed to load: "System.Runtime.InteropSer
at VSTADTEProvider.Interop.VS
at Microsoft.SqlServer.VSTAHo
--------------------------
BUTTONS:
OK
--------------------------
"
Thanks for your help.
Hi,
I am trying to edit the dtsconfig package xml file in SSIS 2012 VS envoirnemnt and the wizard is hanging up for minutes until I need to close VS.
Has anyone experienced this problem and what can be done to solve other than editing the XML file directly.
Hi !
I'm using XML as package configuration. I'm moving COde to production. I have moved SSIS package alone seperately and deployed it.The Package configuration is in separate location of the server.
I need to pass the package configuaration at run time to SSIS package and schedule in Sql server agent.
Please help me
Regards,
Hi,
I am a beginner & I would like to learn SSIS/SSAS/SSRS of 2008 R2 version.
but i am new to this & i would like to create infrastructure on my personal laptop. So can anybody suggest me what are all software components i should download & install on my personal laptop.
Note: My laptop is of window-8 OS, 64-bit computer
Thanks in advance !
best regards,
Venkat