Viewing 15 posts - 211 through 225 (of 532 total)
I could write the code to do this, but why? Isn't it much easier to use whatever you're using for your user interface? (Honest question ... I don't...
July 21, 2010 at 5:59 pm
sushantkumar1984 (7/21/2010)
like xyz.dbname.dbo.tablename1 A
xyz.dbname.dbo.tablename2 B
...
July 21, 2010 at 4:56 pm
Generally, the idea is to split responsibility between different part of the whole for efficiency and consistency. The user interface is where the data is actually being presented so...
July 21, 2010 at 4:43 pm
You're right about it being terrible. I really think it would take being on the system to fix it.
July 21, 2010 at 3:31 pm
Not sure what you're wanting to display for the Fee ... whether that line's portion or the full thing, but hopefully you can modify this to get what you want:
SELECT...
July 21, 2010 at 3:17 pm
In many cases, the actual cached plan will be different for the same query depending on the source of the execution because of settings such as ARITHABORT. So, if...
July 21, 2010 at 2:23 pm
Adam Haines (7/21/2010)
DECLARE @t TABLE(
col VARCHAR(10)
);
INSERT INTO @t VALUES ('13abc');
INSERT INTO @t VALUES ('1abcde');
SELECT *
FROM @t
where col...
July 21, 2010 at 12:18 pm
If your data is such that you could possibly get ties for your minimum value, you can also do this:
;WITH cteTemp AS
(
SELECT LOAD_ID,
NAME1,
HM_TRAILER,
CITY,
STATE,
TMS_EXT_REF_ID,
ROW_NUMBER() OVER(PARTITION BY LOAD_ID ORDER BY TMS_EXT_REF_ID ASC)...
July 21, 2010 at 12:00 pm
I am guessing that what you're trying to do would be much more easily accomplished with an IDENTITY value. But, as the others have noted, without more specific information...
July 21, 2010 at 11:24 am
Joe Celko (7/21/2010)
CREATE TABLE Tests
(Item_nbr INTEGER NOT NULL PRIMARY KEY,
something_val INTEGER NOT NULL);
INSERT INTO Tests VALUES
(1, 90), (2, 80),...
July 21, 2010 at 11:14 am
I can't say why it's different before and after the cumulative update, but I can tell you that this is generally a problematic way to query data.
Doing any kind of...
July 21, 2010 at 11:04 am
July 20, 2010 at 6:07 pm
As Joe was getting at, there are some significant design issues. Ideally, a redesign would be in order. However, I realize there are many times that such things...
July 20, 2010 at 3:21 pm
Please stop with the random bolds ... really annoying.
However you rename the table you are going to need to take care of the references to the table. Personally, I...
July 20, 2010 at 1:51 pm
Keep in mind that these system procs do not return information about included columns, which you may or may not need to know about.
July 20, 2010 at 1:14 pm
Viewing 15 posts - 211 through 225 (of 532 total)