dbTalk Databases Forums  

Permission required to execute a DTS package from ASP.NET applicatio?!!

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


Discuss Permission required to execute a DTS package from ASP.NET applicatio?!! in the microsoft.public.sqlserver.dts forum.



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

Default Permission required to execute a DTS package from ASP.NET applicatio?!! - 07-12-2005 , 08:52 PM






Hello,

I'm calling a DTS package from my asp.net application.Apparently because of
permission issue I canot run the package within the sql server ,because when
I set it to call a package from my local host it can execute te package.one
step before calling the package I get the IDENTITY of the current security
context and it is my Domian user name and I'm using IntegratedSecurity to
call the DTS package.I'm also memeber of sysadmin rols in Database.Do I have
to give it extra permissions?

Thasnk



Reply With Quote
  #2  
Old   
Jéjé
 
Posts: n/a

Default Re: Permission required to execute a DTS package from ASP.NET applicatio?!! - 07-12-2005 , 11:32 PM






does SQL server is on the same server as your ASP.net application?
do you use NTLM or Basic authentication?
have you setup the impersonation in the web.config file?

"Ray5531" <Ray5531 (AT) microsoft (DOT) com> wrote

Quote:
Hello,

I'm calling a DTS package from my asp.net application.Apparently because
of permission issue I canot run the package within the sql server ,because
when I set it to call a package from my local host it can execute te
package.one step before calling the package I get the IDENTITY of the
current security context and it is my Domian user name and I'm using
IntegratedSecurity to call the DTS package.I'm also memeber of sysadmin
rols in Database.Do I have to give it extra permissions?

Thasnk




Reply With Quote
  #3  
Old   
J-T
 
Posts: n/a

Default Re: Permission required to execute a DTS package from ASP.NET applicatio?!! - 07-13-2005 , 11:39 AM



Thanks Jeje,

Quote:
have you setup the impersonation in the web.config file?
Yes,I've enabled impersonation in my application and that's why it is under
the security context of my account "Domain\My UserName".

Quote:
does SQL server is on the same server as your ASP.net application?
No they are in different boxes!!! I think this is the problem

Quote:
do you use NTLM or Basic authentication?
I'm using NTLM (Windows integrated security).

Thanks again


"Jéjé" <willgart (AT) BBBhotmailAAA (DOT) com> wrote

Quote:
does SQL server is on the same server as your ASP.net application?
do you use NTLM or Basic authentication?
have you setup the impersonation in the web.config file?

"Ray5531" <Ray5531 (AT) microsoft (DOT) com> wrote in message
news:usCQ510hFHA.1372 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Hello,

I'm calling a DTS package from my asp.net application.Apparently because
of permission issue I canot run the package within the sql server
,because when I set it to call a package from my local host it can
execute te package.one step before calling the package I get the IDENTITY
of the current security context and it is my Domian user name and I'm
using IntegratedSecurity to call the DTS package.I'm also memeber of
sysadmin rols in Database.Do I have to give it extra permissions?

Thasnk






Reply With Quote
  #4  
Old   
Jéjé
 
Posts: n/a

Default Re: Permission required to execute a DTS package from ASP.NET applicatio?!! - 07-13-2005 , 07:36 PM



ok
the problem is a Kerberos issue!

are you using the active directory?
trust your webserver in the active directory, this allow the computer to
delegates the end user access. (look at the properties of the computer
account in the AD)
if your ASP.Net application run under a specific user account (your app pool
run under a domain user), then you have to download the setspn utility.
then use it like this:

setspn -a http/webservername domain\apppooluser

this command allow the domain\apppooluser user to delegates the end user
login during impersonation.

but...
1. your end user must be in the Active Directory too
2. the client computer must be on the same network withtout firewall between
the station and the web server (the kerberos delegation dislike firewalls)

or use the basic authentication for the web server, because the basic
authentication "display" the password, then the ASP.net application use the
login / password when there is a back end access.

"J-T" <JT (AT) nospam (DOT) com> wrote

Quote:
Thanks Jeje,

have you setup the impersonation in the web.config file?
Yes,I've enabled impersonation in my application and that's why it is
under the security context of my account "Domain\My UserName".

does SQL server is on the same server as your ASP.net application?
No they are in different boxes!!! I think this is the problem

do you use NTLM or Basic authentication?
I'm using NTLM (Windows integrated security).

Thanks again


"Jéjé" <willgart (AT) BBBhotmailAAA (DOT) com> wrote in message
news:uWzExP2hFHA.1968 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
does SQL server is on the same server as your ASP.net application?
do you use NTLM or Basic authentication?
have you setup the impersonation in the web.config file?

"Ray5531" <Ray5531 (AT) microsoft (DOT) com> wrote in message
news:usCQ510hFHA.1372 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Hello,

I'm calling a DTS package from my asp.net application.Apparently because
of permission issue I canot run the package within the sql server
,because when I set it to call a package from my local host it can
execute te package.one step before calling the package I get the
IDENTITY of the current security context and it is my Domian user name
and I'm using IntegratedSecurity to call the DTS package.I'm also
memeber of sysadmin rols in Database.Do I have to give it extra
permissions?

Thasnk








Reply With Quote
  #5  
Old   
J-T
 
Posts: n/a

Default Re: Permission required to execute a DTS package from ASP.NET applicatio?!! - 07-13-2005 , 08:44 PM



Thanks for your nice reply.
I cannot implement kerbreros.How about this?

I will impersonate under a local account of web server and then I duplicate
that account in sql server as SQL SERVER Authentication and then I will give
that account all the right permission sets to run the packages .

Thanks

"Jéjé" <willgart (AT) BBBhotmailAAA (DOT) com> wrote

Quote:
ok
the problem is a Kerberos issue!

are you using the active directory?
trust your webserver in the active directory, this allow the computer to
delegates the end user access. (look at the properties of the computer
account in the AD)
if your ASP.Net application run under a specific user account (your app
pool run under a domain user), then you have to download the setspn
utility.
then use it like this:

setspn -a http/webservername domain\apppooluser

this command allow the domain\apppooluser user to delegates the end user
login during impersonation.

but...
1. your end user must be in the Active Directory too
2. the client computer must be on the same network withtout firewall
between the station and the web server (the kerberos delegation dislike
firewalls)

or use the basic authentication for the web server, because the basic
authentication "display" the password, then the ASP.net application use
the login / password when there is a back end access.

"J-T" <JT (AT) nospam (DOT) com> wrote in message
news:eNHQhl8hFHA.3300 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
Thanks Jeje,

have you setup the impersonation in the web.config file?
Yes,I've enabled impersonation in my application and that's why it is
under the security context of my account "Domain\My UserName".

does SQL server is on the same server as your ASP.net application?
No they are in different boxes!!! I think this is the problem

do you use NTLM or Basic authentication?
I'm using NTLM (Windows integrated security).

Thanks again


"Jéjé" <willgart (AT) BBBhotmailAAA (DOT) com> wrote in message
news:uWzExP2hFHA.1968 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
does SQL server is on the same server as your ASP.net application?
do you use NTLM or Basic authentication?
have you setup the impersonation in the web.config file?

"Ray5531" <Ray5531 (AT) microsoft (DOT) com> wrote in message
news:usCQ510hFHA.1372 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Hello,

I'm calling a DTS package from my asp.net application.Apparently
because of permission issue I canot run the package within the sql
server ,because when I set it to call a package from my local host it
can execute te package.one step before calling the package I get the
IDENTITY of the current security context and it is my Domian user name
and I'm using IntegratedSecurity to call the DTS package.I'm also
memeber of sysadmin rols in Database.Do I have to give it extra
permissions?

Thasnk










Reply With Quote
  #6  
Old   
Jéjé
 
Posts: n/a

Default Re: Permission required to execute a DTS package from ASP.NET applicatio?!! - 07-13-2005 , 10:55 PM



if using the logged user account is optional and if you can impersonate
using another user account, then try it. (provide a spcific username /
password in the impersonate tag of the web.config file)

or... you can open a DTS package by providing a specific user / password
instead-of the integrated security. also use SQL Server accounts for the
connections in your package.


"J-T" <JT (AT) nospam (DOT) com> wrote

Quote:
Thanks for your nice reply.
I cannot implement kerbreros.How about this?

I will impersonate under a local account of web server and then I
duplicate that account in sql server as SQL SERVER Authentication and then
I will give that account all the right permission sets to run the packages
.

Thanks

