Viewing 12 posts - 16 through 27 (of 27 total)
Post it in the SSIS fourm to get better response.
http://qa.sqlservercentral.com/Forums/Forum148-1.aspx
..
October 8, 2009 at 5:46 am
Declare @date Datetime
Set @date=getdate()--Or give any date u want
SELECT deqs.last_execution_time AS [Time], dest.TEXT AS [Query]
FROM sys.dm_exec_query_stats AS deqs
CROSS APPLY sys.dm_exec_sql_text(deqs.sql_handle) AS dest
Where dateadd(day, datediff(day, 0, deqs.last_execution_time), 0)=dateadd(day, datediff(day, 0,...
..
October 7, 2009 at 6:13 am
SELECT deqs.last_execution_time AS [Time], dest.TEXT AS [Query]
FROM sys.dm_exec_query_stats AS deqs
CROSS APPLY sys.dm_exec_sql_text(deqs.sql_handle) AS dest
ORDER BY deqs.last_execution_time DESC
..
October 7, 2009 at 5:49 am
But i am not insert single row i inserting multiple rows at a time.
So only i am using cursor.
You need not use a cursor for inserting multiple rows at...
..
October 7, 2009 at 12:47 am
I think you have not checked the code I posted. I had removed the variable assignment.
Again why do you use a temporory table and a cursor for a simple...
..
October 7, 2009 at 12:24 am
It will work...
declare @code_1 varchar(4000)
declare @code_2 varchar(4000)
declare @code_3 varchar(100)
select @code_1 = replicate('A',4000)
select @code_2 = replicate('B',4000)
Select @code_3='Select '
Exec (@code_3+ ''''+ @code_1 + '''' + ''''+ @code_2 +...
..
October 6, 2009 at 11:21 pm
/*
You cannot assign Values to a variable like @featureoperationmapid=FeatureUserTypeMapping.FK_FeatureOperationMapID,@userid=Users.PK_UserID in an Insert Statement.
*/
CReate Proc YourProcName(@emailid varchar(50)) as
BEGIN
DECLARE @userid int
DECLARE @usertypeid int
DECLARE @userpermissionmap varchar(100)
DECLARE @featureoperationmapid int
--Query to get...
..
October 6, 2009 at 11:11 pm
SQL Server Supports two types of Authentication one is SQL server Authentication and another is windows integrated authentication. The Blank columns in NT User name means those are the sessions...
..
October 1, 2009 at 4:15 am
I meant to say
ALTER TABLE [dbo].[tblProgFundingYearCategory] DROP CONSTRAINT [FK_tblProgFundingYearCategory_tblProgFundingCategory]
..
October 1, 2009 at 1:17 am
Yes. The DTS is built in tool with SQL server Database and you need not install anything more. But in the Dropdown list, you may not see any proper Provider...
..
September 30, 2009 at 6:10 am
You are going to truncate the Table tblProgFundingCategory. So you need to drop the foreign keys of some other tables those are having references on the Primary key of your...
..
September 30, 2009 at 5:22 am
CREATE TRIGGER delUsers ON db_users AFTER DELETE
AS
BEGIN
SET NOCOUNT ON
Declare
@User_name varchar(100),
@body varchar(100)
Select @User_name=usrname from deleted
Set @body='User ' +@User_name+ ' Deleted'
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'Mail Profile...
..
May 6, 2009 at 3:35 am
Viewing 12 posts - 16 through 27 (of 27 total)