I want to know if there is a way of using both SQL raiserror and retrieving the selected result in C#. ExecuteReader() in C# will throw an exception when raiserror occurs, but I still want to use the
Is it possible to DETECT whether the current stored procedure is being called by an INSERT-EXEC statement?
I have a stored procedure, PROC, which receives some parameters. If one of them, @ID, is not null, a given stored procedure, PROC_A, must be executed. Otherwise, PROC_B must be executed. The problem i
SQL Server Query Notifications is a great tool, but it doesn\'t seem built to scale very well. Every application that wants/needs notifications has to keep an op开发者_如何学Cen connection to the data
I have a complex query inside a stored proc. Within the proc itself, I would like to judge how long things are taking and do a RAISERROR if I think a 30-second threshhold has been passed (which will f
I am trying to isolate an issue (that resembles the topic in stackoverflow.com/q/483787/537284). The issue involves a stored procedure and occurs \"randomly\" once a week. To try and reproduce the iss
Okay, so I am trying to raise an error in T-SQL (SQL-2000).The base Sql code looks like this . . . declare @TmsStringchar(10),
开发者_如何学GoI have a lengthy stored procedure in which I would like to do something like the following:
I wrote a T-SQL query which includes a test for valid EmployeeNo. If the EmployeeNo is not valid, I do the following:
I have a SQL stored procedure which under some situations will return a result of -1 if it fails, but also returns a message via the RAISERROR command e.g.: