473,396 Members | 2,021 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Getting ConnectionString from Server Explorer's UIHierarhyItem

What I want is simply to get connectionString related to currently selected
DataConnection from ServerExplorer.

When I select item from Server Explorer => right click => Properties,
Property window displays that type of current node is IDispDataVwDataConn. I
found this interface in VS7DataProject... and then tried to use it by
pointing && casting to currently selected DataConnection (which I got as
UIHierarhyItem) but it won't work (I tried UIHierarhyItem.Object also of
course).

Any help on this subject is extremly welcome... and if I haven't presented
my question well just mail me and I'll try to explain better what I want ;)

Tnx in advance...
Nov 16 '05 #1
1 2163
I have just the same problem you have and I'm completely lost...If I try to debug, I always can see tha myUIHierarchyItem.Object is an __COMObject and I can't find a wayto convert it to an IDispDataVwDataConn or even ask if it is aIDispDataVwDataConn or IDispDataVwNode or whatever.

Does anyone can kindly tell us how to get that?

Thanks a lot for your time and knowledge
What I want is simply to get connectionString related tocurrently selected
DataConnection from ServerExplorer.

When I select item from Server Explorer => right click =>Properties,
Property window displays that type of current node isIDispDataVwDataConn. I
found this interface in VS7DataProject... and then tried to useit by
pointing && casting to currently selected DataConnection (whichI got as
UIHierarhyItem) but it won't work (I triedUIHierarhyItem.Object also of
course).

Any help on this subject is extremly welcome... and if Ihaven't presented
my question well just mail me and I'll try to explain betterwhat I want ;)

Tnx in advance...

User submitted from AEWNET (http://www.aewnet.com/)
Nov 16 '05 #2

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

Similar topics

1
by: Francesco | last post by:
Hi guys, I need a way to ask the user for a ConnectionString for the OleDbConnection object. I can see in Visual Studio, that in Server Explorer I can add a data connection, and a dialog is...
2
by: G. Dean Blake | last post by:
We currently distribute a web application to serveral servers for a customer. We have been putting the connection string in our web.config file under <appSettings> <add...
8
by: Ben R. | last post by:
Hi all, This is a multipart question. I’ve got an asp.net site that contains an access database. Previously, I would debug by making changes and uploading to my host. Now, I’d like to be...
1
by: TeeCo | last post by:
Hi folks. I'm trying to change the location of the Access mdb file I connect to using OleDb and am having trouble. I'm using Visual C# 2005 and the default values I use for the ConnectionString...
3
by: Jim Andersen | last post by:
Hi, I would appreciate if someone could explain this behaviour, and maybe offer a better solution. I have been working with the GridView control. And SqlDataSource. It works great if I do:...
0
by: mateo | last post by:
So here i've made a typed dataset in vs2005 by picking some tables in the server explorer. It generated a typed dataset with everything inside it ok. Now i've decided to put this newly created...
3
by: Arpan | last post by:
I recently installed SQL Server 2005 (Management Studio Express) along with SQL Server 2005 Express (Configuration Manager) in my Win2K Pro m/c & use IIS 5.0 to run ASPX projects. I could add my...
3
by: h4xPace | last post by:
I am building a MySQL query application, and I have run into a small snag. MySQL has released a set of classes that extend the .NET framework base data classes (command, connection, etc), and I am...
0
by: TG | last post by:
Hi! Once again I have hit a brick wall here. I have a combobox in which the user types the server name and then clicks on button 'CONNECT' to populate the next combobox which contains all the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...

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.