MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

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:
  #1  
Old December 5th, 2004, 08:45 PM
jiska78 jiska78 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 5 jiska78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Cool Connecting to SQL Server from ASP

Hey guys..

Bit of a complicated situation here - let me try and explain as best I can..

We are not using Active directory and as such do not have access to Kerberos authentication methods. What I need to do is connect to an SQL (2000) database using ASP 3.0 - I have setup an account on SQL Server with read access to two tables (and no password). Just to complicate the issue even further, the IIS server and the SQL server reside on different machines on the network.

Can anyone give me some advice on connection strings that will work within this environment as i'm not having much luck at present.

Thankyou in advance

Reply With Quote
  #2  
Old December 10th, 2004, 07:12 AM
drbhoneydew drbhoneydew is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Harrogate, UK
Posts: 15 drbhoneydew User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You'll need to create SQL logins on the database server with appropriate permissions.

To generate a connection string, the easiest way is:
  • create a new text document
  • rename it to conn.udl (so long as the extension is .udl it doesn't matter what you call it) You will need to switch "hide extensions for known filetypes" off if you haven't already (in explorer: tools > folder options > view)
  • conn.udl's icon should have changed. If it hasn't, see above for showing the full extension. Double click on it.
  • You now have a nice gui to play with - select an appropriate provider and fill in the other bits as needed. Test the connection. If you've done it right you should get a popup box saying test connection succeeded.
  • Click OK
  • Open up conn.udl in notepad or your favourite text editor. One connection string ready made...

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > Connecting to SQL Server from ASP


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
Stay green...Green IT