dbTalk Databases Forums  

Using a connection string with a User Id

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Using a connection string with a User Id in the microsoft.public.sqlserver.olap forum.



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

Default Using a connection string with a User Id - 06-16-2006 , 08:10 AM






I have an ASP.NET app that connects to AS2005. I would like to use a
connection string with a User Id similar to the way I would connect to
SQLServer, but I haven't been able to make this work.

The only way the app currently works for me is if I use impersonation,
but I'd rather not do this right now.

I've seen examples for connection strings that look like:
DataSource=myASserver;Catalog=myDB;Provider=msolap .3;User
Id=myId;Password=myPW;

but I haven't got it to work. Is this possible?

TIA,
Jim


Reply With Quote
  #2  
Old   
Darren Gosbell
 
Posts: n/a

Default Re: Using a connection string with a User Id - 06-19-2006 , 06:42 AM






The User Id option only works if you are using a http connection.
Otherwise AS2005 always uses Windows authentication.

--
Regards
Darren Gosbell [MCSD]
Blog: http://www.geekswithblogs.net/darrengosbell

In article <1150463415.880342.257390 (AT) h76g2000cwa (DOT) googlegroups.com>,
jhcorey (AT) yahoo (DOT) com says...
Quote:
I have an ASP.NET app that connects to AS2005. I would like to use a
connection string with a User Id similar to the way I would connect to
SQLServer, but I haven't been able to make this work.

The only way the app currently works for me is if I use impersonation,
but I'd rather not do this right now.

I've seen examples for connection strings that look like:
DataSource=myASserver;Catalog=myDB;Provider=msolap .3;User
Id=myId;Password=myPW;

but I haven't got it to work. Is this possible?

TIA,
Jim



Reply With Quote
  #3  
Old   
Radu Colceriu
 
Posts: n/a

Default Re: Using a connection string with a User Id - 06-20-2006 , 10:11 AM



You should try the "Role=Role Name" property in the connection string. So
the connection is made with an "admin" like user, but he get the "Rolae
name" applyed to the conn.

-Radu


<jhcorey (AT) yahoo (DOT) com> wrote

Quote:
I have an ASP.NET app that connects to AS2005. I would like to use a
connection string with a User Id similar to the way I would connect to
SQLServer, but I haven't been able to make this work.

The only way the app currently works for me is if I use impersonation,
but I'd rather not do this right now.

I've seen examples for connection strings that look like:
DataSource=myASserver;Catalog=myDB;Provider=msolap .3;User
Id=myId;Password=myPW;

but I haven't got it to work. Is this possible?

TIA,
Jim




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.