"Jéjé" <willgart (AT) BBBhotmailAAA (DOT) com> wrote in message
news:%23mPihwAiFHA.720 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
ok
the problem is a Kerberos issue!

are you using the active directory?
trust your webserver in the active directory, this allow the computer to
delegates the end user access. (look at the properties of the computer
account in the AD)
if your ASP.Net application run under a specific user account (your app
pool run under a domain user), then you have to download the setspn
utility.
then use it like this:

setspn -a http/webservername domain\apppooluser

this command allow the domain\apppooluser user to delegates the end user
login during impersonation.

but...
1. your end user must be in the Active Directory too
2. the client computer must be on the same network withtout firewall
between the station and the web server (the kerberos delegation dislike
firewalls)

or use the basic authentication for the web server, because the basic
authentication "display" the password, then the ASP.net application use
the login / password when there is a back end access.

"J-T" <JT (AT) nospam (DOT) com> wrote in message
news:eNHQhl8hFHA.3300 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
Thanks Jeje,

have you setup the impersonation in the web.config file?
Yes,I've enabled impersonation in my application and that's why it is
under the security context of my account "Domain\My UserName".

does SQL server is on the same server as your ASP.net application?
No they are in different boxes!!! I think this is the problem

do you use NTLM or Basic authentication?
I'm using NTLM (Windows integrated security).

Thanks again


"Jéjé" <willgart (AT) BBBhotmailAAA (DOT) com> wrote in message
news:uWzExP2hFHA.1968 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
does SQL server is on the same server as your ASP.net application?
do you use NTLM or Basic authentication?
have you setup the impersonation in the web.config file?

"Ray5531" <Ray5531 (AT) microsoft (DOT) com> wrote in message
news:usCQ510hFHA.1372 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Hello,

I'm calling a DTS package from my asp.net application.Apparently
because of permission issue I canot run the package within the sql
server ,because when I set it to call a package from my local host it
can execute te package.one step before calling the package I get the
IDENTITY of the current security context and it is my Domian user name
and I'm using IntegratedSecurity to call the DTS package.I'm also
memeber of sysadmin rols in Database.Do I have to give it extra
permissions?

Thasnk












Reply With Quote
  #7  
Old   
J-T
 
Posts: n/a

Default Re: Permission required to execute a DTS package from ASP.NET applicatio?!! - 07-14-2005 , 12:39 PM



Quote:
or... you can open a DTS package by providing a specific user / password
instead-of the integrated security. also use SQL Server accounts for the
connections in your package.
I did this one and I gave the sql server account all the administative
permissions then in my code I load the package using the following line:
package.LoadFromSQLServer("MyServer","username","p assword",
DTSSQLServerStorageFlags.DTSSQLStgFlag_Default, null,
null, null, packageName, ref pVarPersistStgOfHost);

It loads perfectly (same as before) but it dosen;t execute the package !!!!
it thorws no exception ,nothing!! If I enable event sink it invokes
OnQueryCancle twice and then nothing happens and it goes to the next line
which is uninitialization of the package!!! I'm so disappointed at this,here
is my code

Package2Class package = new Package2Class();
UCOMIConnectionPointContainer CnnctPtCont =
(UCOMIConnectionPointContainer) package;
UCOMIConnectionPoint CnnctPt;
Guid guid = new Guid("10020605-EB1C-11CF-AE6E-00AA004A34D5"); // UUID
of PackageEvents Interface
CnnctPtCont.FindConnectionPoint(ref guid, out CnnctPt);
int iCookie;


//PackageEventsSink PES=new PackageEventsSink();
CnnctPt.Advise(PES, out iCookie);
object pVarPersistStgOfHost = null;


package.LoadFromSQLServer("MyServer","username","p assword",
DTSSQLServerStorageFlags.DTSSQLStgFlag_Default, null,
null, null, packageName, ref pVarPersistStgOfHost);

package.Execute();
package.UnInitialize();
package = null;
CnnctPt.Unadvise(iCookie); //a connection that is created by
IConnectionPoint.Advise must be closed by calling IConnectionPoint.Unadvise
to avoid a memory leak



*** Package Event Sink***

