dbTalk Databases Forums  

LoadFromSQLServer - error saying "not a valid user in database 'msdb'"

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


Discuss LoadFromSQLServer - error saying "not a valid user in database 'msdb'" in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jeevankodali@gmail.com
 
Posts: n/a

Default LoadFromSQLServer - error saying "not a valid user in database 'msdb'" - 04-03-2006 , 02:15 PM






Hi

I had my DBA to create a DTS Package in a SqlServer and I am trying to
run it using LoadFromSQLServer from C#. Its giving exception that the
user is "not a valid user in database 'msdb'". "Public" group has been
given rights to sp_get_dtspackage, so I am not able to see any reason
why this is happening (why it is checking if that particular user is in
that Database or not).

I tried to simulate the whole thing with a SqlServer version installed
in my machine and nothing seems to be wrong with it. Can anyone think
of a reason why this is happening.

Thanks
Jeevan


Reply With Quote
  #2  
Old   
Edgardo Valdez, MCSD, MCDBA
 
Posts: n/a

Default RE: LoadFromSQLServer - error saying "not a valid user in database 'ms - 04-03-2006 , 04:49 PM






I apears that the user that executes the request does not have permissions to
the msdb database.

Public is a role, therefore, either that public role has to be assigned to
that specific account or it needs to be added to the database as a user in
msdb.

"jeevankodali (AT) gmail (DOT) com" wrote:

Quote:
Hi

I had my DBA to create a DTS Package in a SqlServer and I am trying to
run it using LoadFromSQLServer from C#. Its giving exception that the
user is "not a valid user in database 'msdb'". "Public" group has been
given rights to sp_get_dtspackage, so I am not able to see any reason
why this is happening (why it is checking if that particular user is in
that Database or not).

I tried to simulate the whole thing with a SqlServer version installed
in my machine and nothing seems to be wrong with it. Can anyone think
of a reason why this is happening.

Thanks
Jeevan



Reply With Quote
  #3  
Old   
jeevankodali@gmail.com
 
Posts: n/a

Default Re: LoadFromSQLServer - error saying "not a valid user in database 'ms - 04-03-2006 , 06:46 PM



That user is already in public role (DBA told me that all the users
will be under Public role). DBA does not want to add that user in
"msdb". So I am not sure if there is someother problem.


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.