G
Guest
I am currently pretty much teaching myself ASP.NET 1.1 since I can't get
classes through my work in order to migrate our web application over from ASP
3.0. We will be using VB.NET.
My problem is the SqlConnection. We have some heavy duty security wrapped up
between our web app and the database, and integral to this is the user
accounts in the SQL database. For those functions that require interaction or
input into the system, sprocs pull the current username from the
SUSER_SNAME() variable and match it to the appropriate roles.
I am just learning the SqlConnection, and have noticed that the only
SUSER_SNAME() I get is ASPNET. Even when I put Uid=uuuuu;Pwd=xxxxx in the
connection string it still comes back ASPNET. I figure this is default, but
if I can't get the actual username from the connection string I am passing in
the sproc, I will have to retool almost every single sproc that requires
elevated access in order to do the migration, and that is alot of sprocs.
Any ideas where I am going wrong? The connection string is standard, it
works fine except for the Uid (I have even tried User id=).
Thanks in advance.
Jim Hawley
classes through my work in order to migrate our web application over from ASP
3.0. We will be using VB.NET.
My problem is the SqlConnection. We have some heavy duty security wrapped up
between our web app and the database, and integral to this is the user
accounts in the SQL database. For those functions that require interaction or
input into the system, sprocs pull the current username from the
SUSER_SNAME() variable and match it to the appropriate roles.
I am just learning the SqlConnection, and have noticed that the only
SUSER_SNAME() I get is ASPNET. Even when I put Uid=uuuuu;Pwd=xxxxx in the
connection string it still comes back ASPNET. I figure this is default, but
if I can't get the actual username from the connection string I am passing in
the sproc, I will have to retool almost every single sproc that requires
elevated access in order to do the migration, and that is alot of sprocs.
Any ideas where I am going wrong? The connection string is standard, it
works fine except for the Uid (I have even tried User id=).
Thanks in advance.
Jim Hawley