Viewing 15 posts - 361 through 375 (of 1,048 total)
You can't say this as a stupid qurstion, may be there are many other users who faced this type of problem and didn't find a solution for this.....
Main thing is...
July 18, 2013 at 9:05 am
OTF (7/18/2013)
kapil_kk (7/18/2013)
CREATE PROCEDURE sp_MyProcedure
@Record_ID Varchar(12),
@OtherKey_ID Int,
@Comments VARCHAR(MAX) = NULL
AS
BEGIN
DECLARE @DateParameter...
July 18, 2013 at 8:56 am
You can use below queries to find the index present on a specific table:
sp_helpindex 'table_name'
OR
select i.name, i.type_desc
from sys.indexes I
join sys.tables o ON i.object_id = o.object_id
WHERE o.name = 'table_name'
July 18, 2013 at 5:22 am
It will be better if you used Transaction in your stored procedure itself.......
July 18, 2013 at 4:57 am
kapil_kk (7/18/2013)
CREATE PROCEDURE sp_MyProcedure
@Record_ID Varchar(12),
@OtherKey_ID Int,
@Comments VARCHAR(MAX) = NULL
AS
BEGIN
DECLARE @DateParameter DATE...
July 18, 2013 at 4:54 am
Instead of specifying it in parameter list you can assign GETDATE() to local variable inside stored procedure body:
CREATE PROCEDURE sp_MyProcedure
@Record_ID Varchar(12),
@OtherKey_ID Int,
@Comments VARCHAR(MAX) = NULL
AS
BEGIN
DECLARE @DateParameter DATE
SET...
July 18, 2013 at 4:54 am
ChrisM@Work (7/18/2013)
kapil_kk (7/18/2013)
If you specify alias with TOP in delete it will always gives you an error:e.g.
DELETE TOP (2)
FROM tbl1 t
Your syntax is incorrect:
DELETE TOP (2) t
FROM tbl1 t
delete...
July 18, 2013 at 1:11 am
If you specify alias with TOP in delete it will always gives you an error:
e.g.
DELETE TOP (2)
FROM tbl1 t
July 18, 2013 at 12:47 am
Can you please some sample data that you are trying to insert?
July 17, 2013 at 10:27 am
can you please provide some sample data with resultant output.......
July 17, 2013 at 7:02 am
Carlo Romagnano (7/17/2013)
kapil_kk (7/16/2013)
as per the explanation- The stmt "return (select 5)" gives error because in a batch RETURN with integer_expression is not admitted (note: PARENTHESIS cast the SELECT to...
July 17, 2013 at 2:58 am
DevilsChest (7/17/2013)
kapil_kk (7/16/2013)
But we use integer expression with RETURN in a stored procedure and it works...
I am confused that will integer expression works only in stored procedure and not in...
July 17, 2013 at 2:39 am
GilaMonster (7/16/2013)
Or you could just remove the nolock hints entirely and remove any chance of their nasty side effects causing you problems.See - http://blogs.msdn.com/b/davidlean/archive/2009/04/06/sql-server-nolock-hint-other-poor-ideas.aspx
Gail,
Can you please tell me that when...
July 17, 2013 at 1:27 am
Viewing 15 posts - 361 through 375 (of 1,048 total)