Viewing 15 posts - 31 through 45 (of 52 total)
This is the error log
2015-03-06 16:32:25.49 spid52 DBCC TRACEON 1222, server process ID (SPID) 52. This is an informational message only; no user action is...
March 6, 2015 at 3:39 pm
I enabled Trace and got into deadlock. Can you please advise where I can see the graph/log?
March 6, 2015 at 3:34 pm
Never mind posting. It seems I need to declare NVARCHAR to fix the issue;
DECLARE @sql NVARCHAR(MAX)
SELECT @sql = STUFF((SELECT ';EXEC ' + StoredProcedureName + ''...
March 5, 2015 at 1:18 pm
Right now, I have created SP and used sqlcmd to dump to file. But, when I open in text file, it shows up lots of empty space as it...
February 26, 2015 at 1:53 pm
I'm planning to create a stored procedure which dumps to a file in the specified path. It will be scheduled as job on the server.
February 26, 2015 at 1:48 pm
Yes, it is capable of handling multiple rows.
February 6, 2015 at 4:53 pm
I guess you might need to do something like this:
SELECT * ,
ROW_NUMBER() OVER ( ORDER BY ID ) RowNum
FROM ...
February 5, 2015 at 11:55 am
Thanks Igor for your valuable suggestions.
February 5, 2015 at 11:00 am
I have created a table type matching my output of stored procedure and am able to store the data. I'm still interested to see if there will be any...
February 5, 2015 at 10:24 am
Thanks a lot!! I didn't expect you giving me complete code 🙂
PS: Hope you took Aspirin!
February 5, 2015 at 7:48 am
I have one add on question. Not sure if it needs to be a different topic.
Assume I have data like
Name Type Value
Sarath Age 33
Sarath Id 333
Sarath Id 123
Mahesh Age 22
mahesh...
February 4, 2015 at 2:42 pm
Thanks for the reply. Yes, you are right. I did using dynamic @sql by creating columns on the fly. Do you think it is the...
February 4, 2015 at 2:30 pm
it's really wonderful... I can see that my CTE has incorrect joins!! Thanks a lot...
April 23, 2014 at 5:43 am
CREATE TABLE [dbo].[User](
[UserId] [int] NOT NULL,
[Active] [bit] NOT NULL
) ON [PRIMARY]
CREATE TABLE [dbo].[UserReporting](
[UserId] [int] NOT NULL,
[ReportingUserId] [int] NULL
) ON [PRIMARY]
INSERT INTO [dbo].[User] ([UserId] ,[Active]) VALUES (1,1)
INSERT INTO [dbo].[User] ([UserId] ,[Active])...
April 23, 2014 at 4:39 am
Thanks for your reply,
Though I am not proficient in SQL, I have tried to do the below steps.
I have selected master database and executed the below one:
EXEC sp_refreshsqlmodule 'mySP'
Output:
Msg 2812,...
September 14, 2009 at 5:58 am
Viewing 15 posts - 31 through 45 (of 52 total)