Viewing 9 posts - 1 through 9 (of 9 total)
Very strange the code now looks like this as you replied first time
(SELECT Id FROM
OPENXML(@idoc, '/Ids/Id', 2)
WITH( Id int '.')) AS s
ON f.FileId = s.Id
I made some changes but undo...
January 21, 2015 at 8:48 am
Yes the isolation level is default.
Great.
Thanks Gila
January 21, 2015 at 1:46 am
IF exists (SELECT * FROM sysobjects WHERE id = object_id(N'[dbo].[spBackupAllDatabases]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
DROP PROCEDURE [dbo].spBackupAllDatabases
GO
CREATE PROCEDURE spBackupAllDatabases
@Path varchar(128) ,
@Path1 varchar(128)
AS
BEGIN TRY
IF OBJECT_ID ('DatabaseBackup') IS NOT NULL
DROP TABLE...
January 16, 2015 at 7:56 am
Thanks a lot for the reply.
Here is what I've end up with
DECLARE @sql nvarchar(max)
if object_id('tempdb..#Result','U') IS not NULL
DROP TABLE #Result
CREATE TABLE #Result (DBName SYSNAME, UserName SYSNAME, AssociatedDBRole...
January 15, 2015 at 2:43 am
I think a solution without hard coding or using a 'select count(*)' statement or a 'if clause' doesn't exist??
I mean if @top parameter is passed return the @top rows if...
December 22, 2014 at 6:41 am
Is there another way to do this without using the Select count statement because for a large table and a large amount of data that is retrieve, it will run...
December 19, 2014 at 3:05 pm
Thank you both. With your answers combined I got the desire result.
First in the parm declaration for the sp I initialize the @top with 0 and then in the sp...
December 19, 2014 at 6:07 am
Well I need the @top parameter so when I call the procedure if the @top is not supplied to return all the rows, else return the @top rows so I...
December 19, 2014 at 5:53 am
Viewing 9 posts - 1 through 9 (of 9 total)