[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 281
  • Last Modified:

How do I write a SQLDataSource Update Command to the Screen for Troubleshooting?

Hi,
I've got an sds update command that is not updating the underlying db nor is it throwing any errors. I would like to print the update string to the screen after it generates so I can see why the update is failing. The command is in sds located in the aspx file.
Thanks.
0
MCallas
Asked:
MCallas
  • 2
1 Solution
 
gopaltaydeCommented:
If I understood the question correctly then you want to print the update commad on the page for troubleshooting. Can we try Response.Write(Sqldatasource1.UpdateCommand.ToString()); or just check with the sql server profiler whats going wrong.
0
 
MCallasAuthor Commented:
gopaltayde,
Yes, you understood my question correctly. I tried the Response.Write(sdsCurrentTraining.UpdateCommand.ToString()); but it literally wrote "Response.Write(sdsCurrentTraining.UpdateCommand.ToString());" to the screen.
How do I check with the sql server profiler? I don't have Performance Tools under my SQL Server 2008 menu.
Thanks.
Michael
0
 
MCallasAuthor Commented:
No sense in beating a dead horse here. Thanks anyway.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now