473,937 Members | 21,912 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

oops...changed the SA password

I had a web page that worked very nicely until I changed the SA
password.
The page used data widgets for connectivity to SQL server.
I changed the password in the Server Explorer link, but the code gets
to the .fill method and gives me an error that SA can't login.
I've now spent several hours futzing with the widgets, reconnecting to
the database which tests OK, and I still can't get past the .fill.
It's clear that MS buries code somewhere that you don't have access to
and hides the login identity there. I'm on the verge of starting from
scratch to rebuild the app, but that seems a bit excessive.

Any thoughts?

Nov 19 '05 #1
8 1334
So, why don't you change the SA password
back to what it was previously ?

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"oaksong" <oa*****@hotmai l.com> wrote in message
news:11******** *************@g 49g2000cwa.goog legroups.com...
I had a web page that worked very nicely until I changed the SA
password.
The page used data widgets for connectivity to SQL server.
I changed the password in the Server Explorer link, but the code gets
to the .fill method and gives me an error that SA can't login.
I've now spent several hours futzing with the widgets, reconnecting to
the database which tests OK, and I still can't get past the .fill.
It's clear that MS buries code somewhere that you don't have access to
and hides the login identity there. I'm on the verge of starting from
scratch to rebuild the app, but that seems a bit excessive.

Any thoughts?

Nov 19 '05 #2
Switch to the code view and see the generated code. It's likely hardcoded
there. Depending on how you have done, you might have to do that in multiple
pages(search/replace will likely help).

Else details such as ASP.NET Version and the exact "widget" you used may
help...

--
Patrice

"oaksong" <oa*****@hotmai l.com> a écrit dans le message de
news:11******** *************@g 49g2000cwa.goog legroups.com...
I had a web page that worked very nicely until I changed the SA
password.
The page used data widgets for connectivity to SQL server.
I changed the password in the Server Explorer link, but the code gets
to the .fill method and gives me an error that SA can't login.
I've now spent several hours futzing with the widgets, reconnecting to
the database which tests OK, and I still can't get past the .fill.
It's clear that MS buries code somewhere that you don't have access to
and hides the login identity there. I'm on the verge of starting from
scratch to rebuild the app, but that seems a bit excessive.

Any thoughts?

Nov 19 '05 #3
"oaksong" <oa*****@hotmai l.com> wrote in message
news:11******** *************@g 49g2000cwa.goog legroups.com...
I had a web page that worked very nicely until I changed the SA
password.


There are several issues here:

1) In the first instance, you need to get your system back up and working,
so change the sa password back to what it was previously, as Juan
mentioned...

2) Create a specific SQL Server user (or role) for your ASP.NET app to use,
which has no more permissions than it actually needs.

3) Amend your SQL Connection string(s) to connect using the newly created
user or role.

4) Change the SA password again.

5) Verify that your ASP.NET app still works - if not, return to 1)

6) Fire immediately the person who initially set up the system to connect to
SQL Server with the SA password...
Nov 19 '05 #4
Thanks for all the comments.

Juan: The short answer is I didn't want the particular password to be
viewable in certain situations, which it's not worthwhile going into
here.

Patrice: I went through all the generated code, and in fact reset that
SQL connection to Network, and was still seeing an error based on SA,
which was no longer in the code.

Mark: I'll fire myself right now. :) It's not a production system. I am
playing around with a concept and was trying to set up some test
situations. I'm actually rather glad this happened earlier rather than
later. And I am going to create a seperate login for the system, since
it appears that I will have to recreate it from scratch. I was looking
at the SDK (VS 2003) File menu and there does not appear to be any
method of deleting a project or solution, which puts me in a small
bind. I suspect I will be forced to go and edit the registry to remove
the project from the startup. Hopefully that will let me start over.
Overall I'm very unhappy with some of the behavior of the SDK, but
that's not unusual. I frequently find the Microsoft misses a lot of
simple things.

Nov 19 '05 #5
> I frequently find the Microsoft misses a lot of
simple things.
ROFLMOD. That statement is just dripping with irony...

--

Kevin Spencer
Microsoft MVP
..Net Developer
A watched clock never boils.

"oaksong" <oa*****@hotmai l.com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. . Thanks for all the comments.

Juan: The short answer is I didn't want the particular password to be
viewable in certain situations, which it's not worthwhile going into
here.

Patrice: I went through all the generated code, and in fact reset that
SQL connection to Network, and was still seeing an error based on SA,
which was no longer in the code.

Mark: I'll fire myself right now. :) It's not a production system. I am
playing around with a concept and was trying to set up some test
situations. I'm actually rather glad this happened earlier rather than
later. And I am going to create a seperate login for the system, since
it appears that I will have to recreate it from scratch. I was looking
at the SDK (VS 2003) File menu and there does not appear to be any
method of deleting a project or solution, which puts me in a small
bind. I suspect I will be forced to go and edit the registry to remove
the project from the startup. Hopefully that will let me start over.
Overall I'm very unhappy with some of the behavior of the SDK, but
that's not unusual. I frequently find the Microsoft misses a lot of
simple things.

Nov 19 '05 #6
If you don't want the password to be viewable, then you
should setup Windows authentication for SQL Server
and create a Login for the Machinename\ASP NET account
if you are using IIS 5, or Machinename\NET WORK AUTHORITY
if you are using IIS 6.0.

Add that login to the Users for the databases you need to access,
and give it the appropiated permissions.

Then, using "integrated security" in your connection string
will shield all passwords from prying eyes.

re:
there does not appear to be any method of deleting a project or solution
Just backup the files if you want to save them, delete the virtual
directory using the Internet Service Manager, and delete the project
directory from wherever VS 2003 is saving the files.

