Viewing 15 posts - 736 through 750 (of 1,124 total)
You need to specify "Variable" as SQLSourceType property of the Execute SQL task...
--Ramesh
January 5, 2009 at 7:46 am
UPDATE A
SET A.LocationCode = B.LocationCode
FROM tableA A INNER JOIN tableB B ON A.id = B.id
--Ramesh
July 27, 2008 at 6:13 am
Though the solution provided thegreatsamarth is correct, but i doesn't recommend it usng cursors, as this is row-by-row process and would probably be slow in execution...
And my solution is absolutely...
--Ramesh
July 21, 2008 at 4:50 am
Check for the system table sys.fn_my_permissions OR sys.fn_builtin_permissions
SELECT * FROM sys.fn_my_permissions( NULL,'database' )
--Ramesh
July 21, 2008 at 4:20 am
; WITH Customers
AS
(
SELECT ROW_NUMBER() OVER( PARTITION BY AccountNum ORDER BY AccountNum ) AS RowNumber, *
FROM Cleansing.Customer
)
UPDATE Customers
SET Group_Acc = RowNumber
--Ramesh
July 21, 2008 at 4:04 am
I ran the test on SQL 2K5 SP2 EE & surprisingly got similar results that of the original poster..
And also, checked the execution plans, they look exactly similar to each...
--Ramesh
July 10, 2008 at 10:27 am
Toggle "Ctrl + R"
--Ramesh
July 10, 2008 at 8:57 am
Are you working with two different databases? I could see that the select is querying in sample1 database.
--Ramesh
May 30, 2008 at 7:15 am
What edition of SQL Server do you have?
Try enabling OLE Automation in Surface Area Configuration Manager.
--Ramesh
May 29, 2008 at 8:53 am
Excerpt from BOL:
You must be a member of the sysadmin role to create and manage maintenance plans, and to view them in Object Explorer. The SQL Server Agent node in...
--Ramesh
May 29, 2008 at 8:02 am
SELECT H.HatID, H.HatName, MAX( His.InspectedDate ) AS LastInspectedDate
FROM tblHats H
LEFT JOIN tblHatHistory His ON H.HatID = His.HatID
GROUP BY H.HatID, H.HatName
--Ramesh
May 28, 2008 at 10:42 am
Is this what you require?
UPDATE dbo.ADate
SET ADate = ( CASE
WHEN MinDate >= Start_Date AND MinDate <= End_Date
AND FPeriod >= Start_Date AND FPeriod <=...
--Ramesh
May 28, 2008 at 10:36 am
As simple as it looks like....
SELECT OBJECT_NAME( @@PROCID )
--Ramesh
May 19, 2008 at 8:08 am
Unfortunately, there isn't any option to set scripting options for the selected object. You'd only have to take what the SSMS gives you by default. However, you can...
--Ramesh
December 10, 2007 at 12:23 am
Since your aggregating rows only for specific date, you don't need a GROUP BY clause.
Now for your query, you need to add sum aggregate to the query as
SUM(CASE WHEN...
--Ramesh
December 10, 2007 at 12:11 am
Viewing 15 posts - 736 through 750 (of 1,124 total)