473,395 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

SQL Server 2000 ODBC related issues...

I have a customer who has a SQL Server 2000 DB and we are needing to
get to this DB through ODBC. I had setup a DSN last week that
connected fine to this DB, and was preparing to build a script to
manage transfers of data to and from one table to another.

The then began to have troubles with their DB Backup (this is not at
all related to the issue at hand). The problem they claim was that the
"sa" was needing to have certain roles applied to it that were not part
of it's default properties. My understanding is that the "sa" is the
King of the Kingdom sotospeak, and has all rights, permissions, role
capabilities, etc...

To make a long story short she tried to apply the write and read roles
to the "sa" and it would not allow for this to be applied. She then
applied a password to the "sa" account (previous it did not have one
and was set to blank) and upon doing this she then removed the password
and set it back to blank.

Since she made these changes we have not been able to connect to her DB
via our DSN. When we get to the point of telling the DSN to use SQL
Authentication, and apply the sa account for use with a blank password
- it comes back with an error similar to "database is not available or
password is incorrect".

Has anyone had this problem before, and if so is there any simple
resolve? Something other than the customer having to restore a previous
backup of the DB?
Much thanks in advance...

Jul 23 '05 #1
3 1496
It sounds to me as if the sa password is not blank - have you tried
connecting from osql.exe or Query Analyzer to confirm this? If you also
get a login error in those tools using a blank password, then it's
almost certain that the account does have a password set.

But in any case, the sa account should always have a password set, and
it should not be used for applications - see "System Administrator (sa)
Login" in Books Online, which says that sa is for backwards
compatibility only.

You're correct that there is no permissions checking for sa, as it has
full permissions already, and this is why it's too dangerous to use it
for applications. Even DBAs don't normally need to use it - they can
use another login which has been added to the sysadmin role.

Probably the best solution is to create a new login for your
application, and give it only the permissions it needs - see "Managing
Security", sp_addlogin, sp_grantdbaccess, GRANT and "Using Ownership
Chains" in Books Online to get an idea of how permissions work.

Simon

Jul 23 '05 #2
Simon thank you for the quick response. Unfortunately the application
in question has to use "sa" (there is no way around this). I will have
her run osql.exe and Query Analyser to see if she gets the same
response. Let me ask you this though - if she is able to get into
either or both of those methods with the "sa" having a blank password -
what then would be the reason why a User or System DSN would be still
having trouble?

Any thoughts on that would be great, but I will check for now with
these other 2 apps.

Jul 23 '05 #3
(rw******@hotmail.com) writes:
Simon thank you for the quick response. Unfortunately the application
in question has to use "sa" (there is no way around this).
It sound to me that you had the connection details in a DSN? In such,
isn't it as easy as changing the DSN?
I will have her run osql.exe and Query Analyser to see if she gets the
same response. Let me ask you this though - if she is able to get into
either or both of those methods with the "sa" having a blank password -
what then would be the reason why a User or System DSN would be still
having trouble?


I will have to admit that I never fully understood DSNs, and they were
always a hassle. Most applications today do not use DSNs.

One thing to try is a password of one single space.

In any case, I would strongly recommend that you do not have a blank
password for sa.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andrew J Durstewitz | last post by:
I've noticed a few times yesterday I recived this error on my web server: SQL Server does not exist or access denied. I know for sure the server is running and at the time was under a load...
6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
4
by: Guinness Mann | last post by:
I'm running SQL Server 2K (sp3a) and when I run the following query (in query analyzer): SELECT id, LEN(ForeignWord) as Length, ForeignWord FROM Words WHERE Language ='Thai' and...
0
by: AlessanBar | last post by:
Hello Friends !! I have a strange problem, and I need to know what would be the source of this. I have a laptop computer with the following configuration: Pentium III Brand : Toshiba Speed :...
5
by: grondaia | last post by:
Here's my situation: I have an ODBC DSN setup for Timberline Data (An accounting package that uses pervasive.sql) on my sql box. I set up a linked server using the supplied timberline odbc...
10
by: B Moor | last post by:
Host PC: Win SBS 2003 with 2.6 GHz processor and 1GB RAM SQL Server 2000 sp3 (or latest).MS Office 2k3 I have the access 2k3 front end running on server (this may get changed) and all was well...
1
by: lesperancer | last post by:
currently using access97 to link to sql7 tables sql7 is running on NT4 and terminal server 2000 in the process of upgrading hardware and software to latest stable versions citrix - windows 2003...
1
by: GinaM1 | last post by:
Hi All, I am working with a software package that logs messages via ODBC to a remote SQL Server 2005 Service Pack 2 database. The server OS is Server 2003 Service Pack 1. The software that we are...
6
by: musicloverlch | last post by:
I've been told by my IT people to set up a connection to the SQL Server using OLE instead of ODBC. Apparently it is faster. I have no idea how to even begin. Does anyone have an example of...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.