The project will disappear from the VS 2003 list of projects.

You can later create a new project and use "add existing files"
to test your code file by file.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"oaksong" <oa*****@hotmai l.com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. . Thanks for all the comments.

Juan: The short answer is I didn't want the particular password to be
viewable in certain situations, which it's not worthwhile going into
here. Patrice: I went through all the generated code, and in fact reset that
SQL connection to Network, and was still seeing an error based on SA,
which was no longer in the code.

Mark: I'll fire myself right now. :) It's not a production system. I am
playing around with a concept and was trying to set up some test
situations. I'm actually rather glad this happened earlier rather than
later. And I am going to create a seperate login for the system, since
it appears that I will have to recreate it from scratch. I was looking
at the SDK (VS 2003) File menu and there does not appear to be any
method of deleting a project or solution, which puts me in a small
bind. I suspect I will be forced to go and edit the registry to remove
the project from the startup. Hopefully that will let me start over.
Overall I'm very unhappy with some of the behavior of the SDK, but
that's not unusual. I frequently find the Microsoft misses a lot of
simple things.

Nov 19 '05 #7
Have you looked inside the web.config file? Most of the drag and drop
operations that need a database connection will stash away an entry in
the <connectionStri ngs> settings of web.config. You can encrypt these
settings with the aspnet_regiis tool easily, if you want to make them
less visible.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 2 Nov 2005 07:55:11 -0800, "oaksong" <oa*****@hotmai l.com> wrote:
I had a web page that worked very nicely until I changed the SA
password.
The page used data widgets for connectivity to SQL server.
I changed the password in the Server Explorer link, but the code gets
to the .fill method and gives me an error that SA can't login.
I've now spent several hours futzing with the widgets, reconnecting to
the database which tests OK, and I still can't get past the .fill.
It's clear that MS buries code somewhere that you don't have access to
and hides the login identity there. I'm on the verge of starting from
scratch to rebuild the app, but that seems a bit excessive.

Any thoughts?


Nov 19 '05 #8
And the answer is:

I wasn't paying attention to the little message that said the build
failed. And I didn't connect that with the DLL not getting updated.
Which meant the current code was not getting changed and the DLL still
had 'old' code.

I've since figured out why the build was failing and, having remedied
that, and have relatively more functionality than previously. I did
start fresh. I also had some painful moments when the DESIGN screen
would refresh and lose either all my widgets or all my data connection
elements, which I would then get to recreate. Only Bill knows what
caused that behavior, maybe.

Again, I'm glad some of you have found this amusing and thanks to all
of you for the follow up comments.

----------
Chris

Nov 19 '05 #9

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

Similar topics

0
1300
by: NotGiven | last post by:
I read several web sites and O'Reilly's book on MySQL about securing the system tables. I removed several users and, as advised inthe book and web sites, changed the user "root" to another name with another password. I removed the site name as a host but kept the IP address. Now when I use phpMySdmin to get back in, it let's me past the login popup BUT it gives me the message:
1
1349
by: Sam Kong | last post by:
Hello! We are running MS SQLServer 7.0 with ASP on Win 2k Server. Today suddenly the Web server couldn't connect to the DB Server because the password for sa was wrong. We found out that the password was changed. Is it some kind of hacking thing or just normal password expiration? The same thing happended several month ago.
1
1357
by: kashifsulemani | last post by:
Dear All I have a problem ,as i created the new user its password became changed. I logon SQL Server as >> Server Name: localhost >> Server option : window athentication
1
1311
by: BrianDH | last post by:
Hi We are using NetworkCredential with Active Dir to validate the user. The problem we are having is, when the user is required to change his password at logon (every 90 days) the NetworkCredential call fails. Its seems to take about an hour before the password propagates and starts to work with the NC call. Is there a work around?
19
8315
by: Taras_96 | last post by:
Hi everyone, How do you detect that a form element has been changed? This thread: http://groups.google.com/group/comp.lang.javascript/browse_thread/thread/9ae1c9d419264380/125a82c9be127790?lnk=st&q=checking+html+form++(updated+OR+edited+OR+changed)&rnum=28&hl=en#125a82c9be127790 suggests that you attach onChange event handlers to every form element, and when the handler fires you update a global 'isChanged' variable. This technique...
12
1908
by: Jim Langston | last post by:
I want to change a class's methods at run time. I'm making a game and want NPC objects to have different methods depending on a game designer. That is, they may decide that this mob should be able to fly for movement, be agressivie for combat, etc... Rather than a bunch of switch statements or if..else I was thinking it would be good to be able to plug in functions/methods to the class. Well, there's the old C way, which I've done...
0
937
by: praveeniyer | last post by:
Hi Friends.. Does changing the OS (Windows 2000) password affect the connectivity between the application server and the database server? I had changed the application server's and database server's OS password. The udl refused to connect. Can anyone explain me what went wrong? Finally, I had to revert to the old password for the udl to work. Praveen
7
19713
by: rekhasc | last post by:
plz help me to write the code to change the current password and to update the new password: i have written the code but its giving error,my code is Private Function pass() As Boolean Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim sql As String cn.Open = "provider=microsoft.jet.OLEDB.4.0;Data source=F:\icici\database.mdb;Persist security info=true"
6
2950
by: jbguernsey | last post by:
for: There was no reference to CDO in the References so selected CDO. Code didn't work (CDONTS.email unrecognised). read There was no reference to CDONTS in the References so selected CDO. Code didn't work (CDONTS.email unrecognised).
0
10125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9962
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
11280
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9850
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8207
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4899
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4441
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3495
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.