![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
When I ran the LoadFromSQLServer on a machine that had sql & iis installed on the same machine it worked perfectly. But when I ran the LoadFromSQLServer from another machine (IIS only) - I get error. Failed. I copied the dts files needed to the IIS machine. The SQL server is on a seperate server. Here is my code: Set oPkg= Server.CreateObject("DTS.Package") oPkg.LoadFromSQLServer "sname", "user", "pass",DTSSQLStgFlag_Default , "pass", "", "", "SQLtoACCESSX" oPkg.GlobalVariables("client_id").Value = "6" oPkg.GlobalVariables("accessmdb").Value = "C:\Inetpub\wwwroot\hhd01.mdb" oPkg.Execute() Does this mdb file have to be on the IIS machine or the SQL machine. Does this have to be the path on the IIS or SQL server? "C:\Inetpub\wwwroot\hhd01.mdb" |
#3
| |||
| |||
|
|
DTS runs as a client process so the database specified here oPkg.GlobalVariables("accessmdb").Value = "C:\Inetpub\wwwroot\hhd01.mdb" needs to be on the IIS server -- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "wahoo" <none (AT) none (DOT) com> wrote in message news:eGFjoU2PDHA.2052 (AT) TK2MSFTNGP11 (DOT) phx.gbl... When I ran the LoadFromSQLServer on a machine that had sql & iis installed on the same machine it worked perfectly. But when I ran the LoadFromSQLServer from another machine (IIS only) - I get error. Failed. I copied the dts files needed to the IIS machine. The SQL server is on a seperate server. Here is my code: Set oPkg= Server.CreateObject("DTS.Package") oPkg.LoadFromSQLServer "sname", "user", "pass",DTSSQLStgFlag_Default , "pass", "", "", "SQLtoACCESSX" oPkg.GlobalVariables("client_id").Value = "6" oPkg.GlobalVariables("accessmdb").Value = "C:\Inetpub\wwwroot\hhd01.mdb" oPkg.Execute() Does this mdb file have to be on the IIS machine or the SQL machine. Does this have to be the path on the IIS or SQL server? "C:\Inetpub\wwwroot\hhd01.mdb" |
#4
| |||
| |||
|
|
Hello, wahoo! A quick thing you may be experiencing is that the DTS dlls are not installed on the server. DTS is a client side process. Redistributing DTS with your program http://www.sqldts.com/default.aspx?6,105,225,0,1 -- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org : Again -- when I did the same thing on a server that had iis and sql server : on the same box - it worked. : Now that i execute the dts package in iis box that doesn't have sql - it : doesn't work. : The LoadFromSQLServer with no parameters, calls the sql server but when : executing the package it fails. : I checked the logs and it doesn't get recorded in the logs, so I can't check : why it fails. : Any ideas? Does the iis and sql server have to be on the same server to : work? : "Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message : news:uAv08j5PDHA.304 (AT) tk2msftngp13 (DOT) phx.gbl... ??>> DTS runs as a client process so the database specified here ??>> oPkg.GlobalVariables("accessmdb").Value = "C:\Inetpub\wwwroot\hhd01.mdb" ?? ??>> needs to be on the IIS server ?? ??>> -- ?? ??>> Allan Mitchell (Microsoft SQL Server MVP) ??>> MCSE,MCDBA ??>> www.SQLDTS.com ??>> I support PASS - the definitive, global community ??>> for SQL Server professionals - http://www.sqlpass.org ?? ??>> "wahoo" <none (AT) none (DOT) com> wrote in message ??>> news:eGFjoU2PDHA.2052 (AT) TK2MSFTNGP11 (DOT) phx.gbl... ??>>> When I ran the LoadFromSQLServer on a machine that had sql & iis : installed ??>>> on the same machine it worked perfectly. ?? ??>>> But when I ran the LoadFromSQLServer from another machine (IIS only) - I ??>> get ??>>> error. Failed. ??>>> I copied the dts files needed to the IIS machine. ??>>> The SQL server is on a seperate server. ?? ??>>> Here is my code: ?? ??>>> Set oPkg= Server.CreateObject("DTS.Package") ??>>> oPkg.LoadFromSQLServer "sname", "user", "pass",DTSSQLStgFlag_Default , ??>>> "pass", "", "", "SQLtoACCESSX" ??>>> oPkg.GlobalVariables("client_id").Value = "6" ??>>> oPkg.GlobalVariables("accessmdb").Value = "C:\Inetpub\wwwroot\hhd01.mdb" ??>>> oPkg.Execute() ?? --- Microsoft Outlook Express 6.00.2800.1158 |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |