Viewing 15 posts - 166 through 180 (of 389 total)
You could also use Sort transform on the employees path, sort by manager_id and remove duplicates I think.
Regards
Piotr
...and your only reply is slàinte mhath
January 5, 2009 at 6:37 pm
You might also look at the SSIS, once you get the grip of it, it is pretty flexible.
Regards
Piotr
...and your only reply is slàinte mhath
January 5, 2009 at 6:27 pm
You write SET only once in update clause:
WITH UpdateAverageLabourCost (ProductId,OH,Labour) AS
(
SELECT
AC.ProductId,
AC.OH,
AC.AVGDirectLabour + MAN + SUB - OH AS Labour
FROM dbo.AVGCost AC
INNER JOIN dbo.Products p ON AC.ProductId = p.CrossReference
WHERE Type...
...and your only reply is slàinte mhath
January 5, 2009 at 6:43 am
To prevent users from being able to read schema information you have to deny view definition right.
There are several ways you could organize it, depending on your needs. One of...
...and your only reply is slàinte mhath
January 4, 2009 at 5:08 pm
I'd have a look what transactions and which databases the version store is generated for. It might give me clue regarding what process may be responsible for the issue.
But I...
...and your only reply is slàinte mhath
January 4, 2009 at 6:59 am
Have you tried to select from sys.dm_tran_version_store?
Regards
Piotr
...and your only reply is slàinte mhath
January 3, 2009 at 5:05 pm
Now, that's a cunning trick I see now Jeff :w00t:
Not earlier than yesterday I said to myself 'one day I have to get those dateadd-datediff calculations sorted out'.
And now I...
...and your only reply is slàinte mhath
January 1, 2009 at 6:59 pm
Hi Rajg,
I can't find the definition of the IX_VarOffice index in code you sent. Also as Gail said it would be helpful to see create table statements and the definition...
...and your only reply is slàinte mhath
January 1, 2009 at 6:40 pm
It does unfortunately..
set language us_english
go
select @@datefirst, datepart(dw, getdate())
go
set language british
go
select @@datefirst, datepart(dw, getdate())
I had to cope with this on a few occasions.
Piotr
...and your only reply is slàinte mhath
January 1, 2009 at 3:56 pm
RBarryYoung (12/30/2008)
Varchars only store that space that you are actually using.
+ 2 bytes to store the length of data;)
P.
...and your only reply is slàinte mhath
December 30, 2008 at 6:36 pm
Very interesting. I found out that if you change data type to nvarchar or use newer collation like Latin1_General_CI_AS, everything works OK.
The BOL says in Using Binary Collations: "Older SQL...
...and your only reply is slàinte mhath
December 30, 2008 at 6:23 pm
Hi Kevin,
Look at the OUTPUT clause in books on line.
Regards
Piotr
...and your only reply is slàinte mhath
December 26, 2008 at 6:05 am
Cursors are evil, aren't they? 😎
Here's a solution that seems to work without cursors and CLR.
create table TableA(itemid int identity(1, 1), itemname sysname)
go
set rowcount 500
--populate tableA. if you need more...
...and your only reply is slàinte mhath
December 26, 2008 at 5:54 am
Hm, I imagine that such alter of table updates all the rows in it - according to BOL the Sch-M is acquired. There is a remark that "Changes that...
...and your only reply is slàinte mhath
December 24, 2008 at 10:07 am
I don't think you can return a data reader from a pack. You could probably store the merge output in an ADO dataset and store it in variable which you...
...and your only reply is slàinte mhath
December 23, 2008 at 7:18 pm
Viewing 15 posts - 166 through 180 (of 389 total)