Viewing 8 posts - 1 through 8 (of 8 total)
For full information about primary key
please view the below link
August 1, 2013 at 12:41 pm
Please check if this link helps
http://www.dotnetbites.com/find-user-modified-table-stored-procedure
August 1, 2013 at 12:23 pm
create proc sp_temp
@count INT = NULL OUTPUT
as
begin
declare @Result varchar(5)
select @count = COUNT(*) from #temptable
end
Try this out
August 1, 2013 at 5:55 am
You can use an output parameter to get the result
create proc sp_temp
@count INT OUTPUT = NULL
as
begin
declare @Result varchar(5)
select @count = COUNT(*) from #temptable
end
Now your @count variable will have...
August 1, 2013 at 5:11 am
I have restored the database successfully without the log file
September 10, 2012 at 9:17 am
Actually, this is not the one i expected. i have to write a XQuery to get the XML content inside the Author element/Node
I tried this Query;
SELECT
Author = T.item.query('Author')
FROM @XML.nodes('root/Books/Book') AS...
February 27, 2012 at 7:47 pm
Can you try this
CREATE TABLE #Temp(Word VARCHAR(100))
INSERT INTO #Temp VALUES('TR#ABC#10/12/2011')
INSERT INTO #Temp VALUES('TR#XYZ#12/12/2011')
INSERT INTO #Temp VALUES('TR#ABC#10/12/2011')
SELECT REPLACE(MyWords, LEFT(MyWords, CHARINDEX('#', MyWords)), '') AS Word FROM
(
SELECT REPLACE(Word, RIGHT(Word, CHARINDEX('#', REVERSE(Word))),...
February 27, 2012 at 10:56 am
Please check this Query,
CREATE TABLE #ClaCases (ClaCaseID INT,ReceiverID int, IncidentDate Date )
GO
INSERT INTO #ClaCases VALUES (1234,80451,'2008-11-21')
INSERT INTO #ClaCases VALUES (2442,84244,'2010-03-23')
INSERT INTO #ClaCases VALUES (6774,45676,'2008-06-14')
GO
CREATE TABLE #AccPayments (PaymentStatus INT,ReceiverID int, DueDate...
January 2, 2012 at 3:44 am
Viewing 8 posts - 1 through 8 (of 8 total)