Sunday, March 25, 2012
DTS problem
I am trying to invoke a dts from asp.net and was informed that I need to create a name key pair file and runtime callable wrapper...which consiste sof changing the command line...but I cannot fine the files. I am using web matrix...which I think is the problem.
Has anyone found the same problems...I am looking for the Bin directory in web matrix and tlbimp.exe.
Any help would really be appreciated.
ThanksIt sounds to me like you are trying to do things the complicated way.
Are you wanting to create a new dts with your asp.Net or just execute an existing dts package?
There are plently of stored procedures you can call via standard ADO to excute existing pacakges, if that's what you want to do.|||Hi
Thanks for your reply...I am just trying to invoke a dts from an asp.net web page...I have searched the internet but cannot find any information on how to do this in vb.
Do you know of any good sites?
Thanks|||But it is an existing DTS package right?|||yeah it is
Thanks|||Well the way I normally run a dts package from asp (and it will work from asp.Net as well) is to create a job to execute the package and then (whenever I want to run it) I make an ADO call to the database using sp_start_job.
Now I know there is another stored proc or something that other people use to run the specific dts (and thus you don't need a job) but I can't remember what it was.
If you want to run things from the command line, why not use dtsrun to execute your package?|||Hi
Thanks for the reply...I have found asp code to run the dts...do you know what asp.net uses instead of the 'set'
Thanks|||just in clude a reference to the component in question, then you should be able to just declare the varible the same way you would any other variable.
set in asp is only used for objects, in theory everything in asp.Net is an object so you don't need to diffientate
so if you are using c# something like... (note it's only like this)
using Data.OLEDB;
will set you reference then.
connection myConn = blah blah blah;
will create your connection object.
HTHsqlsql
Monday, March 19, 2012
DTS Package reports error when executed from an ASP page
The package connects to a remote folder on the LAN and uploads a couple of foxpro tables to SQL Server. The package runs without errors when executed from Enterprise Manager.
I have an inkling the problem is to do with permissions but I'm not sure. Is it true that when run from a web page, the DTS is executed by the webserver? If so, how can I modify the access permissions of the remote folder so as to grant IUSR_WebServerName Read and Write access?
Any help is much appreciated.
Yes it is true that the DTS package will be executed by the Webserver, with whatever permissions that service account has. I am sorry, but I do not know enough about the web server end of the operation to tell you how to give the webserver access to that folder.
Donald Farmer
|||Thanks for the reply. I have solved the problem by using COM objects to wrap the DTS and runing it from a stored procedure.
Thanks. Good to hear you have it working.
DTS Package Issues with Access
I kick off a DTS package with ASP.NET. I'm getting an error stating:
The Microsoft Jet database engine cannot open the file <path>. It is already opened exclusively by another user, or you need permission to view its data.
The DTS package is pushing data from Excel to Access, and then Access to SQL. When running the process, I run it directly and it works fine. I haven't tested it through scheduling yet. All of the information on the web says security permissions, but I impersonate the ASP.NET page to use another account, which has full access to the access database and dbo to SQL Server.
Any ideas?
Brianmake sure the files are closed. If the excel file is open it will not work|||Hey,
It was. And I make sure that the data pump tasks closed the connection on completion, through the Workflow Properties screen.
Brian
Friday, February 24, 2012
DTS issues...
http://www.dbforums.com/t993006.html
Stay with your original thread...
DTS issues...
They could thread out, depending on how you coded it?
Where in Jersey?
http://members.tripod.com/~mugsy11/heyrube.html|||how does it run locally?|||Meaning that the steps in the package are coded correctly. I create a table, then populate the new table, then export to an excel file. Running it from Enterprise Manager works like a champ every time, but when running it from an ASP page, it always tries to populate before creating.
Now after trying to tweek a few things, my code is screwy and I'm get server errors. I'll get it sorted out and post the exact errors I was getting.|||Does it have to be excel?
Can it be csv?
How about a sproc...
Even if it needed to be a xls, you could use a com object I guess...
I've seen DTS do some weird stuff...especially if this is a versioned package...
Can you recreate a brand new package and try it?
I know this is a stupid question, but you do have workflow steps in there...right?
I'd still go with a sproc....|||Originally posted by Brett Kaiser
Does it have to be excel?
Can it be csv?
How about a sproc...
Even if it needed to be a xls, you could use a com object I guess...
I've seen DTS do some weird stuff...especially if this is a versioned package...
Can you recreate a brand new package and try it?
I know this is a stupid question, but you do have workflow steps in there...right?
I'd still go with a sproc....
Yeah, the workflow steps are in there, and you just answered my next question. I was thinking about calling a sproc to execute it, so now that you said that, I'm going to give that a try.
And I'm in the south Jersey area by the way. Erial to be exact....about 5 miles south of Deptford.|||When you said south...you ain't lion
How far to AC?
http://www.mapquest.com/maps/map.adp?country=US&countryid=250&addtohistory=&address=&city=Erial+&state=NJ&zipcode=&submit=Get+Map
Flyer fan?
Come on, you can admit it...
Go Devils...|||Oh, and let me ask...
Do you or someone you know own a confederate flag?|||Originally posted by Brett Kaiser
When you said south...you ain't lion
How far to AC?
http://www.mapquest.com/maps/map.adp?country=US&countryid=250&addtohistory=&address=&city=Erial+&state=NJ&zipcode=&submit=Get+Map
Flyer fan?
Come on, you can admit it...
Go Devils...
I'm 20 minutes or so from AC depending on how heavy my foot is that day. And I'm not a fan for ANY Philly team. I'm from the midwest originally, so that's where my loyalties are. And as far as hockey goes, I'm more of a Redwings fan than anything I guess, but the Rangers are pseudo-cool.|||A transplant TO NJ?
There's a switch...
btw, in your sproc I'd use xp_cmdshell and ftp to get the data out...
How/ why are you creating this table?
What the data source?|||Yeah. Was in the Navy for 9 years and got dropped off on the east coast and just stayed. It's a long story. And every long story involves a woman, so I'll leave it at that for now.
Every month, our affiliates require a report(xls) that contains referrals, items purchased, costs and prices, etc. It's a different query for every affiliate and until recently, the person in charge of this was running each query in QA and then saving the results to an xls file. When this duty was passed to me, I quickly decided that the was NO way that I was going to do it all manually like that. So I put together the DTS package that works just fine for me because I have all the permission and rights that a person could have, so I would just run the package once a month.
Soon after, the powers that be, who also have large plush offices and are technical idiots, decided that they wanted to be able to check this data when and where ever they want to, so I added a link to our intranet, and that's where my problem started.|||Yeah, I set that up for 1 project...
Each report has it's own sproc...
Each report is in a report table which contains report names, sproc names, if it's batch or online (batch save it to a file location, online is saved to their local through a browswer)
The browser executes a job when they select a report that runs the sproc.
That's important becuase we found if the sproc took a whil, the browser would hang...basically started another independant thread...
The report sprocs would create csv files with a header...like..
Select '"'+LTrim(RTrim(IsNull(SignOffEntity,'')))+'"'
+',"'+LTrim(RTrim(IsNull(LedgerSumAmount,'')))+'"'
+',"'+LTrim(RTrim(IsNull(LedgerNumOfRows,'')))+'"'
From
( Select 0 As SQLGroup, 'ATS Sign-Off Entity' As SignOffEntity
, 'Ledger Balance' As LedgerSumAmount, 'Ledger Count' As LedgerNumOfRows
Union All
Select 1 As SQLGroup, a.SignOffEntity
, Convert(Char(15),Sum(IsNull(b.Amount,0))) As LedgerSumAmount
, Convert(Char(15),Count(b.Entity)) As LedgerNumOfRows
From ATS_SignOff_Entity a (NoLock)
Left Join (Select Entity, IsNull(Amount,0) As Amount
From Ledger_Detail c (NoLock)
Where Account_Type In ('4', '5', '6', '7')
Union All
Select Entity, IsNull(Convert(money,BOY),0) As Amount
From tblAcct_LedgerBalance d (NoLock)) b
On a.Entity = b.Entity
Group by a.SignOffEntity
Union All
Select 2 As SQLGroup, 'TOTAL'
, Convert(Char(15),Sum(IsNull(b.Amount,0))) As LedgerSumAmount
, Convert(Char(15),Count(b.Entity)) As LedgerNumOfRows
From ATS_SignOff_Entity a (NoLock)
Left Join (Select Entity, IsNull(Amount,0) As Amount
From Ledger_Detail c (NoLock)
Where Account_Type In ('4', '5', '6', '7')
Union All
Select Entity, IsNull(Convert(money,BOY),0) As Amount
From tblAcct_LedgerBalance d ) b
On a.Entity = b.Entity
) As A
Notice that it's just 1 column, because all of the columns are concatenated...notice too the column conversions to char where needed...
Also notice the trailer or total row...they're kept in the correct order by the SQLGroup Column...
Sunday, February 19, 2012
DTS in ASP.NET
I want to execute a DTS Package in a ASP.VB.NET(ASP.NET using VB language) application. Please, it's ASP.VB.NET(ASP.NET using VB language)
NOT VB.NET ou CS.NET
If it's possible i would like some code samples.
I'll be thankful if someone help me
Regards
Renatacheckthis article out.
DTS in ASP NET
Someone know how can i execute a DTS from asp net?
THANKKSSS!!!Try this url it is run by a SQL Server MVP. Hope this helps.
http://www.sqldts.com
Kind regards,
Gift Peddie|||THANKSSS!!!! IT'S HELP ME!!!!!