473,573 Members | 3,145 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MSDASQL to NOTESSQL (odbc)

Don

Within an SQL Script is it possible to send a SQLDisconnect
command? (server is MSDE)

I have used sp_dropserver, sp_droplinkedsr vlogin
and do not get a SQLDisconnect.

Each time I run the script a new nsql32.exe process loads up and they
accumulate.
use Sales
Go
sp_dropserver 'M', 'Droplogins'
go
Exec sp_addlinkedser ver 'M', ' ', 'MSDASQL', NULL, NULL,
'DRIVER=Lotus NotesSQL DRIVER
(*.nsf);Databas e=C:\eUROPE\Ins trument_Base.ns f;Server=Local; UserName=XXXXXX XXXXXXX;Encrypt PWD=XXXXXXX;'
go
select * from M...MainForm where description= 'Described Here'
Would like disconnect when this is done.......

Jul 23 '05 #1
2 3717
Don (dm*****@rocket mail.com) writes:
Within an SQL Script is it possible to send a SQLDisconnect
command? (server is MSDE)

I have used sp_dropserver, sp_droplinkedsr vlogin
and do not get a SQLDisconnect.
That only drops the linked server from the system catalog, and will
not affect any connections use.
Each time I run the script a new nsql32.exe process loads up and they
accumulate.

use Sales
Go
sp_dropserver 'M', 'Droplogins'
go
Exec sp_addlinkedser ver 'M', ' ', 'MSDASQL', NULL, NULL,
'DRIVER=Lotus NotesSQL DRIVER
(*.nsf);Databas e=C:\eUROPE\Ins trument_Base.ns f;Server=Local; UserName=XXXXXX X
XXXXXX;EncryptP WD=XXXXXXX;' go
select * from M...MainForm where description= 'Described Here'
Would like disconnect when this is done.......


If you stop fiddling with sp_addlinkedser ver and sp_dropserver, SQL
Server may use an existing connection instead of opening a new one. I
believe the connections are kept around as a means of pooling to avoid
expensive connection sequences.
--
Erland Sommarskog, SQL Server MVP, es****@sommarsk og.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 23 '05 #2
Don


Thanks for the link!

I still wish there was a way to do a solid/controlled disconnect.

Thanks for the feedback.....

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2233
by: Marco Aschwanden | last post by:
Hi - Win2000 - Python 2.3.3 - py2exe 0.5.0 - eGenix Comercial & Base Package I am developing an app using mxODBC. On the home page they say http://www.egenix.com/files/python/mxODBC.html#Hints
6
6758
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used the SQL Profile to watch the T-SQL-Command which Access ( who creates the commands?) creates and noticed:
1
7457
by: Kevin | last post by:
Help, I am running a pass through query to oracle from SQL server 2000 as follows; select * from openquery(nbsp, 'select * from FND_FLEX_VALUES') I have run this query through both DTS and the query analyzer and get the foloowing error;
4
5641
by: Andreas Lauffer | last post by:
Can anyone tell me advantages / disadvantages of DataDirect Server Wire ODBC-driver? Any experiences? What about redistribution? Andreas Lauffer, easySoft. GmbH, Germany
0
12023
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in '/CinemaBookingSystem' Application. -------------------------------------------------------------------------------- ERROR General error Unable to open registry...
2
5215
by: Prasad Patil | last post by:
Hi, I am attempting to connect to a Lotus Notes database (.nsf) with VS 20003.NET and ODBC connectivity. It is working fine if I create a Windows application but the application fails if it is a web (ASP.NET) application: I get the following error ERROR Specified driver could not be loaded due to system error 1114 (Lotus NotesSQL Driver...
2
3493
by: bigHairy | last post by:
Hello - hope this is in the right group: We have just started with linked servers and have successfully created a view on SQL Server linked to a Progress database. I can query this view happily in Query Analyzer. I have created an ASP.NET application to display this view in a datagrid but I get the following error: ...
1
3156
by: Grzegorz Meus | last post by:
Hi, I have some MSDASQL database files and I don't know this database at all. Can I get from somewhere SQL standard for this database? Greg. --
1
4115
by: user | last post by:
Anyone tried this combination? Im not able to get Dominoes set up properly. I'm getting a lil pissed. There isn't much documentation on Notes. Any kind souls can give some advice? Thanks
0
7686
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7773
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8061
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6411
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5584
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5289
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2197
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1297
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1038
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.