Click here to Skip to main content
15,910,083 members
Home / Discussions / Database
   

Database

 
GeneralRe: Case-Sensative Password Column in SQL Anywhere 10 Pin
David Skelly25-Feb-10 6:14
David Skelly25-Feb-10 6:14 
GeneralRe: Case-Sensative Password Column in SQL Anywhere 10 Pin
MWRivera25-Feb-10 6:27
MWRivera25-Feb-10 6:27 
GeneralRe: Case-Sensative Password Column in SQL Anywhere 10 Pin
MWRivera3-Mar-10 4:37
MWRivera3-Mar-10 4:37 
QuestionOracle Primary key Pin
MsmVc24-Feb-10 0:01
MsmVc24-Feb-10 0:01 
AnswerRe: Oracle Primary key Pin
Mycroft Holmes24-Feb-10 0:50
professionalMycroft Holmes24-Feb-10 0:50 
GeneralRe: Oracle Primary key Pin
MsmVc24-Feb-10 0:52
MsmVc24-Feb-10 0:52 
AnswerRe: Oracle Primary key Pin
David Skelly24-Feb-10 1:57
David Skelly24-Feb-10 1:57 
QuestionSSIS Connection Problem in C# Pin
Vimalsoft(Pty) Ltd23-Feb-10 20:15
professionalVimalsoft(Pty) Ltd23-Feb-10 20:15 
Goood Day All

I have a SSIS package that i have created and i want to execute in C# in my web Application. and i have a Connection manager named "OMEGA" and in my C# am trying to execute it like this

//Start the SSIS Here
Application app = new Application();
Package package = null;
package = app.LoadPackage(@"C:\O!WEB_SETUP_VERSIONS\SSIS_Compiled\OMEGA.dtsx", null);
Variables vars = package.Variables;
vars["Time1"].Value = time;
vars["Time2"].Value = time;
vars["Time3"].Value = time;
vars["TTBLTYPE"].Value = THREAD_DATA[1].ToString();

ConnectionManager Omega = package.Connections.Add("OLEDB");
Omega.Name = "OLEDBConnection";
String Strcon = obj.GetConnectionString(THREAD_DATA[0].ToString());
Omega.ConnectionString = Strcon;

//package.Connections["SQLNCLI10.1"].ConnectionString = obj.GetConnectionString(THREAD_DATA[0].ToString());
//Excute Package
Microsoft.SqlServer.Dts.Runtime.DTSExecResult results = package.Execute();
String Log;

if (results == Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure)
{
foreach (Microsoft.SqlServer.Dts.Runtime.DtsError local_DtsError in package.Errors)
{
// Log = local_DtsError.Description.ToString();

//CommonFunctions.writeLogFile(Log,true);

}
}

}


After it executed the package, when i loop through the exceptions i get this

SSIS Error Code DTS_E_OLEDBERROR.   An OLE DB error has occurred. Error code: 0x80004005.\r\nAn OLE DB record is available.   Source: \"Microsoft SQL Server Native Client 10.0\"   Hresult: 0x80004005   Description: \"Login timeout expired\".\r\nAn OLE DB record is available.   Source: \"Microsoft SQL Server Native Client 10.0\"   Hresult: 0x80004005  Description: \"A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.\".\r\nAn OLE DB record is available.   Source: \"Microsoft SQL Server Native Client 10.0\"   Hresult: 0x80004005   Description: \"TCP Provider: No connection could be made because the target machine actively refused it.\r\n\".\r\n


Please note that i want to use my webconfig not SSIS Config. in the Function GetConnectionString i return a Connection string and Pass it to the package.

Thanks
Vuyiswa Maseko,

Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

AnswerRe: SSIS Connection Problem in C# Pin
R. Giskard Reventlov24-Feb-10 3:19
R. Giskard Reventlov24-Feb-10 3:19 
GeneralRe: SSIS Connection Problem in C# Pin
Vimalsoft(Pty) Ltd24-Feb-10 4:09
professionalVimalsoft(Pty) Ltd24-Feb-10 4:09 
QuestionDateTime ; between query in SQL SERVER 2000 Pin
Karan_TN23-Feb-10 1:58
Karan_TN23-Feb-10 1:58 
AnswerRe: DateTime ; between query in SQL SERVER 2000 Pin
WoutL23-Feb-10 2:19
WoutL23-Feb-10 2:19 
AnswerRe: DateTime ; between query in SQL SERVER 2000 Pin
Luc Pattyn23-Feb-10 2:32
sitebuilderLuc Pattyn23-Feb-10 2:32 
GeneralRe: DateTime ; between query in SQL SERVER 2000 Pin
WoutL23-Feb-10 2:36
WoutL23-Feb-10 2:36 
GeneralRe: DateTime ; between query in SQL SERVER 2000 Pin
Luc Pattyn23-Feb-10 2:41
sitebuilderLuc Pattyn23-Feb-10 2:41 
AnswerRe: DateTime ; between query in SQL SERVER 2000 Pin
Luc Pattyn23-Feb-10 2:31
sitebuilderLuc Pattyn23-Feb-10 2:31 
GeneralRe: DateTime ; between query in SQL SERVER 2000 Pin
Karan_TN23-Feb-10 2:47
Karan_TN23-Feb-10 2:47 
AnswerRe: DateTime ; between query in SQL SERVER 2000 Pin
Luc Pattyn23-Feb-10 3:21
sitebuilderLuc Pattyn23-Feb-10 3:21 
AnswerRe: DateTime ; between query in SQL SERVER 2000 [modified] Pin
Chris Meech23-Feb-10 7:06
Chris Meech23-Feb-10 7:06 
AnswerRe: DateTime ; between query in SQL SERVER 2000 Pin
Adam Jasper24-Feb-10 2:52
Adam Jasper24-Feb-10 2:52 
QuestionSQL Anywhere 10 Password Field Pin
MWRivera22-Feb-10 10:17
MWRivera22-Feb-10 10:17 
AnswerRe: SQL Anywhere 10 Password Field Pin
Not Active22-Feb-10 11:46
mentorNot Active22-Feb-10 11:46 
GeneralRe: SQL Anywhere 10 Password Field Pin
MWRivera23-Feb-10 3:10
MWRivera23-Feb-10 3:10 
QuestionCross Join - Sql Server Pin
dataminers22-Feb-10 5:41
dataminers22-Feb-10 5:41 
AnswerRe: Cross Join - Sql Server Pin
David Skelly22-Feb-10 6:09
David Skelly22-Feb-10 6:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.