HELP: How To Access Lotus Notes Database Using SQL 2005 Openrowset Command?
Mar 3, 2008Any advice on how to achieve the above, if possible, would be greatly appreciated.
Cheers,
j.
Any advice on how to achieve the above, if possible, would be greatly appreciated.
Cheers,
j.
I'm having a few issues trying to get a linked server setup from a new SQL2012 installation to a Lotus Notes database. This linked server has previously been working fine on our old SQL2005 environment. All setup using the same details (ODBC driver name matches, account details etc). If we test the connection from the Lotus ODBC driver the test connection is successful, If I then create the Linked server to access this ODBC driver I receive an error :
Cannot initialize the data source object OLE DB Provider "MSDASQL" for linked server "LotusTest"
OLE DB provider "MSDASQL" for linked server "LotusTest" returned message "[Microsoft][ODBC Driver Manager] Driver's SQLSetAttr failed"
OLE DB provider "MSDASQL" for linked server "LotusTest" returned message "[Lotus][ODBC Lotus Notes]
Unable to find path to server. check your network connection is working.(Microsoft SQL Server, Error: 7303)We have just migrated to a SQL Server 2012 64 bit Enterprise from SQL Server 2005 32 bit Standard. We have a 64 bit Lotus client installed to provide the correct ODBC driver which has enabled the test connection direct from the ODBC driver to connect successfully. I'm just at a loss as to how to resolve this issue and get the linked server connecting.
Hi folks,
I have a question, which is that i currently have records of Chinese characters in (Free text) which i need to extract and export into Sql Server 2005 data. How can i automate this using Sql SSIS package. I have photos also need to export to.? If i manage to export out , how can i view it in the table?
Hello,I work for an attorney staff, so basically the whole day they aresending themselves a lot and a lot of papers (Word docs or Excellsheets).We are going to propose them the use of a Document Exchange andDatabase System (like Lotus Notes or Oracle Managment Content,formerly known as Internet File System IFS ) with .NET interfazes.Basically the idea is that instead of sending papers the whole day,they can use a software to check and manage more quickly theirdocuments.We are looking for a system that allows us to manage:- Security- Versioning- Folders- Check-in/Check-out- Workflow- Search and Retrieval- Extensible MetadataMy question is:1) Is there any Microsoft tool who can help us to achieve that(management of codes, dates, text, names of documents- I mean like aDocument Exchange and Database System) with .NET interface?2) Or do we have to built it from scratch?Thank you very much!Jorge
View 4 Replies View RelatedI am using web developer 2008, while connecting to I wanted to fetch data from Lotus notes database file, for this i used notesql connector, while connectiong to notes database i am fetting error
ERROR [42000] [Lotus][ODBC Lotus Notes]Table reference has to be a table name or an outer join escape clause in a FROM clause
I have already checked that database & table name are correct, please help me out
How i can fetch the lotus notes data in my asp.net pages.
I am using web developer 2008, while connecting to I wanted to fetch data from Lotus notes database file, for this i used notesql connector, while connectiong to notes database i am fetting error
ERROR [42000] [Lotus][ODBC Lotus Notes]Table reference has to be a table name or an outer join escape clause in a FROM clause
I have already checked that database & table name are correct, please help me out
How i can fetch the lotus notes data in my asp.net pages.
I was under the impression that SQL 7 could utilize any MAPI compliant email application for
use with the Mail Agent. I have been unable to confirm this. I am using Lotus Notes for company
email and would like to set the Agent to email failure messages to my Lotus Notes mailbox.
Does anyone know anything about this??? And if so, how do I set this up???
DTS to Lotus notes
I must import/export some data from SQL Server to Lotus Notes.
I downloaded and installed NotesSQL ODBC drivers.
I met no problem importing from a Lotus Notes view to an SQL Server table: I used DTS and everything succeded.
But I can't do the reverse process (exporting from SQL Server to Lotus Notes): DTS keeps on giving an error without description and it fails.
Does anybody know how to export a table or a view from SQL Server to Lotus Notes using DTS?
Thanks in advance.
Can any one send me a link to step by step instructions on how to setup SQL mail for lotus notes.Thanks for the help!
Reddy.
I want to use stored procedures to email people on Lotus Notes. Any ideas? TIA George.
View 1 Replies View RelatedHello,
I am using Lotus Notes 5.0 for email and would like to set the MS SQL Server Agent to email failure messages to my Lotus Notes
mailbox. I setup a profile in exchange (after installing Microsoft Messaging) called "Lotus Notes Mail". This profile actually works..
I can send and receive email from microsoft exchange.. But when I go in SQL server agent to setup the mail profile, first of all,
the mail profile drop down list is empty (my profile I created with Microsoft Exchange is not there) so I typed it (Lotus Notes Mail)..
When I click on the TEST button, I get the following error message:
Error 22030: A mapi error {error number 87} occured: MapiLogonEx failed due to mapi error 87: Invalid parameter.
Can someone help?? Does this means that there is something not setup properly in Notes??
Thanks in advance
I am having difficulty trying to get SQLMail to work via Notes4.6.1 as the mail system. Firstly the Notes client is working correctly on my machine but SQLMail will simply not start with the SQL-DMO error 17952, and on trying to configure it I type in my profile name(which has been successfully setup previously through the Ctrl Panel Mail and Fax icon with the Lotus Notes Mail information service selected ) and get the error 21002 RegCreateKeyEx - #5 access is denied - which seems to be something to do with permissions but the SQLServer service is logging in a member of Local Admins group.
Has anyone had this before - there seems to be a painful lack of information about this area generally.
Regards.
David Shaw
I have just started a position at a new company and
want to set up the SQLMail option on each of the
20+ servers. One problem I see is that the e-mail
package here is Lotus Notes. Does anyone have any
experience or information they can pass on to me
regarding SQLMail and Lotus Notes? I would appreciate
any advice.
Thanks!
Toni Eibner
I am currently working on the SQLMail in SQL Server ver. 6.5 and don`t know
how to start. SQL Server is already installed in the NT Server and some
applications are using this. The problem is how to send mail and receive mail from a Lotus Notes ver. 4.5, not a MS Exchange Mail. Can anybody provide me step-by-step approach to do this? The NT server dont MS exchange installed in it.
thnks.
Hi everyone,
I have read every article in the kb and read every message in the newsgroup but still I cannot make SQL mail to work with lotus notes. Can someone describe in details on how to do this?
Any suggestion is greatly appreciated...
Hi,
I am moving data from Lotus notes to SQL and I am getting the below error. [Lotus][ODBC Lotus Notes]Invalid Character.
Does anybody have any idea, if so please let me know asap.
Hey guyz,
I have to import .nsf file into the SQL Server. Can anyone suggest a tool or any method to do that. Thank you.
Regards,
Sri..
I have to create ssi pkg in sql server 2005, that gets data from lotus notes db, into sqlserver 2005. Do i use ODBC With notessql driver or is there an oledb for notes ?
View 6 Replies View RelatedThis is from the previous notes err that i reported.
If Lotus Notes 6 or higher is installed on your machine, you already have everything you need. You can create and work with the Notes database as a set of OLE objects.
Try this code for a start, replacing the dummy strings with your own values as appropriate:
Sub Main()
Dim sess As Object
Dim db As Object
Dim vu As Object
Dim doc As Object
sess = CreateObject("Lotus.NotesSession")
Call sess.Initialize("myPassword")
db = sess.GetDatabase("NotesServerName", "path/DBFileName.nsf")
vu = db.Views(0)
doc = vu.GetFirstDocument
MsgBox(doc.UniversalID)
End Sub
To understand the properties and methods for these objects, and to explore others, check out the LotusScript classes documentation at http://publib-b.boulder.ibm.com/lotus/c2359850.nsf/b3266a3c17f9bb7085256b870069c0a9/16d78c3f9148e7eb8525731b0049e880?OpenDocument. You'll find the syntax is similar to VB, and the descriptions often contain hints about calls from COM and OLE...meaning Microsoft.
My question is from this code above-
What is the sess = CreateObject("Lotus.NotesSession")
what do I need to put here in the notessession?
Has anyone setup Lotus Notes as the email client for SQLMail? I currently have Lotus Notes client installed on dedicated MS SQL Servers but am
having trouble configuring the SQL Mail in order to get it working. Does anyone have any suggestions or instructions on how this is done? I've
researched all of the "Books on line" but they are all slanted to Exchange.
Jim
Hello,I have successfully linked a Lotus Notes server to our SQL Serverdatabase using an ODBC connection.This works fine when wanting to select recordseg openquery(LOTUSNOTES2, 'select * from Person' )The problem I have is when I try to update the record I get an erroregupdate openquery(LOTUSNOTES, 'select * from Person whereMailAddress=''nick.bloor@sandh-ltd.com''' )set JobTitle='Test'Produces the following error==========OLE DB provider 'MSDASQL' reported an error. The provider did not giveany information about the error.OLE DB error trace [OLE/DB Provider 'MSDASQL' IRowset::GetNextRowsreturned 0x80004005: The provider did not give any information aboutthe error.].===========I have tested the ODBC connection using an Access database. The linktables facilities enable me to select what I think should be theprimary key. If I select a primary key then I can use Access to updatethe lotus notes database, however if I don'k select a primary key, thetable is not updateable.I believe that if I can somehow create an index on the linked tablewithin SQL Server, I should be able to update the Lotus Notes databasefrom SQL Server, but I cannot find a way of doing so.As the Lotus Notes software is third party, I cannot actually changeanything on that server.Thanks for any help.RegardsNick Bloor
View 5 Replies View RelatedHello All,
I have opened a new ssis package in which i am trying to connect to lotus notes driver using ODBC Connection. But I am not able to connect it and gives me the following Error below:
Test Connection Failed because of an error in initializing provider. ERROR [S1000] [Lotus] [ODBC Lotus Notes] You are not authorized to perform that operation
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
ERROR [01000] [Microsoft][ODBC Driver Manager] The driver doesn't support the version of ODBC behaviour that the application requested (see SQLSetEnvAttr)
Furthermore, I have created the DSN and configured in SQL 2000 DTS to use the same system dsn without any errors.
My Lotus Notes Driver is Lotus NotesSQLDriver (*.nsf) having the Version Number is 3.02
.
Hi,
I am new to lotus notes.
I have a requirement of transfering data stored in lotus notes to sql server7.0. Can somebody please give any info on how to do this....
All help is appreciated,
gp
Hello All,
I have an SQL 2000 sp4 default instance.
On windows server 2003 sp2 machine that is joined to a domain.
This windows is not the domain controller.
There is a domain account domainuser.
This domain account is a member of the Administrators group locally in the windows.
Also this domain account is a member of SysAdmin fixed server role of the SQL Server instance.
The MSSQLSERVER service is logged in by this domain account.
The SQLSERVERAGENT service is also logged in by this domain account.
Office 2007 (including outlook 2003) is installed on the same windows server machine that SQL resides in.
Lotus notes cloient 6.5 also installed on the same windows server machine that SQL resides in.
In Control Panel - Mail - Profiles: Outlook is the profile used.
In enterprise manager --> Support Services --> SQL Mail --> Properties --> I wrote Outlook in the profile name --> then click "Test" --> I encounter this error: "Error 18025: xp_test_mapi_profile: failed with mail error 0x80040111"
I looked at
http://support.microsoft.com/?id=263556
I could not figured it out
Any help please?
Thanks,
Ven
I have not yet set up SQL2K mail -> Notes, but I see in Q263556 a warning regarding extended MAPI and non-Exchange servers.
Just wondering if anyone is using a SQL2K - Notes MAPI profile -- and if any reliability issues have come up?
Thanks in advance
Here is the different problem which is irretating me alot from last 2 weeks. Could any body suggest on this problem?
I am using the ADO.net providerODBC provider connection for Data Reader source. I don't know why the total records are not populating from source(lotun notes db) to Destination (SQL server 2005). The package is populating only 2000 records out of 10000 records. Please suggest me how to fix this problem. There is no error message is coming for this problem
To extract data from an ODBC source, try the following:
Add an ADO.Net Connection Manager.
Edit the Connection Manager editor and select the ODBC Data Provider
Configure the Connection Manager to use your DSN or connection string
Add a Data Flow Task to your package.
Add a Data Reader Source adapter to your data flow
Edit the Data Reader source adapter to use the ADO.Net connection manager that you added.
Edit the Data Reader source to query for the data you wish to extract.
hth
Donald
Using the steps outlined above as described by Donald Farmer in another post on this forum, I have created an SSIS package which retrieves data from Lotus Notes 6.55. The DSN referenced by the ADO.Net Connection Manager connects to Lotus Notes via the NotesSQL ODBC driver 3.02g.
When I execute the dataflow, data is transferred from Lotus Notes, but the data transfer rate is extremely slow compared to SQL 2000 DTS. In SQL 2000 DTS, we can retrieve just under half a million records from Lotus Notes in about 13 minutes. Utilizing the same DSN on the same machine, SQL 2005 SSIS completes the transfer in about 57 minutes.
Is there anything that can be done to improve the performance in SSIS to retrieve data from Lotus Notes via ADO.Net ODBC?
Thanks!
I created an ODBC to Lotus notes server and database. This ODBC connection works, however, when I put the ODBC into SSIS and test the connection my visual studio 2010 crashes and has to restart. Is there a fix I am missing on my VS2010? Or am I doing something wrong in my SSIS project?
View 2 Replies View RelatedHi all,
For a flexible import in our SQL database (SQL 2000 on a Windows 2003 server) we use OPENROWSET. In our development on a local instance of SQL Server, we have no problems with a connection to Accesss. However, when we deploy the same code with the same Access database to our test server we get an error indicating to use a Linked Server.
We set all neccessary parameters for allowing ad hoc queries and encounter no problems with queries to different SQL Servers and Oracle databases. Also, when we execute the query to the Access database on a local disk from a job, it works fine. Run the same query to an Access database on a fileshare from a job results in an error.
How come the OPENROWSET selection cannot be run from the query analyser or to an Access database on a fileshare? What security settings are blokking?
We use the following query:
SELECT top 10 *
FROM
OPENROWSET(
'Microsoft.Jet.OLEDB.4.0',
'C:Testdata est.mdb';
'admin';'',Table1)
Thanks for all your help,
Nils
MS SQL Server 2005 Express.
I'm trying to connect to Access DB (having System Database) via OPENROWSET.
Everything (client, server and access file) is on local drive.
This works (ODBC):
select *
from openrowset('MSDASQL',
'Driver={Microsoft Access Driver (*.mdb)};Dbq=C:MBK.mdb;SystemDB=C:SECURED.MDW;Uid=me;Pwd=pw;',
'select * from [Mbk]')
This works (Jet.OLEDB):
select *
from opendatasource('Microsoft.Jet.OLEDB.4.0',
'Data Source=C:MBK.mdb;Jet OLEDBystem Database=C:SECURED.MDW;User ID=me;Password=pw;')
...Mbk
This won't work (Jet.OLEDB):
select *
from openrowset('Microsoft.Jet.OLEDB.4.0',
'MS Access;Database=C:MBK.mdb;System Database=C:SECURED.MDW;UID=me;PWD=pw;',
'select * from [Mbk]')
saying ... "Wrong argument".
This won't work (Jet.OLEDB):
select *
from openrowset('Microsoft.Jet.OLEDB.4.0',
'MS Access;Database=C:MBK.mdb;SystemDB=C:SECURED.MDW;UID=me;PWD=pw;',
'select * from [Mbk]')
saying ... "There are no permissions for usage of object C:MBK.mdb". It seems that it simply hasn't found system database file C:SECURED.MDW, cause when I change SystemDB=C:SECURED.MDW to something like BlahBlahBlah=C:SECURED.MDW the same message is shown.
So, what is the right syntax for stating System Database in OPENROWSET query string? And why 'System Database' won't work?
Thank you.
Hello Everyone,
I am trying to configure SQL MAIL and SQL SERVER AGENT MAIL feature of SQL SERVER 2000 with Lotus Domino server (Not Microsoft Exchange). Every thing goes fine and it works also. Problem starts when I try to restart SQL Agent Service. It hangs and the status of service remain 'starting'...
Also the size of the sqlagent service process goes upto 12MB. I don't understand why? Can any one help me in solving this problem.
I am using Windows 2000 Advanced Server and SQL Server 2000 with SP3. Domino client is R5.0.5 and Outlook 2000.
Scenario:
I have installed SQL Express 2005 and I want to create a new DB using sqlcmd.
I am running a command like: sqlcmd -i file.ini (I am logged like Administrator of PC)
the content of the file.ini is:
-- Get the SQL Server data path
DECLARE @data_path nvarchar(256);
SET @data_path = 'c:Program FilesMyTestdatabase'
-- execute the CREATE DATABASE statement
EXECUTE ('CREATE DATABASE DataCollection ON
( NAME = DC_dat,
FILENAME = '''+ @data_path + 'DC.mdf'',
SIZE = 10,
MAXSIZE = 50,
FILEGROWTH = 5 )
LOG ON
( NAME = DC_log,
FILENAME = '''+ @data_path + 'DClog.ldf'',
SIZE = 5MB,
MAXSIZE = 25MB,
FILEGROWTH = 5MB )'
) ;
GO
I obtain this error:
Msg 1802, Level 16, State 4, Server TESTQ5SQLEXPRESS, Line 1
CREATE DATABASE failed. Some file names listed could not be created. Check related errors.
Msg 5123, Level 16, State 1, Server TESTQ5SQLEXPRESS, Line 1
CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file 'c:Program FilesMyTestdatabaseDC.mdf'.
If I change the security of directory database (I add "modify" permission to Users windows group) the error disappear.
I am logged like Administrator... why is it necessary to change directory permission?
Hi ,I have been trying to connect to access database from SQL Server 7.0.This machine is having 7.0 as a default instance and 2000 as a namedinstance.Also the machine doesn't have access installed and Microsoft.Jet.4.0is of version SP8 for Windows 2000The access database is password protected.I have tried all, OPENROWSET, OPENDATASOURCE, linked server, and ODBC.These are some of the commands which I have tried but gives followingerror.*******************************************SELECT a.*FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0','F:Geerimainilling.mdb';'bhagath';'bhagath', Employee)AS aServer: Msg 7303, Level 16, State 2, Line 1Could not initialize data source object of OLE DB provider'Microsoft.Jet.OLEDB.4.0'.[OLE/DB provider returned message: Cannot start your application. Theworkgroup information file is missing or opened exclusively by anotheruser.]**********************************************SELECT * FROM OPENDATASOURCE ('Microsoft.Jet.OLEDB.4.0','DataSource="F:Geerimainilling.mdb";User ID=bhagath;Password=bhagath;JetOLEDB:SystemDatabase="c:WINNTsystem32System.mdw"')...EmployeeServer: Msg 7303, Level 16, State 2, Line 1Could not initialize data source object of OLE DB provider'Microsoft.Jet.OLEDB.4.0'.[OLE/DB provider returned message: Cannot start your application. Theworkgroup information file is missing or opened exclusively by anotheruser.]**********************************************SELECT *FROM OPENROWSET('MSDASQL','Driver={Microsoft Access Driver(*.mdb)};Dbq=F:Geerimainilling.mdb;Uid=bhagath; pwd=bhagath','SELECT*FROM Employee')Server: Msg 7399, Level 16, State 1, Line 1OLE DB provider 'MSDASQL' reported an error.[OLE/DB provider returned message: [Microsoft][ODBC Driver Manager]Data source name not found and no default driver specified]**********************************************I have tried all possible combinations but most of the time I come upwith Error 7399.In case if anyone has some other syntax and successful with that,please let me knowRegards,Mahesh
View 1 Replies View Related