Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 .NET Inside SQL Server (2005)
 how to find flow of my program flow

Author  Topic 

vamsidhar
Starting Member

1 Post

Posted - 2012-06-11 : 04:17:05
hi
i am new trainee in net.
i am able to insert a normal employee throw admin login.i can show his record in database.but if i update any details throw "normal emp",it not showing the admin.my lead told me to go throw database stored procedure.can any one give me any hint how can go throw...


Thanks with Regards
Vamsidhar

sunitabeck
Master Smack Fu Yak Hacker

5155 Posts

Posted - 2012-06-11 : 06:37:47
quote:
Originally posted by vamsidhar

hi
i am new trainee in net.
i am able to insert a normal employee throw admin login.i can show his record in database.but if i update any details throw "normal emp",it not showing the admin.my lead told me to go throw database stored procedure.can any one give me any hint how can go throw...


Thanks with Regards
Vamsidhar

First thing you want to do is find the stored procedure(s) that are invoked. In your .Net code look for "SqlCommand", "CommandType.StoredProcedure" etc. to find the code and identify the stored proc name(s).

Once you know the stored procedure names, connect to the server using SQL Server Management Studio (SSMS) in SSMS's object explorer, look for those stored proc(s). You will find them under DatabaseName -> Programmability -> Stored Procedures.

When you find the stored procs in the object explorer, right-click on it and select Script Stored Procedure as -> Create To -> New Query editor window. That will let you see the code for the stored proc.

Look through the code and if you see parts that don't seem to make sense, post back, or look up MSDN documentation.
Go to Top of Page

Transact Charlie
Master Smack Fu Yak Hacker

3451 Posts

Posted - 2012-06-11 : 07:08:08
Another thing you can do is to use sql server profiler.

http://msdn.microsoft.com/en-us/library/ms181091.aspx

Set up a trace on your dev database. Then run your code and see exactly what sql happens. You can then verify that against the code in your Data access layer.

There are many different event classes you can track.

Transact Charlie
Msg 3903, Level 16, State 1, Line 1736:
The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION

http://nosqlsolution.blogspot.co.uk/
Go to Top of Page
   

- Advertisement -