Viewing 15 posts - 31,141 through 31,155 (of 59,101 total)
Koen Verbeeck (2/14/2012)
Furthermore, it is useless to specify an ORDER BY on an INSERT.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 14, 2012 at 10:19 am
Steve Jones - SSC Editor (2/14/2012)
Steve Jones - SSC Editor (2/14/2012)
Jeff Moden (2/13/2012)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 14, 2012 at 9:51 am
SQLKnowItAll (2/14/2012)
Jeff Moden (2/13/2012)
SQLKnowItAll (2/13/2012)
USE databaseNameGRANT EXEC ON SCHEMA::dbo TO userName
That should do the trick, assuming the schema for these objects is dbo! Else, replace dbo with the schema you...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 14, 2012 at 9:20 am
pharmboy4u (2/14/2012)
I have a query that's pretty bulky due to dates only, and I'm sure there's a better way. It resembles this:
select * from
(select a
from 1
join 2
where bla...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 14, 2012 at 6:27 am
Cadavre (2/14/2012)
SELECT Code, Name, City
FROM (SELECT *, ROW_NUMBER() OVER(PARTITION BY City ORDER BY Code) AS rn
FROM #MyHead
...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 14, 2012 at 6:19 am
mchofman (2/14/2012)
the solution you suggest is a possibility for application I (or my company) have created. This application (MDW) is created by Microsoft, so it refers to the table name...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 14, 2012 at 6:17 am
george sibbald (2/14/2012)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 14, 2012 at 6:13 am
You could always use CDOSYS instead.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 13, 2012 at 11:48 pm
ChrisM@home (1/18/2012)
jennigirl (1/18/2012)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 13, 2012 at 11:46 pm
Heh... I map dark rooms with a flame thrower. Keeps me from pricking my finger on a needle. 😛
--Jeff Moden
Change is inevitable... Change for the better is not.
February 13, 2012 at 11:42 pm
Mark-101232 (2/8/2012)
WITH CTE AS (
SELECT part, stat, datevalue,
ROW_NUMBER() OVER(PARTITION BY part ORDER BY datevalue) AS rn
FROM dbo.test_table)
SELECT z.part,z.stat,z.datevalue,n.stat,n.datevalue
FROM CTE z
INNER JOIN CTE n...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 13, 2012 at 11:32 pm
Actually, this is all very easy using BULK INSERT which now allows you to do like we used to do in BCP. Sequester errors in a file and keep...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 13, 2012 at 11:27 pm
xRafo (2/9/2012)
Hmm, can u prove it?, i mean,do you have an example and probe it what you say?
It's a well known fact. Google it. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
February 13, 2012 at 11:24 pm
I guess my only question would be... why are you doing this by column number instead of by column name?
--Jeff Moden
Change is inevitable... Change for the better is not.
February 13, 2012 at 11:05 pm
Man! I've got to say it again! Hat's off to the SSC Dev Team for fixing the code window length problem and the code window copy problem! ...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 13, 2012 at 10:31 pm
Viewing 15 posts - 31,141 through 31,155 (of 59,101 total)