SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 .NET Inside SQL Server (2005)
 how to find flow of my program flow
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

vamsidhar
Starting Member

India
1 Posts

Posted - 06/11/2012 :  04:17:05  Show Profile  Reply with Quote
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
Flowing Fount of Yak Knowledge

5155 Posts

Posted - 06/11/2012 :  06:37:47  Show Profile  Reply with Quote
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
Flowing Fount of Yak Knowledge

United Kingdom
3451 Posts

Posted - 06/11/2012 :  07:08:08  Show Profile  Visit Transact Charlie's Homepage  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.25 seconds. Powered By: Snitz Forums 2000