Not sure what you mean "behind the scenes"? Do you mean what packages
are transmitted at the TDS level? I just think of it this way:
SQL Server has been enhanced to natively inform a client app that the
password we tried to connect with need changing. The protocol between
the client and the server has been enhanced to allow for us to send in
the old and the new password to the database engine so that the
database engine can implement the password change. The API's has
fortunately been upgraded to expose this new functionality in the TDS
protocol.
Beyond above I guess one can plug in a network sniffer which
understands TDS and look at the packages submitted...
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"Tom Baxter" <(E-Mail Removed)> wrote in message
news:%233$(E-Mail Removed)...
> The SqlConnection.ChangePassword() method did the trick. I would
> still like to know what's going on behind the scenes though.
>
>
> "Tibor Karaszi" <(E-Mail Removed)>
> wrote in message news:%(E-Mail Removed)...
>> There are functionality in ADO.NET 2.0 to specify the new password
>> before you logged in.
>>
>> For instance, search the SQL Server Books Online for 18488 and you
>> will find how to do it in ODBC/OLEDB:
>> http://msdn.microsoft.com/en-us/library/ms131024.aspx
>>
>> As for .NET, you are probably looking for the .ChangePassword
>> method for the SqlConnection object. At least suggested by
>> http://my.safaribooksonline.com/0321.../ch13lev1sec12
>> And here's a VS 2008 documentation URL:
>> ms-help://MS.VSCC.v90/MS.MSDNQTR.v90.en/fxref_system.data/html/2c745192-9129-c150-1897-78fd3acab48c.htm
>