joan2006
asked on
How to connect to lotus notes client
Hi All,
Our web server has NotesSQL and a lotus notes client that uses a username, password to get the data.
I know nothing about lotus notes.
I am using c#,SQL Server. How can i connect to this lotus notes client via a dsn-less connection
I was given the following:Driver={Lotus NotesSQL 3.01 (32-bit) ODBC DRIVER (*.nsf)};Server=myServerAd dress;Data base=dbPat h\myDb.nsf ;Uid=myUse rname;Pwd= myPassword ;
Can someone assist me in connection to this lotus notes client and getting data from a view that was created?
Our web server has NotesSQL and a lotus notes client that uses a username, password to get the data.
I know nothing about lotus notes.
I am using c#,SQL Server. How can i connect to this lotus notes client via a dsn-less connection
I was given the following:Driver={Lotus NotesSQL 3.01 (32-bit) ODBC DRIVER (*.nsf)};Server=myServerAd
Can someone assist me in connection to this lotus notes client and getting data from a view that was created?
ASKER
surajguptha,
i usually use the following :
SqlConnection connection = new SqlConnection("Data Source=datasource;Initial Catalog=catalog;Persist Security Info=True;User ID=myid;Password=mypasswor d");
so are you saying all i need to do is the following for lotus notes:
SqlConnection cqlotus = new SqlConnection("Driver={Lot us NotesSQL 3.01 (32-bit) ODBC DRIVER (*.nsf)};Server=myserver;D atabase=my database.n sf;Uid=myi d.id;Pwd=m ypassword" );
i usually use the following :
SqlConnection connection = new SqlConnection("Data Source=datasource;Initial Catalog=catalog;Persist Security Info=True;User ID=myid;Password=mypasswor
so are you saying all i need to do is the following for lotus notes:
SqlConnection cqlotus = new SqlConnection("Driver={Lot
Yes thats right... are you having any problem with using this???
ASKER
Yes i am having problems.
I get an error stating that the Keyword "driver is not supported"
I get an error stating that the Keyword "driver is not supported"
ASKER
I just changed "driver" to Datasource and i get the following error:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
can you try using the ODBCconnection ?? I didnt notice the SQL connection in your previous post...
ASKER
Keep in mind that this is just Lotus NotesSQL and an ID File that i am trying to connect to. This Lotus Notes App/and ID File are located on a Web Server.
Also I am trying to access views in the database
****Using NotesSQL ODBC Driver and C# to extract the .nsf file data****
I was told that NotesSQL was installed on a particular WebCluster. Am i suppose to somehow connect to this web cluster by creating a new Registered Server through SQL Server?
OK, i tried the following:
//rchnotes101
OdbcConnection myConnection = new OdbcConnection("DRIVER={Lo tus NotesSQL 3.01 (32-bit) ODBC DRIVER (*.nsf)};Server=VSQL025;Da tabase=cas CapInq.nsf ;Uid=CSIUs er.id;Pwd= cuser10160 7");
myconnection.open(); //ERRORS HERE: "ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"
Also I am trying to access views in the database
****Using NotesSQL ODBC Driver and C# to extract the .nsf file data****
I was told that NotesSQL was installed on a particular WebCluster. Am i suppose to somehow connect to this web cluster by creating a new Registered Server through SQL Server?
OK, i tried the following:
//rchnotes101
OdbcConnection myConnection = new OdbcConnection("DRIVER={Lo
myconnection.open(); //ERRORS HERE: "ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The Notes ODBC driver is really designed for client use, not console-less server use. You may be able to get it tow rok, but most likely you would have to remove the password from the ID file.
An alternative is to use the Notes API instead of using SQL, but that would require a deeper understanding of how to access Notes data.
An alternative is to use the Notes API instead of using SQL, but that would require a deeper understanding of how to access Notes data.
ASKER
i used COM object reference
Well you just have to use the path to your Lotus NotesSQL database and give the proper server address and user name values
and then you can just use a normal SQLCOMMAND to query the view created in the Lotus NotesSQL database