Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Win API / June 2007



Tip: Looking for answers? Try searching our database.

Changing System DSN Name

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Raj - 20 Jun 2007 11:44 GMT
Hello,

How can I change the name of the SystemDSN (Ex:
HKEY_LOCAL_MACHINE\SOFTWARE|ODBC\ODBC.INI\TESTDSN to be renamed as
SAMPLEDSN)

Thank you,

Regards,

Raj.
Mark Yudkin - 20 Jun 2007 17:58 GMT
Since you're asking on a VB6 WinApi forum, I assume you're asking about the
API. Look up SQLConfigDataSource in MSDN. The attributes argument is a
string (name=value;...), so this is easily handled in VB6 (c.f. KB171146).

You can also hack the registry. See KB184608 for sample code. I have not
tried this code.

> Hello,
>
[quoted text clipped - 7 lines]
>
> Raj.
Raj - 21 Jun 2007 09:36 GMT
In fact I did programming to add/delete DSN.

But what I am looking for is to change the name of the DSN alone not
add/delete which already I am familiar with.

Thank you,

Regards,

Raj.
> Since you're asking on a VB6 WinApi forum, I assume you're asking about
> the API. Look up SQLConfigDataSource in MSDN. The attributes argument is a
[quoted text clipped - 14 lines]
>>
>> Raj.
Mark Yudkin - 24 Jun 2007 08:30 GMT
Did you look up SQLConfigDataSource in MSDN?

> In fact I did programming to add/delete DSN.
>
[quoted text clipped - 25 lines]
>>>
>>> Raj.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.