#94005 - 2002-10-03 06:30 PM
How do I script the creation of a User Data Source Name?
|
Lee Wilmott
Starting to like KiXtart
Registered: 2002-09-17
Posts: 106
Loc: Bristol, UK
|
I need to configure a "User Data Source Name" on a number of machines of varying platforms (Win2K, NT4, WinXP).
I was hoping to script this with Kix within our Logon Script.
I've had a look at TechNet - albeit a quick look and I cannot see a way of doing this.
I've had a look at my registry and I can see the Data Source that I manually configured. (However, my password is missing).
Does anyone know whether or not I can automate this process?
Many thanks,
Lee
|
|
Top
|
|
|
|
#94006 - 2002-10-03 08:06 PM
Re: How do I script the creation of a User Data Source Name?
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
I found a script that will create a DSN.. could be modified for your purpose, I believe (although it's in VBScript.)
http://www.swynk.com/winscript/SCRIPT_AutoDSN.asp
Brian
|
|
Top
|
|
|
|
#94007 - 2002-10-03 10:13 PM
Re: How do I script the creation of a User Data Source Name?
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
Hey Lee - hows it going ... I think Les and Jens and Kyder are masters of the DSN ... heres a link ... is this what your after ?
Topic: WinNT ODBC
|
|
Top
|
|
|
|
#94008 - 2002-10-03 10:15 PM
Re: How do I script the creation of a User Data Source Name?
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Lee,
What Data Source are you connecting to? Visual FoxPro, Access, Oracle, SQL?
Thanks!
Kent
|
|
Top
|
|
|
|
#94009 - 2002-10-05 12:15 AM
Re: How do I script the creation of a User Data Source Name?
|
Lee Wilmott
Starting to like KiXtart
Registered: 2002-09-17
Posts: 106
Loc: Bristol, UK
|
Thanks...All your comments are certainly putting me on the correct road for a successful implementation!
Damn it! As Kent so rightly pointed out...I forgot to say that I am using an "SQL Server"...Sorry!
I think that the database that we need to "connect" to will not use Windows Authentication, so I will need to specify a username and password for the database. Is it possible to script this?
Maybe the idea of automatically creating a User DSN would be useful for many people - Would anyone like to see it native to Kix?
Lee
Shawn...Yeah fine thanks - you? Things are pretty hectic here...We are going live with a database on Monday so I have to create hundreds of UDSN's; which as always I haven't got time for!
|
|
Top
|
|
|
|
#94010 - 2002-10-04 03:23 PM
Re: How do I script the creation of a User Data Source Name?
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
Just curious.. why are you using User DSNs and not system DSNs?
Brian
|
|
Top
|
|
|
|
#94011 - 2002-10-04 04:03 PM
Re: How do I script the creation of a User Data Source Name?
|
Lee Wilmott
Starting to like KiXtart
Registered: 2002-09-17
Posts: 106
Loc: Bristol, UK
|
Brian,
Only because users can configure User DSN's and not System DSN's, and I don't fancy visiting every machine to configure a System DSN.
I thought if I create a User DSN then I could simply place it into a logon script.
What do you think?
Lee
|
|
Top
|
|
|
|
#94013 - 2002-10-04 06:32 PM
Re: How do I script the creation of a User Data Source Name?
|
Lee Wilmott
Starting to like KiXtart
Registered: 2002-09-17
Posts: 106
Loc: Bristol, UK
|
ah ha! Jens, that's what I said to our Database "guru".
We [will be - on Monday] are using an MS Access front end (ie. The Access database has all the forms and reports) and the data will be stored on a SQL Server.
He told me that each and every machine will require an DSN configured - and I said "you must be ******* joking!".
I thought you could put the "on-the-fly" code into the MS Access database contained within a "Startup" macro.
Is he talking ****?
Lee
|
|
Top
|
|
|
|
#94015 - 2002-10-04 06:57 PM
Re: How do I script the creation of a User Data Source Name?
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
You might want to check out the UDF forum for ideas as well.. there is a lot of info in there on connecting to SQL via KiXtart.
Brian
|
|
Top
|
|
|
|
#94017 - 2002-10-04 10:31 PM
Re: How do I script the creation of a User Data Source Name?
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
DSN-Less is the way to fly..
DBQ Baby!!
Kent
|
|
Top
|
|
|
|
#94018 - 2002-10-10 06:05 PM
Re: How do I script the creation of a User Data Source Name?
|
Lee Wilmott
Starting to like KiXtart
Registered: 2002-09-17
Posts: 106
Loc: Bristol, UK
|
Just a quick thank you!
All your comments helped in finding a solution to our problem.
Because of all the suggestions I have had, our database "guru" is putting in the changes I requested!
Thank you once again.
Lee
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 581 anonymous users online.
|
|
|