Quantcast
Channel: SQLServerCentral » SQL Server 2005 » SQL Server 2005 Integration Services » Latest topics
Viewing all 1193 articles
Browse latest View live

send mail task error after smtp server name changes

$
0
0
Hello All,i have a ssis package, which is running fine so far, if it fails it notify to tech support team,SMTP server Name got changed so i updated new name, i didn't touch anything else, but when the package fails it is not getting notified also it throws below message (when i ran in ssis bids)SSIS package "CitiFeedGrabber.dtsx" starting.Error: 0xC002F304 at Notify Support Team Send Mail Task, Send Mail Task: An error occurred with the following error message: "Failure sending mail. System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.".Task failed: Notify Support Team Send Mail Taskdo i need to configure anything, am i doing anything wrong?please help meThank you so much in advancebest regardsasita

Logon failure: unknown user name or bad password

$
0
0
Hi, I'm completely lost here... I have a SQL Server Agent job that execute a SSIS package. The same job works perfectly at on SQL server but errored out at the other with the "system error: Logon failure: unknown user name or bad password". As far as I can tell, both are setup the same. Here is my setup:1. Create a credential AccountName to use the credential of a domain account (domain\AccountName).2. Create a proxy AccountName that utilize the credential created from step 1.3. In the "Run As" of the SQL Server Agent job step, use the proxy created from step 2.When I executed the SQL Server Agent job, it prompted failed at one server with this unknown user name or bad password message. I know for sure that the user exists and the password is correct. It failed "before" executing the package. It acts like the SQL Server Agent Service account is unable to use the security context of the proxy account. As I said, the same job works fine at another server. The problem is I cannot find why. The account is sysadmin at both SQL Servers.Could someone shed some light? Thank.s

move all data from first sql server 2005 database to second database sql server 2005 two are same

$
0
0
I have two databases these two databases have same structures and objects but different only in dataAre there are any way to transfer data(only) from one databases to another.i try to make replication but no connection mode between us.Now How i solving these problem please help me these two database working in sql server 2005

Package Connection Bombs to different server, but works fine in a different connection... Stumped.

$
0
0
Ok... this might get lengthy... so please bare with me.I have a DTSX package that has over 30 steps/containers, etc. I'm using Sequencing events, groups, etc. Everything up to now has been on the same server using the same connection. Now I have to pump the data from a table on the server I'm working on to a different server. I do this all the time. We have literally hundreds of packages that do this same thing.We use the SQL Authentication with a UN/PW. Nothing special. I built the connection, and set everything up and kaboom, RED square on the screen. I've tried redoing all different aspects of it. Now here's where it gets weird. I created a new package on the same Solution, and created the same step from scratch and it works fine. I'm stumped.....Could it be that I have tooooo much going on in this package? I dunno... I'm stumped, Boss is Stumped, or SSIS "expert" is stumped... dunno...Please help, any suggestion, regardless of how dorky they might end up being, are still appreciated.....Thanks again.Crusty.

Unable to retrieve column information from the data source Error msg SSIS

$
0
0
Hello - I'm working on a SSIS Package I can Parse Query with no issue but as soon as I select OK I get the following message that is attached to this post.I can take this same script and run it from SSMS with no issues and return data.Thought or other ideas why I keep getting this? Regards,David

Confused about FlatFile Connection Manager Error

$
0
0
I'm getting this error on my package "A valid file name must be selected". Here is why this confusing to me. In the Flat File Connection Manager Editor I navigate to the location where I want the file to go "C:\Documents and Settings\[i]myName[/i]\My Documents\Visual Studio 2008\Projects\PLL\PLL\Destination\ff_all_cpy.txt". I can't seem to enter or even selecting this file name when I get this error. The "OK" button is disabled. If I change the file name to something elese then the "OK" button is then enabled. I then execute the package, it works. But, if try to execute again (I have overwrite file on the destination), I get the same error "A valid file name must be selected". I seems to have delete the files before hand in order to have it work. Deleting the files is a wrong solution, if overwrite file flag is set.

Demanding and difficult logic qns. Sorry but i need help.

