Viewing 15 posts - 16 through 30 (of 77 total)
today I created indexed view but it also did not help, still zooms around 30 seconds. So I have released this approach, Still waiting for any revolutionized idea to bring...
May 14, 2014 at 2:24 am
Please find the attached query plan.:cool:
May 13, 2014 at 9:00 am
Hi Megha,
I have applied that also, But result is same. I am just going to share execution plan as need to modify table and field name will take some time...
May 13, 2014 at 8:27 am
As I said temp table is consumed in another procedure in which complex business logic is written and based on the data in this temp table various things happen in...
May 13, 2014 at 6:59 am
I have stored procedure in which this simple query is being used to fetch records into temp table then consuming that table in another procedure and doing some grouping and...
May 13, 2014 at 6:41 am
What you would like to suggest if I create a view of tables including columns used in select query and then create unique clustered index on PartitionID of first table..
May 13, 2014 at 5:46 am
Sorry, I cannot share execution plan..else I would like to help with whatever possible like any info on this further. I dropped the primary key clustered index and create a...
May 12, 2014 at 9:26 am
Table 1
--------------------------------------------------------
CREATE TABLE [dbo].pp(
[PartitionID] [bigint] NOT NULL,
PID [int] NOT NULL,
[Date] [date] NOT NULL,
CID [int] NOT NULL,
PPID [int] NOT NULL,
LE [decimal](38, 8) NOT NULL,
SE [decimal](38, 8) NOT NULL,
GE [decimal](38, 8) NOT...
May 12, 2014 at 8:40 am
in fact title of the Question is answer :w00t: :hehe:
August 13, 2013 at 8:01 am
AND ANSWER IS
IF OBJECT_ID('test_parent_table') IS NOT NULL
DROP TABLE test_parent_table
CREATE TABLE test_parent_table
(idINT,
nameVARCHAR(30)
)
GO
IF OBJECT_ID('DataError') IS NOT NULL
DROP TABLE DataError
CREATE TABLE DataError
(ErrorNoINT,
ErrorDescVARCHAR(1000),
ErrorProcVARCHAR(100),
ErrorLineNumberINT,
ErrorDateTimeDATETIME2(7)
)
GO
IF OBJECT_ID('ThrowError') IS NOT NULL
DROP PROCEDURE ThrowError
GO
CREATE PROCEDURE ThrowError
AS
BEGIN
DECLARE@errorNoINT,
@errorDescVARCHAR(1000),
@errorProcVARCHAR(100),
@errorLineNumberINT,
@errorDateTimeDATETIME2(7)
SELECT@errorNo=ERROR_NUMBER(),
@errorDesc=ERROR_MESSAGE(),
@errorProc=ERROR_PROCEDURE(),
@errorLineNumber=ERROR_LINE(),
@errorDateTime=GETDATE()
DECLARE @id INT...
May 12, 2013 at 7:45 am
Kindly check whether teh sql service account has permission to execute the cmd commands and the user who is executing xp_cmdshell have granted permission to execute this procedure ..
---
Ashok
May 9, 2012 at 12:43 am
Yes, Great, I found a solution for it.
that is :-
exec msdb.dbo.sp_send_dbmail
@recipients = xyz.abc@abc.com',
@subject = 'hello Yo Yo Honey Singh ',
@file_attachments='E:\temp\Blue_hills.jpg',
@body= 'Suno Mere Veero Ajj Meri...
May 2, 2012 at 10:15 pm
Viewing 15 posts - 16 through 30 (of 77 total)