Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old July 9th, 2003, 08:00 PM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
Discussion: ado and new odbc hotness

I'm not exactly the hippest of programmers, but it's time i catch up with this ADO object.

I've generally always just gone into data sources, dns services i think (second tab) and created an odbc thingy there. And in the obj.open "odbc name", "SQL login", "password"

I've been seeing recently more and more the string taking place of the odbc and all the other, seeing as how it selects db and uid and password is all in the string. What is the significance of this? avoiding using the ODBC data source tool? So a company can have a centralized method of accessing X database? Cause it's more complicated so it looks cooler? I was setting up a connection for a page that had the server on teh local machine and kept getting loging failure, or not found issues... quickly became frustrated and resorted to my gui ways.

I tried searching on the google but that came up with me getting frustrated and no answers. well... anyways, that's my piece, anyone else have some wise words to shed some light on this subject?

Reply With Quote
  #2  
Old July 10th, 2003, 08:56 AM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 31 m 56 sec
Reputation Power: 8
I am assuming that you are referring to DSN-less connection. The ODBC driver is still present but the benefit is that the connection can be dynamically created and portable to all machines where the driver is present without having to create a new datasource each time. Are you having difficulties getting the string to work or creating the string? What programming language are you using?

Reply With Quote
  #3  
Old July 17th, 2003, 04:39 PM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
Yea, i see that DSNless word a lot pertaining to this.

I'm using vbscript right now mainly, hence i always see your replies on that forum.

yea, i was having problems getting it to run, more or less just messing around with it. I'd get it to work with a constant password, and then when i tried to use a session cookie for login and password it'd start messing up and couldn't figure out why, i gave up, i was just curious. Cause it seems that if you wanted to update the database, say move it, rename it, something. You'd have to go into each program, and change that string. Unless each program was pointing to some centrally located string located somewhere, in which case i don't see why doing it the old way i'm used to wouldn't be easier, seems like higher maintenance....

I just use it, i can't say i really understand it, cause i've used a function in PHP before (written by some guy in the company WAAAY better than me obviously) where it'd make a connection to the DB, and then any time you wanted to query again, it'd return the link rather than make a new connection, I think that may be something what you're talking about, but i've never really understood it.... just used it *shrug* So i can't say i REALLY understand what you're talking about with portable/dynamic connection.

Reply With Quote
  #4  
Old July 17th, 2003, 08:15 PM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 31 m 56 sec
Reputation Power: 8
Do you have a question or issue or test you are trying to get working? One of the easiest ways to learn how to create a dsn-less connection is by creating data connection in VB's data environment viewing the string and modifying it until you can construct your own.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Discussion: ado and new odbc hotness


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway