MathewLeung
Programmer
Hi,
I have an application which is running on a different machine then the SQL Server. Both machines are running within the same workgroup but not domain.
I have MDAC 2.6 installed on client. My application is a Lotus Notes client using ADOMD to access the OLAP cubes on the SQL server.
Security on SQL Server is set to run on Mixed mode, where I want to use the SQL server authentication only. A user account is setup on SQL server as TestUser with pwd as password.
My code is as follows:
Set catalogObject as CreateObject("ADOMD.Catalog"
catalogObject.ActiveConnection = "DataSource=Dev2;Initial Catalog=Data Warehouse;Provider=msolap;UID=TestUser;Pwd=password;"
If I logged on to the workgroup as TestUser and entered password as password, then I would be able to connect to the SQL server with access to the cubes
But if I logged on as a different user who does not exist in the login accounts, it will return an error with 'user could not be authenticated'.
Question 1: What can I do if I only want to pass user informatino using the connection string to authenticate user rather then using windows authentication?
Question 2: I tested my connection on the client and it took around 2 mins for SQL server to authenticate and it took no time on the server. Can connection time be improved when running on the client in some way?
Thanks in advance for any help
I have an application which is running on a different machine then the SQL Server. Both machines are running within the same workgroup but not domain.
I have MDAC 2.6 installed on client. My application is a Lotus Notes client using ADOMD to access the OLAP cubes on the SQL server.
Security on SQL Server is set to run on Mixed mode, where I want to use the SQL server authentication only. A user account is setup on SQL server as TestUser with pwd as password.
My code is as follows:
Set catalogObject as CreateObject("ADOMD.Catalog"

catalogObject.ActiveConnection = "DataSource=Dev2;Initial Catalog=Data Warehouse;Provider=msolap;UID=TestUser;Pwd=password;"
If I logged on to the workgroup as TestUser and entered password as password, then I would be able to connect to the SQL server with access to the cubes
But if I logged on as a different user who does not exist in the login accounts, it will return an error with 'user could not be authenticated'.
Question 1: What can I do if I only want to pass user informatino using the connection string to authenticate user rather then using windows authentication?
Question 2: I tested my connection on the client and it took around 2 mins for SQL server to authenticate and it took no time on the server. Can connection time be improved when running on the client in some way?
Thanks in advance for any help