$
0
0
Hi pros out there,I am introduced to SSIS to do ETL for repporting in SSRS very recently. I am given a task to analyse employees working hours and pattern through the use of data gathered from access point. I have done something similar to do with QlikView(through use of several sql statements and residents table) however SSIS is totally a stranger to me. I do not uds how i can achieve what this using SSIS. Cant even get the logic and work flow. I need some serious help here. The first table is somewhat my source table data:PASS_M EVENT_D EVENT_T MESSAGE_XStaff A 30/04/2012 18:10:00 ExitStaff B 01/05/2012 08:30:10 AccessStaff B 01/05/2012 18:31:20 ExitStaff C 30/04/2012 22:00:17 AccessStaff C 30/04/2012 22:01:28 AccessStaff C 01/05/2012 05:31:00 ExitStaff D 30/04/2012 10:00:00 AccessStaff D 30/04/2012 16:00:00 ExitStaff D 30/04/2012 16:03:00 ExitStaff D 01/05/2012 19:50:00 AccessStaff D 02/05/2012 03:50:00 ExitStaff D 02/05/2012 12:00:00 AccessStaff D 02/05/2012 18:00:00 ExitStaff E 02/05/2012 19:00:00 AccessThis is what i want to achieve, my target table:PASS_M ENTRY_DT EXIT_DT WORKED_HRS CONSECUTIVE_DStaff B 01/05/2012 08:30:10 01/05/2012 18:31:20 10:01 1Staff C 30/04/2012 22:00:17 01/05/2012 05:31:00 07:31 1Staff D 30/04/2012 10:00:00 30/04/2012 16:03:00 06:03 1Staff D 01/05/2012 19:50:00 02/05/2012 03:50:00 08:00 2Staff D 02/05/2012 12:00:00 02/05/2012 18:00:00 06:00 3Assumptions:If there are multiple access for one exit, take the earliest access date and time. If there are multiple exit for an access, take the latest exit date time. Not able to take earliest access or latest exit base on the date itself as some legit access maybe during late evenings and some exits may be early in the morning. Secondly, for those accesses with no exit or exit with any access, do not include it in first. I know many will feel i am asking alot over here, i do agree but i really need serious help. For those who know how, and willing to help please give some advice.Attached is a nicer view of my table.Greatly appreciate any help given.Thanks,10e5x

AS400 to SQL Server using SSIS

$
0
0
I have data in the AS400 file which should be extracted. The file would be available on the AS400 or FTP server to be picked up and downloaded to the Sequel Database.When the data is extracted, the record would be flagged as complete. The records marked complete could then be purged/cleared as needed. I am new to SSIS.1. How can i build the connection between AS400 and SSIS2. Can i do the data extraction in SSIS itself. If yes how?3. Can the AS400 data file be also updated from SSIS (When the data is extracted, the record would be flagged as complete.). IF yes how?Help with examples or references would be highly beneficial.Thanks a lot

How to use Windows Authentication for remote server

$
0
0
HI Experts,I am designing a SSIS package, my requirement is that I need to take data from remote server & load into local server, I can use windows Authentication for local server no problem, but for remote server they provided a domain ID (windows authentication) so I am not able to make a connection with this (with sql login we can make easily), Is there any way we can set it up using windows authentication?Thanks!

Creating dynamic excel table through Execute Sql Task - data types problem

$
0
0
Hi,I'm using an SSIS package to create an Excel table and export the data from a corresponding SQL Server table into it. Because I wish to export all of the tables in the DB, I'm using dynamic scripts.The method is:1. generate CREATE TABLE string 2. use this string in an Execute Sql Task with Excel CM - and create the Excel file.3. generate an INSERT INTO OPENROWSET... SELECT FROM ... command string.4. use this string in an Execute Sql Task with SQL SRV CM The problem is that the created excel file column type are all "general", even tho my script says otherwise. For example, the following script would create an excel file with "general" columns type:[code="sql"]CREATE TABLE `CONTACT1`([ACCOUNTNO] LongText,[COMPANY] LongText,[CREATEON] datetime,[CREATEAT] LongText,)[/code]Later on, when I try to use the insert into command, the command fails because of mismatch of the data type. An example:[code="sql"]INSERT INTO OPENROWSET('Microsoft.ACE.OLEDB.12.0','Excel 12.0;Database=c:\\junk\\accountnoWithNoApps.xlsx;HDR=YES;IMEX=1\"','SELECT [accountno], [COMPANY], [CREATEON], [CREATEAT] FROM [CONTACT1$]')SELECT [accountno], [COMPANY], [CREATEON], [CREATEAT] FROM CONTACT1[/code]How can I solve this? Thank u in advance.

need to create ssis package to run crystal report

$
0
0
need to create ssis package to run crystal report(s); I want to read a sql table and return values as parameters to cyrstal reports, and then email the report. Has anyone been able to do this? Thanks in advance for your help.

SSIS Newbie

$
0
0
Hi All,I am new to SSIS,I have given task of implementing the following taskcreate SSIS packages which takes input parameters and call stored procedure and the result set of the stored procedure is exported to new excel sheet dynamically. Can you guys guide meThanksNingaraju N E

How to convert the pdf file to blob type ?

$
0
0
Hi Friends, I have a folder which contains thousands of pdf files where i have to convert into a blob file into a table. I have another table called Document which contains three columns called DocName and Doctype and fileSource. The files in the directory is always named as like as the same name in the Document table. For exapmle a pdf file holding the name called 15003786.pdf ...Exactly the same way we can see in the document table under DocName column. So my need is to look up for the names in the document table and process the matched files from the directory and convert it to blob data and insert into another table. FYI I don't want to open the pdf document. I just want to convert it into a blob data.Any suggestion woud be really appreciated. Help me friends..

Windows Application Log indicates error with script, but script succeeded

