Hello:
I need to execute a DTS package from an ASP.Net application. The SQL server
registration properties are set to "Use Windows authentication" .
domain\ASPNET is among the SQL server users.
However, when I use this string to load DTS package:
oPkg.LoadFromSQ LServer("WIN200 0", , ,
DTS.DTSSQLServe rStorageFlags.D TSSQLStgFlag_Us eTrustedConnect ion, , , ,
"Import_Sales_H istory")
I get this error:
"System.Runtime .InteropService s.COMException (0x80004005): Login failed for
user '(null)'. Reason: Not associated with a trusted SQL Server connection.
at DTS._Package.Lo adFromSQLServer (String ServerName, String
ServerUserName, String ServerPassword, DTSSQLServerSto rageFlags Flags,
String PackagePassword , String PackageGuid, String PackageVersionG uid,
String PackageName, Object& pVarPersistStgO fHost)
If I specify UID and password:
oPkg.LoadFromSQ LServer("WIN200 0", "UID", "password",
DTS.DTSSQLServe rStorageFlags.D TSSQLStgFlag_De fault, , , ,
"Import_Sales_H istory")
everything works OK.
Why the trusted connection doesn't work in my case, despite that the SQL
server properties are set to use it?
I would appreciate your help.
Thank you,
--
Peter Afonin 1 3330
Thank you.
Yes, I use domain\ASPNET account.
Peter
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:us******** ********@TK2MSF TNGP11.phx.gbl. .. Unless you've set up a Domain ASPNET account, it doesn't exist. The ASPNET account is a machine-level account.
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer http://www.takempis.com The more I learn, the less I know.
"Peter Afonin" <pa**@specialty pulltabs.com> wrote in message news:ew******** ******@TK2MSFTN GP09.phx.gbl... Hello:
I need to execute a DTS package from an ASP.Net application. The SQL server registration properties are set to "Use Windows authentication" . domain\ASPNET is among the SQL server users.
However, when I use this string to load DTS package:
oPkg.LoadFromSQ LServer("WIN200 0", , , DTS.DTSSQLServe rStorageFlags.D TSSQLStgFlag_Us eTrustedConnect ion, , , , "Import_Sales_H istory")
I get this error:
"System.Runtime .InteropService s.COMException (0x80004005): Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. at DTS._Package.Lo adFromSQLServer (String ServerName, String ServerUserName, String ServerPassword, DTSSQLServerSto rageFlags Flags, String PackagePassword , String PackageGuid, String PackageVersionG uid, String PackageName, Object& pVarPersistStgO fHost)
If I specify UID and password:
oPkg.LoadFromSQ LServer("WIN200 0", "UID", "password", DTS.DTSSQLServe rStorageFlags.D TSSQLStgFlag_De fault, , , , "Import_Sales_H istory")
everything works OK.
Why the trusted connection doesn't work in my case, despite that the SQL server properties are set to use it?
I would appreciate your help.
Thank you,
-- Peter Afonin
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: bigDWK |
last post by:
Hi-
Is it possible to do a trusted connection for a web server not on
the same physical machine. By this I mean can I make a remote
connection from a web server to a sql server using a trusted connection.
If so, how?
Thanks,
Dave
|
by: Jim Corey |
last post by:
We're looking at logging on to SQLServer using Windows Authentication
from an ASP app, and trying to figure out what will work.
The following connection string works with Basic Authentication:
driver={SQL
Server};SERVER=MyServer;Database=MyDB;Trusted_Connection=yes;
Is there a way to do this with IIS security set to Integrated Windows
Authentication?
|
by: CD |
last post by:
Win03 and Win03SQLsp3a servers in the same domain. We are in hybrid mode
with W03 DC's
Back on NT 4, one could not do a trusted connection via web page when IIS
and SQL were on different servers.
We have tried since on the new platforms and see the same results. Makes me
wonder if there is something fishy with our domain.
Should one be able to make a trusted connection in a 2 server scenario?
|
by: KathyK |
last post by:
Hi and thanks in advance!
I have an Access 2000 front end and a SQL Server 2000 back end. When
the Access main form opens I run code that logs the user on to the SQL
server using the generic read only log on I have created. On some PCs
I am having a problem. The code runs and then displays a Log On box
with the Trusted Connection checked and the users NT logon displayed.
What causes this? Is there a way to correct it?
Thanks!
Kathy
|
by: Paul M |
last post by:
Hi,
I've just implemented my first application onto a test web server.
When the code comes to creating a connection object it throws an error
saying the "Login failed for user '(null)'. Reason : Not associated with a
trusted connection".
I'm using integrated security and it works from the IIS server I have set up
on my local machine. The connection string I'm using is
| |
by: Mythran |
last post by:
I have a test server and a development machine. I have SQL Server installed
on both, the installations are pretty much identical. Both servers are in
the same domain. When I run my application locally, I can connect to the
local sql server as well as the sql server on the test server. The IIS
settings on both the test server and local machine are the same (anon
disabled, use integrated windows auth). Identity impersonate is on in...
|
by: mike11d11 |
last post by:
Our company has a collection system with a list of accounts in it, I
connect to this system with access using an ODBC connection. I pull in
the account #'s and other fields, then I have to run and update query
to update other fields from another table in our collection system. I
am able to update every field except for one and it gives me unknown
error -7776, then the help with says error 3000. It won't update this
one field for about...
|
by: Thyagu |
last post by:
Hi,
Is it possible to connect to SQL Server using trusted connection from
unix? If yes, I'd like to know how.
Regards,
Thyagu.
|
by: Mad Scientist Jr |
last post by:
I am getting the following error when trying to access a database with
a trusted connection:
"Login failed for user '(null)'. Reason: Not associated with a trusted
SQL Server connection."
My connection string is:
"Server=MyServer; Database=MyCatalog; Trusted_Connection=True;"
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |