If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > DNS or DNS-less connections?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-18-03, 13:12
mvargasp mvargasp is offline
Registered User
 
Join Date: Aug 2002
Posts: 25
Exclamation DNS or DNS-less connections?

Hi all,

To connect a database which one of the following should I use:

"Driver={SQL Server};DSN=;SERVER=" & SERVER &
";UID=" & UID & ";PWD="
& PWD & ";DATABASE=" & DATABASE & ";"


"Provider=SQLOLEDB.1;Persist Security
Info=False;AutoTranslate=no;User ID=" & UID &
";Password=" & PWD
& ";Initial Catalog=" & DATABASE & ";Data
Source=" & SERVER

Knowing that the application is client/server, that users have W95, W98, W2K and that the database is in SQL Server 7.0 SP3.

Thanks in advance.

God Bless.
Reply With Quote
  #2 (permalink)  
Old 02-19-03, 12:44
Memnoch1207 Memnoch1207 is offline
Registered User
 
Join Date: Jan 2003
Location: Midwest
Posts: 138
use the first one
Reply With Quote
  #3 (permalink)  
Old 02-19-03, 14:33
mvargasp mvargasp is offline
Registered User
 
Join Date: Aug 2002
Posts: 25
Why?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On