dbTalk Databases Forums  

DTS from VB Query

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS from VB Query in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Neil
 
Posts: n/a

Default DTS from VB Query - 03-04-2004 , 07:01 AM






Found this neat but of code in a previous posting which I've used within an Access ADP Project. I have SQL server installed and the code works fine. When given to a user without SQL Server, the second line fails. Presumably it's something to do with the DTSPackage Object Library (dtspkg.dll) being missing. Does the whole of SQL Server have to be installed to use this or is there another process that has the same effect. Tried copying dtspkg.dll locally but no luck

Any help much appreciated

Thank

Nei

All credit to Darren Green for www.sqldts.co


Private Sub SimpleExecutePackage(
Dim oPKG As New DTS.Packag
oPKG.LoadFromSQLServer "MyServer", , ,
DTSSQLStgFlag_UseTrustedConnection, , , , "MyPackage
oPKG.Execut
oPKG.UnInitializ
Set oPKG = Nothin
End Su



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS from VB Query - 03-04-2004 , 07:04 AM






No you do not need to install the whole of SQL Server

Redistributing DTS with your program
(http://www.sqldts.com/default.aspx?225)

--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Neil" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Found this neat but of code in a previous posting which I've used within
an Access ADP Project. I have SQL server installed and the code works fine.
When given to a user without SQL Server, the second line fails. Presumably
it's something to do with the DTSPackage Object Library (dtspkg.dll) being
missing. Does the whole of SQL Server have to be installed to use this or
is there another process that has the same effect. Tried copying dtspkg.dll
locally but no luck.
Quote:
Any help much appreciated.

Thanks


Neil


All credit to Darren Green for www.sqldts.com



Private Sub SimpleExecutePackage()
Dim oPKG As New DTS.Package
oPKG.LoadFromSQLServer "MyServer", , , _
DTSSQLStgFlag_UseTrustedConnection, , , , "MyPackage"
oPKG.Execute
oPKG.UnInitialize
Set oPKG = Nothing
End Sub






Reply With Quote
  #3  
Old   
Neil
 
Posts: n/a

Default Re: DTS from VB Query - 03-04-2004 , 09:26 AM



Allan

Many thanks for that.

I've tried registering dtspkg.dll using a command based on the following from the link you sent me.

Regsvr32.exe "X:\Program Files\ApplicationDirectory\dtsffile.dll"

When I run it though, I get the message

LoadLibrary("dtspkg.dll") failed - The specified module could not be found.

Any ideas?

Thanks again


Neil

Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS from VB Query - 03-04-2004 , 12:38 PM



Never had this. Are all your other files in place?

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Neil" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Allan

Many thanks for that.

I've tried registering dtspkg.dll using a command based on the following
from the link you sent me.

Regsvr32.exe "X:\Program Files\ApplicationDirectory\dtsffile.dll"

When I run it though, I get the message

LoadLibrary("dtspkg.dll") failed - The specified module could not be
found.

Any ideas?

Thanks again


Neil



Reply With Quote
  #5  
Old   
Darren Green
 
Posts: n/a

Default Re: DTS from VB Query - 03-04-2004 , 01:59 PM



In message <A825C222-E1D0-4A95-8F8B-6354E6360603 (AT) microsoft (DOT) com>, Neil
<anonymous (AT) discussions (DOT) microsoft.com> writes
Quote:
Allan

Many thanks for that.

I've tried registering dtspkg.dll using a command based on the
following from the link you sent me.

Regsvr32.exe "X:\Program Files\ApplicationDirectory\dtsffile.dll"

When I run it though, I get the message

LoadLibrary("dtspkg.dll") failed - The specified module could not be
found.

Any ideas?

Thanks again

Quote:
Neil
Do you really have a file on your X drive called Program
Files\ApplicationDirectory ?

X:\Program Files\ApplicationDirectory\dtsffile.dll is just a sample
path. You need to copy the files listed, including the resource files
which need to be in the sub directory as indicated, to your own machine,
then set that path as the regsvr32 command.
--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.