Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

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 ASP Free Forums Sponsor:
  #1  
Old May 23rd, 2005, 05:21 PM
cmurph1624 cmurph1624 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 60 cmurph1624 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 40 m 45 sec
Reputation Power: 5
Connecting to SQL Server

I posted this in the Microsoft Access forum and they mentioned that this forum might be a better place for this question.


I have an access database that I connect to an sql server database. When I use my computer I can connect to the sql server, however when I connect to the server using someone elses machine I get the connection failed error. Currently I am the only one given permission to access the data folder that the sql server data sits in. I'm sure if we just allowed everyone to have access to the Sql Server data files the program would work fine, I would prefer not to do this. Is there a way to create the dsn file and store a password and username with the file? This way no matter what computer I open the file on it would still work without having to give permissions to each user to access the data folder. Also this is a third party program that I am trying to access their data. And the system adminstrator had to add me as a system admin on the server machine for me to access the data. I'm trying to find out if perhaps there is a possibilty that the SQL server may not be set up correctly or maybe I just don't flat out understand how to connect to a database and I need to do some more research in understanding it.

Thank you for any help

Reply With Quote
  #2  
Old May 23rd, 2005, 05:29 PM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
ASP Free God 14th Plane (11500 - 11999 posts)
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,776 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 8 h 27 m 42 sec
Reputation Power: 470
What exactly is the error?
How is it connecting to the database?
Can you post the ConnectionString?

Easiest thing to do is create a new Login in SQL Server, then use that logins Username/Password in the connectionstring.

Reply With Quote
  #3  
Old May 23rd, 2005, 05:57 PM
cmurph1624 cmurph1624 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 60 cmurph1624 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 40 m 45 sec
Reputation Power: 5
The error that I get is Connection failed:

SQLState:'28000'
SQL Server Error: 18456
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'username'

I'm using a DSN connection that I have saved on a shared drive that everone can have access to.

the connection string is:
ODBC;Description=junk3;DRIVER=SQL Server;SERVER=SERVER\TIMEFORCE;APP=Microsoft Office 2003;WSID=username;DATABASE=qqest;Network=DBMSSOCN ;Trusted_Connection=Yes;TABLE=dbo.Job

I pulled the connection string off one of the tables in the properties section in design view.

I agree with creating a new user, however I don't know how to maintain the username and password across multiple systems with different user names and passwords.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > Connecting to SQL Server


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 1 hosted by Hostway
Stay green...Green IT