$
0
0
Hi all,Got a bizarre error. In my Windows Application Log, I see errors similar to the following:Event Type: ErrorEvent Source: SQLISPackageEvent Category: NoneEvent ID: 12291Date: 12/18/2012Time: 6:00:12 AMUser: [UserName]Computer: [ComputerName]Description:Package "[PackageName]" failed.Now, in the actual package, I have several levels of error handling, and logging. If I examine the output of a particular package, I see that the proper files are produced and modifications are made, and if I examine my log table, I see a log entry indicating success.But still, the Windows Application Log says that there was an error.Does anyone have any idea why this could be happening?For reference, my SSIS packages are built, and the .DTSX files are executed using xp_cmdshell, using dtexec, with the following parameters: /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING E. The packages are run from a SQL Server Agent Job. The job has notifications set to send an email and log to the Windows Application Log if there is an error - however, only the Windows Application Log shows the error, there is no email sent, nor are there any traces of error in the script functions.

Using SSIS to automate PGP encryption of text file

$
0
0
I am trying to automate in SSIS the PGP encryption of a text file. Has anyone done this before? Any help would greatly be appreciated. Thanks!

cannot open datafile

$
0
0
Hi,i'm creating a ssis package to access a flat file.i created a batch script to obtain the filename of the newest file in a folder.this work fine, but when i want to give that filename to the connection manager by expression (i addes the UNC path with the variable who contains the filename)at runtime i have the error : cannot open datafile...who can help me?

Permissions needed to connnect to integration servies

$
0
0
Hi I got user1 and user2. They both got same level acccess on one server, including DB's. But user1 can connect to integration services but user2 is not. can you suggest me to resolve this issue please.[what are the permissions needed to connect SSIS].Right now user1 and user 2 got these permissions : One perticulat DB both users got data reader permissions and on MSDB both got Db_ssisadmin, db_ssisltduser and db_ssisoperatorPlease let me know if you need any other details.Thanks in advance.krishna

multiple conditional splits in ssis

$
0
0
Hi,I have a flatfile which contains 100 diff locations, i want split the data based on the name of city Ex:-cid,cname,loc1,aa,us2,bb,uk3,cc,russaia........ upto 100so want split the data based on condition in ssis using condtionalsplit i can write loc=='us' loc=='uk' ......shoul i write like 100 expressions or is any way?????

How to store the Count(*) value fro datareader to int. SSIS 2005

$
0
0
Hi all,I have been stucked with this for quite a while. I have a script: [quote]Dim sqlConnStr As String = "Data Source=" & RdVarStr("DB_Server_Name") & ";Initial Catalog=" & RdVarStr("DB_Init_Cat") & ";Integrated Security=True;" Dim rowCounter As Integer Using sqlConn As New Data.SqlClient.SqlConnection(sqlConnStr) sqlConn.Open() Using sqlCmd As New Data.SqlClient.SqlCommand("SELECT Count(*) from Target where WORKED_HRS >= (select VALUE from CONFIG where MODULE = 'SSIS TACSReport' and [KEY]= 'Var_WorkHrs_Limit') +':00'", sqlConn) Dim sqlDtReader As Data.SqlClient.SqlDataReader sqlDtReader = sqlCmd.ExecuteReader() rowCounter = sqlDtReader.GetInt32(0) sqlDtReader.Close() End Using End Using Return rowCounter[/quote]It seems simple and i tot this is it, however i keep getting error:[quote]Invalid attempt to read when no data is present.[/quote]But i am sure there is value as i did a sqlDtReader.Read to check. What wrong and what to do?Thanks,10e5x

Argument "Server1" for option "connection" is not valid. The command line parameters are invalid. The step failed.

$
0
0
I have a SSIS package run fine in BID, but when run as a sql agent job, it failed at the error:Argument "Server1" for option "connection" is not valid. The command line parameters are invalid. The step failed.In Job Step Properties, Configuration, Command files, Execution options, Logging, Set Values, Verification tabs do not have anything set. The only change made is in Data Source tab, the server name is changed to server2 ,so is in Command Line tab changed accordingly. But, somehow, it still points to the connection inside of the package. If I change the connection in the package, then create a new job point to the changed package, then it runs fine. Why changing DataSouce in the job properties will not take effect?Here is what is Command Line tab:/FILE "C:\ Conv_01.dtsx" /CONNECTION "Connection001";"\"Data Source=server2\SQL2008;Initial Catalog=FO;Provider=SQLNCLI10.1;Integrated Security=SSPI;Auto Translate=False;Application Name=SSIS-Package-{849C75AD-4693-4DF2-9EC7-73C347FEE10C}HEC_1.US-Iv2.5;\"" /CONNECTION " Connection002";"\"Data Source=server2\SQL2008;Initial Catalog=ULL;Provider=SQLNCLI10.1;Integrated Security=SSPI;Auto Translate=False;Application Name=SSIS-Package-{D399B84F-1467-41C3-A292-5B27789B66A3}HEC_EL1.ULL;\"" /CHECKPOINTING OFF /REPORTING E
Viewing all 1193 articles
Browse latest View live