|
Hi all.
I have this SSIS package. It is running on my computer without any problems... not even warnings. When i try to run it on the server... i get this:
Message<br />
Executed as user: TEST\TESTadmin. ...ion 9.00.3042.00 for 32-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 3:45:04 PM Progress: 2008-01-03 15:45:16.77 Source: Create File and insert header Validating: 0% complete End Progress Progress: 2008-01-03 15:45:16.78 Source: Create File and insert header Validating: 50% complete End Progress Progress: 2008-01-03 15:45:16.78 Source: Create File and insert header Validating: 100% complete End Progress Progress: 2008-01-03 15:45:16.80 Source: DataInfo Validating: 0% complete End Progress Progress: 2008-01-03 15:45:16.83 Source: DataInfo Validating: 50% complete End Progress Progress: 2008-01-03 15:45:16.88 Source: DataInfo Validating: 100% complete End Progress Progress: 2008-01-03 15:45:16.88 Source: HeaderInfo Validating: 0% complete End Progress Progress: 2008-01-03 15:45:16.89 Source: HeaderInfo Va... The package execution fa... The step failed.
i dont know why... but it is failing and i cant determine why ??? any help would be greatly appreciated
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
You haven't provided enough information to determine what the problem is. Look at the contents of the output window. The details of the error should be listed there.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
i dont know where you see output window??? what i have posted to you is what i can see in "Right Click on a job in sql > View History" then you see the log file viewer...
But thank you any way... it was a security issue... i managed to get past the problem by changing the path in a file from \\servername\a$\...
to a:\..... and now it is working fine... (the servername was the name of the server that the job was executing on.) thank you any way.
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Support123 wrote: i dont know where you see output window???
Sorry, I assumed that you were using Visual Studio to run the package. If you were, the output window would have provided details of the error.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
you must debug your SSIS package on Server exactly with Business Intelligence Development Studio
This is because there are some problems and error on SSIS packages that you don't aware of them before debugging your package on server, same as pinging an IP from Server that you can't see IP from server but when you try this from your PC this may be correct.
Human knowlege belongs to the world
|
|
|
|
|
It would make more sense if you posted this reply to the OP instead of myself.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Dear all i have a querry,
i want to know how report is generated in mssql 2005,there is something called as report/summry
when we click on report it is generating report like memory uses ,processor uses ,querry execution time.. and all...
can anybody tell me which technology is used there to generate such reports...
thanks in advance
T@SU
|
|
|
|
|
|
Here is what I want to do. I have two separate Access tables.
tbl_One:
RecID primary key for tbl_One
PartNo
Description
<br>
tbl_Two:
ID primary key for tbl_Two
RecID
TypeID</br>
tbl_Two's RecID is taken from RecID in tbl_One. I am doing an INSERT INTO tbl_One (PartNo,Description) VALUES (1111,"First Item").
tbl_One and tbl_Two share a relationship, One-Many, (NO enforcement of Referential Integrity).
How can I get the primary key value (tbl_One's RecID) so that I can also use it when I update (INSERT INTO tbl_Two)?
I'm doing this programmatically from a form that supports tbl_One, but the SQL statement for doing this will definitely help.
Thanks!
Johnny
|
|
|
|
|
You cannot insert into two tables at the same time. You have to execute the INSERT on the first table, get the key generated for that record, then execute the second INSERT on the second table.
|
|
|
|
|
would it be wise to use a trigger in this instance? i haven't worked with triggers as yet but i have to in a project that is coming up... so i would just like to know if triggers would be a good idea in this instance?
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
If he was using SQL Server, I'd say maybe. A stored procedure doing the insert would probably be more prudent, but a trigger is also possible, yes.
Since he's using Access, this isn't possible. Access (Jet database engine) does not support triggers, nor do is there support for "true" stored procedures, so this isn't an option here.
|
|
|
|
|
Thanks for the help/suggestions.
Is there a quick way to get the Key created by the INSERT so that I can readily use it for my field in the second table?
V/R,
John
|
|
|
|
|
|
Thanks. Here is what I ended up doing (similar to what you proposed/found).
I used a recordset pointer to open tbl_One and get the primary key of the last entry. I then incremented this primary key and KEPT A RECORD OF IT so that I can use it in both tables. Since I am working in a loop and doing multiple INSERT INTO statements, I just increment primary key each time and I get the results I desire.
Access VBA code
Dim rstLookupMainTable As New ADODB.Recordset
rstLookupMainTable.Open "tbl_One", CurrentProject.Connection, adOpenStatic, adLockOptimistic
rstLookupMainTable.MoveLast
If rstLookupMainTable.EOF <> True Then
nPrimaryKey = rstLookupMainTable.Fields(0).Value 'primary key field
Else
nPrimaryKey = 0
End If
rstLookupMainTable.Close
I then proceed with nPrimaryKey and perform my INSERT INTO tbl_One making sure to include the primary key field
Thanks,
John John
|
|
|
|
|
john john mackey wrote: Since I am working in a loop and doing multiple INSERT INTO statements, I just increment primary key each time and I get the results I desire.
That's a really, really bad idea. The database doesn't keep records in any particular order in the table, so the key in the last record may not be the actual last key used. You ALWAYS let the database assign the keys and get it from the database when it's assigned. NEVER assume that the (last key you got + 1) is going to be the next key you're able to use.
This concept will also work even worse when the number of clients using the database exceeds 1.
|
|
|
|
|
hi guys
i have some problem regarding sql
i want to print the column names of a table,i know table name i dont know columns.
thanks in advance
regards
|
|
|
|
|
AVI51 wrote: i want to print the column names of a table,i know table name i dont know columns.
Since you posted this in the SQL forum, I am assuming that what you actually want is a way to get the column names out of the database rather than any particular presentation of the column names.
If you are using SQL Server (which you don't say) you can use the views in INFORMATION_SCHEMA
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = @tableName
|
|
|
|
|
try this
sp_columns 'TableName'
|
|
|
|
|
you can execute
sp_help <tablename></tablename>
or
1.you can type the table name in query analyzer
2.select the table name and press alt+f1 keys
this works fine for me
hope this helps
|
|
|
|
|
hello guys, whats going on ? I have some questions I'd be very happy to someone helps me out !!!
what is the term "ARC", "super entity", "sub entity" if its possible give an example so I can get it better !!!
Thanx Guys !
Mr.K
|
|
|
|
|
|
I want to write a program to run SQL*PLUS on UNIX operating system. Before I run it, I should setting the system environment variables such as "ORACLE_HOME", "ORACLE_SID" first. But, I met with a question, I don't know from which profile I can get these information? Who can give me some suggestion?
Many thanks.
|
|
|
|
|
I don't understand your usage of the term 'profile' in your question. But the two variables you are trying to set are needed to identify the location of Oracle software, ie. where has Oracle been installed?. Talk to your DBA and find out this location. The second parameter identifies the database that you wish to connect to. There may be many instances of Oracle databases running, so again you will need to confer with your DBA to find out the name of the instance that you wish to connect to.
|
|
|
|
|
Well, may be you misunderstand my meanings. After the DBA installed the oracle software, he set these two variables. I think this information(ORACLE_HOME,ORACLE_SID) might be saved in a profile by the oracle process. And when I want to run the SQL*PLUS, I first read these information from this file, because the login user has changed, and the environment variable might be changed too. But I didn't know whether this file exist or not and its path. Do you have any idea about it?
Many thanks
|
|
|
|