public class PackageEventsSink :
CollectionBase,Microsoft.SQLServer.DTSPkg80.Packag eEvents
{
public PackageEventsSink()
{
}

public void Add(DTSEvent item)
{
List.Add(item);
}

public DTSEvent this[int index]
{
get {return List[index] as DTSEvent;}
set {List[index] = value;}
}


#region PackageEvents Members

public void OnQueryCancel(string EventSource, ref bool pbCancel)
{
this.Add(new DTSEvent(EventSource, "OnQueryCancel", 0, 0, 0));
pbCancel=false;
}

public void OnStart(string EventSource)
{
this.Add(new DTSEvent(EventSource, "started", 0, 0, 0));
WriteLog(string.Format("{0} has started at time: {1}", EventSource,
System.DateTime.Now.ToString()));
}

public void OnProgress(string EventSource, string ProgressDescription, int
PercentComplete, int ProgressCountLow, int ProgressCountHigh)
{
try
{
this.Add(new DTSEvent(EventSource, ProgressDescription, PercentComplete,
ProgressCountLow, ProgressCountHigh));
WriteLog(string.Format("{0} has just raised an On Progress event with
{1} as the description of the event.",EventSource,ProgressDescription));
}
catch(System.Threading.ThreadStateException tEx)
{
throw tEx;
}
catch(System.Exception sExc)
{
throw sExc;
}

}

public void OnError(string EventSource, int ErrorCode, string Source,
string Description, string HelpFile, int HelpContext, string
IDofInterfaceWithError, ref bool pbCancel)
{
this.Add(new DTSEvent(EventSource, "Error", 0, 0, 0));
WriteLog(string.Format("{0} has just raised an On Error event",Source));
}

public void OnFinish(string EventSource)
{
this.Add(new DTSEvent(EventSource, "Finished", 0, 0, 0));
WriteLog(string.Format("{0} has Finished at time: {1}", EventSource,
System.DateTime.Now.ToString()));
}

private void WriteLog(string text)
{
System.IO.StreamWriter stW;

if (!File.Exists(Constants.CONFIG_AUDIT_FILE))
{
stW = File.CreateText(Constants.CONFIG_AUDIT_FILE);

}
else
{
stW = new StreamWriter(Constants.CONFIG_AUDIT_FILE,true);
}

stW.WriteLine(string.Format(@"{0} : {1}", DateTime.Now.ToString(),text));
stW.Close();
}


#endregion

}

"Jéjé" <willgart (AT) BBBhotmailAAA (DOT) com> wrote

Quote:
if using the logged user account is optional and if you can impersonate
using another user account, then try it. (provide a spcific username /
password in the impersonate tag of the web.config file)

or... you can open a DTS package by providing a specific user / password
instead-of the integrated security. also use SQL Server accounts for the
connections in your package.


"J-T" <JT (AT) nospam (DOT) com> wrote in message
news:O4lyGWBiFHA.2152 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
Thanks for your nice reply.
I cannot implement kerbreros.How about this?

I will impersonate under a local account of web server and then I
duplicate that account in sql server as SQL SERVER Authentication and
then I will give that account all the right permission sets to run the
packages .

Thanks

"Jéjé" <willgart (AT) BBBhotmailAAA (DOT) com> wrote in message
news:%23mPihwAiFHA.720 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
ok
the problem is a Kerberos issue!

are you using the active directory?
trust your webserver in the active directory, this allow the computer to
delegates the end user access. (look at the properties of the computer
account in the AD)
if your ASP.Net application run under a specific user account (your app
pool run under a domain user), then you have to download the setspn
utility.
then use it like this:

setspn -a http/webservername domain\apppooluser

this command allow the domain\apppooluser user to delegates the end user
login during impersonation.

but...
1. your end user must be in the Active Directory too
2. the client computer must be on the same network withtout firewall
between the station and the web server (the kerberos delegation dislike
firewalls)

or use the basic authentication for the web server, because the basic
authentication "display" the password, then the ASP.net application use
the login / password when there is a back end access.

"J-T" <JT (AT) nospam (DOT) com> wrote in message
news:eNHQhl8hFHA.3300 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
Thanks Jeje,

have you setup the impersonation in the web.config file?
Yes,I've enabled impersonation in my application and that's why it is
under the security context of my account "Domain\My UserName".

does SQL server is on the same server as your ASP.net application?
No they are in different boxes!!! I think this is the problem

do you use NTLM or Basic authentication?
I'm using NTLM (Windows integrated security).

Thanks again


"Jéjé" <willgart (AT) BBBhotmailAAA (DOT) com> wrote in message
news:uWzExP2hFHA.1968 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
does SQL server is on the same server as your ASP.net application?
do you use NTLM or Basic authentication?
have you setup the impersonation in the web.config file?

"Ray5531" <Ray5531 (AT) microsoft (DOT) com> wrote in message
news:usCQ510hFHA.1372 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Hello,

I'm calling a DTS package from my asp.net application.Apparently
because of permission issue I canot run the package within the sql
server ,because when I set it to call a package from my local host it
can execute te package.one step before calling the package I get the
IDENTITY of the current security context and it is my Domian user
name and I'm using IntegratedSecurity to call the DTS package.I'm
also memeber of sysadmin rols in Database.Do I have to give it extra
permissions?

Thasnk














Reply With Quote
  #8  
Old   
J-T
 
Posts: n/a

Default Re: Permission required to execute a DTS package from ASP.NET applicatio?!! - 07-15-2005 , 11:40 AM



I think I found the problem.
The reason my DTS packages didn;t get excuted was that I used trusted
connections inside my packages and because my ASP.NET application can not
delegate callers credential to the pakcgaes (or in general to a remote sql
server box) the package got executed with null and then my connection tasks
inside the package (which were using trusted connection) were unable to be
connected and tasks based on them were not executed.

"J-T" <JT (AT) nospam (DOT) com> wrote

Quote:
or... you can open a DTS package by providing a specific user / password
instead-of the integrated security. also use SQL Server accounts for the
connections in your package.

I did this one and I gave the sql server account all the administative
permissions then in my code I load the package using the following line:
package.LoadFromSQLServer("MyServer","username","p assword",
DTSSQLServerStorageFlags.DTSSQLStgFlag_Default, null,
null, null, packageName, ref pVarPersistStgOfHost);

It loads perfectly (same as before) but it dosen;t execute the package
!!!! it thorws no exception ,nothing!! If I enable event sink it invokes
OnQueryCancle twice and then nothing happens and it goes to the next line
which is uninitialization of the package!!! I'm so disappointed at
this,here is my code

Package2Class package = new Package2Class();
UCOMIConnectionPointContainer CnnctPtCont =
(UCOMIConnectionPointContainer) package;
UCOMIConnectionPoint CnnctPt;
Guid guid = new Guid("10020605-EB1C-11CF-AE6E-00AA004A34D5"); // UUID
of PackageEvents Interface
CnnctPtCont.FindConnectionPoint(ref guid, out CnnctPt);
int iCookie;


//PackageEventsSink PES=new PackageEventsSink();
CnnctPt.Advise(PES, out iCookie);
object pVarPersistStgOfHost = null;


package.LoadFromSQLServer("MyServer","username","p assword",
DTSSQLServerStorageFlags.DTSSQLStgFlag_Default, null,
null, null, packageName, ref pVarPersistStgOfHost);

package.Execute();
package.UnInitialize();
package = null;
CnnctPt.Unadvise(iCookie); //a connection that is created by
IConnectionPoint.Advise must be closed by calling
IConnectionPoint.Unadvise to avoid a memory leak



*** Package Event Sink***

public class PackageEventsSink :
CollectionBase,Microsoft.SQLServer.DTSPkg80.Packag eEvents
{
public PackageEventsSink()
{
}

public void Add(DTSEvent item)
{
List.Add(item);
}

public DTSEvent this[int index]
{
get {return List[index] as DTSEvent;}
set {List[index] = value;}
}


#region PackageEvents Members

public void OnQueryCancel(string EventSource, ref bool pbCancel)
{
this.Add(new DTSEvent(EventSource, "OnQueryCancel", 0, 0, 0));
pbCancel=false;
}

public void OnStart(string EventSource)
{
this.Add(new DTSEvent(EventSource, "started", 0, 0, 0));
WriteLog(string.Format("{0} has started at time: {1}", EventSource,
System.DateTime.Now.ToString()));
}

public void OnProgress(string EventSource, string ProgressDescription,
int PercentComplete, int ProgressCountLow, int ProgressCountHigh)
{
try
{
this.Add(new DTSEvent(EventSource, ProgressDescription,
PercentComplete, ProgressCountLow, ProgressCountHigh));
WriteLog(string.Format("{0} has just raised an On Progress event with
{1} as the description of the event.",EventSource,ProgressDescription));
}
catch(System.Threading.ThreadStateException tEx)
{
throw tEx;
}
catch(System.Exception sExc)
{
throw sExc;
}

}

public void OnError(string EventSource, int ErrorCode, string Source,
string Description, string HelpFile, int HelpContext, string
IDofInterfaceWithError, ref bool pbCancel)
{
this.Add(new DTSEvent(EventSource, "Error", 0, 0, 0));
WriteLog(string.Format("{0} has just raised an On Error event",Source));
}

public void OnFinish(string EventSource)
{
this.Add(new DTSEvent(EventSource, "Finished", 0, 0, 0));
WriteLog(string.Format("{0} has Finished at time: {1}", EventSource,
System.DateTime.Now.ToString()));
}

private void WriteLog(string text)
{
System.IO.StreamWriter stW;

if (!File.Exists(Constants.CONFIG_AUDIT_FILE))
{
stW = File.CreateText(Constants.CONFIG_AUDIT_FILE);

}
else
{
stW = new StreamWriter(Constants.CONFIG_AUDIT_FILE,true);
}

stW.WriteLine(string.Format(@"{0} : {1}",
DateTime.Now.ToString(),text));
stW.Close();
}


#endregion

}

"Jéjé" <willgart (AT) BBBhotmailAAA (DOT) com> wrote in message
news:eceacfCiFHA.2560 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
if using the logged user account is optional and if you can impersonate
using another user account, then try it. (provide a spcific username /
password in the impersonate tag of the web.config file)

or... you can open a DTS package by providing a specific user / password
instead-of the integrated security. also use SQL Server accounts for the
connections in your package.


"J-T" <JT (AT) nospam (DOT) com> wrote in message
news:O4lyGWBiFHA.2152 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
Thanks for your nice reply.
I cannot implement kerbreros.How about this?

I will impersonate under a local account of web server and then I
duplicate that account in sql server as SQL SERVER Authentication and
then I will give that account all the right permission sets to run the
packages .

Thanks

"Jéjé" <willgart (AT) BBBhotmailAAA (DOT) com> wrote in message
news:%23mPihwAiFHA.720 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
ok
the problem is a Kerberos issue!

are you using the active directory?
trust your webserver in the active directory, this allow the computer
to delegates the end user access. (look at the properties of the
computer account in the AD)
if your ASP.Net application run under a specific user account (your app
pool run under a domain user), then you have to download the setspn
utility.
then use it like this:

setspn -a http/webservername domain\apppooluser

this command allow the domain\apppooluser user to delegates the end
user login during impersonation.

but...
1. your end user must be in the Active Directory too
2. the client computer must be on the same network withtout firewall
between the station and the web server (the kerberos delegation dislike
firewalls)

or use the basic authentication for the web server, because the basic
authentication "display" the password, then the ASP.net application use
the login / password when there is a back end access.

"J-T" <JT (AT) nospam (DOT) com> wrote in message
news:eNHQhl8hFHA.3300 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
Thanks Jeje,

have you setup the impersonation in the web.config file?
Yes,I've enabled impersonation in my application and that's why it is
under the security context of my account "Domain\My UserName".

does SQL server is on the same server as your ASP.net application?
No they are in different boxes!!! I think this is the problem

do you use NTLM or Basic authentication?
I'm using NTLM (Windows integrated security).

Thanks again


"Jéjé" <willgart (AT) BBBhotmailAAA (DOT) com> wrote in message
news:uWzExP2hFHA.1968 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
does SQL server is on the same server as your ASP.net application?
do you use NTLM or Basic authentication?
have you setup the impersonation in the web.config file?

"Ray5531" <Ray5531 (AT) microsoft (DOT) com> wrote in message
news:usCQ510hFHA.1372 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Hello,

I'm calling a DTS package from my asp.net application.Apparently
because of permission issue I canot run the package within the sql
server ,because when I set it to call a package from my local host
it can execute te package.one step before calling the package I get
the IDENTITY of the current security context and it is my Domian
user name and I'm using IntegratedSecurity to call the DTS
package.I'm also memeber of sysadmin rols in Database.Do I have to
give it extra permissions?

Thasnk
















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.