Viewing 15 posts - 736 through 750 (of 1,124 total)
You need to specify "Variable" as SQLSourceType property of the Execute SQL task...
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
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...
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' )
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
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...
July 10, 2008 at 10:27 am
Are you working with two different databases? I could see that the select is querying in sample1 database.
May 30, 2008 at 7:15 am
What edition of SQL Server do you have?
Try enabling OLE Automation in Surface Area Configuration Manager.
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...
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
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 <=...
May 28, 2008 at 10:36 am
As simple as it looks like....
SELECT OBJECT_NAME( @@PROCID )
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...
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...
December 10, 2007 at 12:11 am
Viewing 15 posts - 736 through 750 (of 1,124 total)