Viewing 15 posts - 496 through 510 (of 2,038 total)
You can use a LEFT JOIN to get only the countries which are not yet exist within your destination table and a ROW_NUMBER to create a PK.
CREATE TABLE #Country
...
June 26, 2009 at 11:46 am
Lynn Pettis (6/26/2009)
Florian Reischl (6/26/2009)
Jeff Moden (6/26/2009)
Florian Reischl (6/26/2009)
Lynn Pettis (6/25/2009)
I only hope he reads the blog, but I doubt it.I hope (s)he did. Next posts have been really okay.
Heh......
June 26, 2009 at 10:07 am
Jeff Moden (6/26/2009)
Florian Reischl (6/26/2009)
Lynn Pettis (6/25/2009)
I only hope he reads the blog, but I doubt it.I hope (s)he did. Next posts have been really okay.
Heh... I'm not sure where...
June 26, 2009 at 6:13 am
Thanks Paul.
@yaya1899:
Just fount a failure in one part of my post. I filled the Numbers table with a Tally table :hehe:. Since you probably done have both this will generate...
June 26, 2009 at 5:50 am
So, Paul gave me the GO...
There is almost never a reason to work with cursors or loops in T-SQL. As Paul and Gail wrote SQL Server is made for set-based...
June 26, 2009 at 5:38 am
Paul White (6/26/2009)
(Before we go on to set-based, let's tidy the RBAR a bit)
Can we go on now? 😎
June 26, 2009 at 4:49 am
Lynn Pettis (6/25/2009)
I only hope he reads the blog, but I doubt it.
I hope (s)he did. Next posts have been really okay.
June 26, 2009 at 4:23 am
What about a LEFT JOIN...
SELECT
*
FROM PurchaseOrders po
LEFT JOIN ArrivedItems ai ON pon.PurchaseOrderNo = ai.PurchaseOrderNo
...
June 25, 2009 at 7:20 pm
Hi
In SQL Server 2005 you can use the OUTPUT clause to work without a loop:
DECLARE @t TABLE
(
JobId INT,
JobCode VARCHAR(10),
Issued BIT,
...
June 25, 2009 at 7:17 pm
seena (6/23/2009)
sqlserver.exe.config...
The system cannot find the file specified. (C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\sqlservr.exe.Config line 26)
Just to ensure, do you have a typo in your file name?
You:
sqlserver.exe.config
Error:
sqlservr.exe.Config
Did you buy one "e"...
June 25, 2009 at 7:09 pm
rodan,
Let me take the working statement of "DBA with OCD" an add some slight improvements. To ensure that you don't get a mail if number of days is less than...
June 25, 2009 at 6:39 pm
As first let me make your XML readable for other people here.
Usually you get:
1
...
June 25, 2009 at 5:06 pm
Now we get together 😉
Just don't see any question in your current post. It returns the count of days between the maximal statdon and today (well, NOW).
Do you have any...
June 25, 2009 at 4:44 pm
In front-end it doesn't matter if your data are stored as FILESTREAM or as usual VARBINARY(MAX) data directly in database. I just saw a Microsoft webcast which said rule of...
June 25, 2009 at 4:40 pm
June 25, 2009 at 4:23 pm
Viewing 15 posts - 496 through 510 (of 2,038 total)