473,396 Members | 1,995 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,396 software developers and data experts.

using sa with SQL 2005 problem??

I un-installed SQL 2000 developer's edition and installed SQL 2005 developer's
edition in mixed mode security with the exact same sa password. I then
attached my old databases.

Even thought the web server is located on the same machine, I can no longer us
the sa user/pass in my connection strings.

The Open fails with what seems like a lack of permssion.

Oddly enough, I can connect to SQL Server using the SQL Server Management Studio
using the sa user/pass (so sa certainly does have enough permissions)

1. How can I get the sa to work? I'll probably move everything to integrated
security logins, but I've got a lot of code that would need to be changed.

2. When using an integrated connection string:

server=localhost;Integrated Security=SSPI;Initial Catalog=testDb

I had to give ASP.NET owner privileges for the database or I'd get failures on
EXECUTE. This seems a step in the wrong direction. None of my 'Pro' level
books on ASP.NET seem to mention the proper setup of security settings for the
databases. What is the correct way to give the ASP.NET account enough
permissions to perform most database tasks? Or, should I setup a separate
user/pass just for SQL Security.
--
Thanks in advance, Les Caudle
Mar 31 '06 #1
2 1245
I strongly encourage you to take the oppurtunity to fix your security hole.
Using sa, even on dev boxes, is really bad practice. I usually create a
login per application and give it dbo access to the target database.Of
course, the best approach is to use stored procedures and only give
the login/user permissions to those, but I'm just not there yet. Baby
steps...
"Les Caudle" <ve**@tiredofspam.com> wrote in message
news:du********************************@4ax.com...
I un-installed SQL 2000 developer's edition and installed SQL 2005 developer's
edition in mixed mode security with the exact same sa password. I then
attached my old databases.

Even thought the web server is located on the same machine, I can no longer us
the sa user/pass in my connection strings.

The Open fails with what seems like a lack of permssion.

Oddly enough, I can connect to SQL Server using the SQL Server Management Studio using the sa user/pass (so sa certainly does have enough permissions)

1. How can I get the sa to work? I'll probably move everything to integrated
security logins, but I've got a lot of code that would need to be changed.

2. When using an integrated connection string:

server=localhost;Integrated Security=SSPI;Initial Catalog=testDb

I had to give ASP.NET owner privileges for the database or I'd get failures on
EXECUTE. This seems a step in the wrong direction. None of my 'Pro' level
books on ASP.NET seem to mention the proper setup of security settings for the
databases. What is the correct way to give the ASP.NET account enough
permissions to perform most database tasks? Or, should I setup a separate
user/pass just for SQL Security.
--
Thanks in advance, Les Caudle

Mar 31 '06 #2
Show your connection string when you use a login.

http://www.connectionstrings.com/

Mar 31 '06 #3

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

Similar topics

0
by: fred | last post by:
it is same code using mappoint webservice which could run in .net 2003.but couldn't run in .net 2005. see the attached code. ***************** Sub RenderMap(ByVal myPanHorizontalAdjustment As...
1
by: Igor | last post by:
Hi everyone! I have a problem with calling .NET assembly dll function from VB6 program. I created an assembly in Visual studio .Net 2003 with framework v1.1.4322 installed, exported type...
4
by: mpietrzyk | last post by:
Hi guys I'm having a nasty problem with bulk copying into a table that has unique identifier column. I'm coding on C++, using ODBC driver. I'm coping from a file containing UID description...
2
by: nmsreddi | last post by:
Hello I am using visualstudio 2005 ,i have done many windows applications using c# but new to website creation ,as per my knowledge i think there is no need of iis for running websites done in...
4
by: ngrTerry | last post by:
We have a PC with Windows Vista installed on it and are having problems installing the Developer Edition of Sql Server 2005 on it. The installation completes but some components will not install. ...
8
by: Daniele Piccinini | last post by:
Hi all, In my vc++ 2005 dialog based application i need to use a comunication activex component in a secondary thread: CFINSAxEFS* pNewAx = new CFINSAxEFS(); if ( !pNewAx->Create( NULL,...
3
by: Med | last post by:
Hi, I use Visual C# Express 2005 and Visual Web Developer Express 2005. In my Visual C# Express 2005 Solution, I have following two class library projects: _ DataAccess (Namespace name:...
7
by: sa6113 | last post by:
I want to connect form a windows machine to a Linux one using SSH (I use Paramiko) and simply copy a file to Linux machine. Would you please help me how should I start? Is there any useful code? ...
0
by: sa6113 | last post by:
I want to connect to a Windows machine in my network , using ssh, I use paramiko but I have problem in authentication, would you please help me? 1- I have installed freeSSHD in server machine? Is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.