Viewing 15 posts - 691 through 705 (of 2,038 total)
RBarryYoung (6/12/2009)
June 13, 2009 at 3:17 am
Tom Brown (6/12/2009)
Florian Reischl (6/12/2009)
Tom Brown (6/12/2009)
See BOL.
But I couldn't say that without also advising you to look at the numerous articles on this...
June 12, 2009 at 2:47 pm
You can use a CTE to get a row-number over your order-id:
DECLARE @t TABLE (OrderId INT, StartDate DATETIME)
INSERT INTO @t
...
June 12, 2009 at 2:34 pm
Tom Brown (6/12/2009)
See BOL.
But I couldn't say that without also advising you to look at the numerous articles on this site about cursors and...
June 12, 2009 at 2:26 pm
Just have a look to MSDN:
FORWARD_ONLY
Specifies that the cursor can only be scrolled from the first to the last row. FETCH NEXT is the only supported fetch option. If FORWARD_ONLY...
June 12, 2009 at 2:24 pm
If you want to work with a temp-table you have to create it outside your procedure. You can fill it within your procedure but if you create a temp table...
June 12, 2009 at 2:16 pm
Shawn Therrien (6/11/2009)
Yes, the element is required. What is RAW? -- Nevermind. I found it in the FOR XML documentation! thanks a lot!
RAW returns data as attributes. You can use...
June 12, 2009 at 2:04 pm
I don't understand your first question.
For your second (if your attribute is not mandatory)
DECLARE @Scores AS TABLE (ID VARCHAR(3), Score VARCHAR(3))
INSERT INTO @Scores
SELECT '15', '95' UNION
SELECT '8', '55' UNION
SELECT '14',...
June 11, 2009 at 1:06 pm
Avoid the inline query in your SELECT statement. You can use a row-number to work with a JOIN.
; WITH
t (Act, Dt, RowNum) AS
(
SELECT
...
June 11, 2009 at 12:54 pm
There must be something wrong in your XPath. This works fine:
DECLARE @xml XML
SELECT @xml = N'true'
SET @xml.modify('
replace value of (config/item/enabled/text())[1]
with "false"
')
SELECT @xml
BTW: You don't...
June 11, 2009 at 12:45 pm
I just tried the SQL Server Import-/Export-Wizard (right click database -> Tasks -> Import Data...) with a Access2007 database - I don't have Access97. Seems to work fine. If you...
June 11, 2009 at 9:33 am
I would suggest to use a date column within your logging table to move the data into a staging table (or directly out to your files or other server). Since...
June 11, 2009 at 8:46 am
Glad I could help! 🙂
June 11, 2009 at 6:01 am
Viewing 15 posts - 691 through 705 (of 2,038 total)