Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Setting up ODBC programmatically

Reply
Thread Tools Display Modes

Setting up ODBC programmatically

 
 
googo man
Guest
Posts: n/a

 
      04-12-2011
Hi
I setup an ODBC programmatically as follows. The problem is that i
need to replace the line where it says "UID"="ops$" with the
following:
"UID"="ops$" + %username%

it doesn't work. Any idea what i can do to append the username?
thanks


reg import file1.txt


---- File1.txt ---
Windows Registry Editor Version 5.00


[HKEY_CURRENT_USER\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources]
"Oracle"="Microsoft ODBC for Oracle"


[HKEY_CURRENT_USER\SOFTWARE\ODBC\ODBC.INI\Oracle]
"Driver"="C:\\WINDOWS\\System32\\MSORCL32.dll"
"Description"="Oracle ODBC to access oclprd"
"UID"="ops$"
"Server"="oclprd"




 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
windows update does not work renzo riboli Windows Update 5 04-21-2011 07:52 AM
Using 32 bit ODBC driver in x64? Bill Cohagan Windows 64 Bit 10 09-20-2010 04:37 PM
No network drive mapping after joining Active Directory ? Patrick Active Directory 29 05-05-2010 12:21 PM
"WindowsUpdate_80073715" Brenda Windows Update 4 03-03-2010 12:46 AM
Programmatically setting user picture Alex Lomas Windows Vista Administration 7 12-31-2007 04:32 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59