Viewing 15 posts - 46 through 60 (of 196 total)
skt5000 (2/11/2010)
declare @date datetime
set @date = '01/08/2010'
SELECT DATEPART(day,@date),DATEPART(weekday,@date)
SELECT CASE
WHEN DATEPART(weekday,@date) = 2
...
February 12, 2010 at 5:55 am
allen davidson (2/12/2010)
HiI'm still struggling, I don't understand how to calculate the divisor to get to the right units. Below is wrong but I cant see why..
Allen,
there's nothing wrong...
February 12, 2010 at 4:44 am
There's a lot to say and write about this. Which one is best for you largely depends on how you are going to use it. So you may want to...
February 12, 2010 at 3:21 am
You may find this article on dynamic SQL and when (not) to use it interesting.
February 12, 2010 at 2:24 am
Gail certainly has a point there.
But to answer your question: SQL Server thinks EmployeeID is a column from a table, but you don't tell it which table it shoud come...
February 12, 2010 at 2:21 am
February 12, 2010 at 1:19 am
I assume you are using the Transfer SQL Server Objects Task.
I was hoping that you could ignore the error by raising the MaximumErrorCount property of the Task, but this...
February 12, 2010 at 12:54 am
February 12, 2010 at 12:36 am
I agree with the suggestions made above.
The way I solve it goes like this:
DECLARE @sp_executesql NVARCHAR(150) = QUOTENAME('name of your database goes here') + '.sys.sp_executesql' ;
I put...
February 12, 2010 at 12:18 am
Use a merge statement.
To get data from the remote server you can use either SSIS or a linked server.
February 12, 2010 at 12:07 am
Which driver are you using for reading from Oracle and what is the version number of the DB?
February 11, 2010 at 4:31 am
Yep.
You can also do this, but be aware that you will lose all text entered after the 60th character.
UPDATE t
SET NOTES2 = LEFT(s.NOTES1,60)
FROM ...
February 11, 2010 at 4:28 am
Viewing 15 posts - 46 through 60 (of 196 total)