Viewing 15 posts - 9,271 through 9,285 (of 10,144 total)
Chris,
Do you mean this:
retrieve unique products (prdID) AND the city it's in (postcodeID) AND the shortest distance to a reference city
Cheers
ChrisM
December 5, 2008 at 5:15 am
A Little Help Please (12/5/2008)
Zero....Is this going to drive you mad as it has done me! :crazy:
Thanks for your time, keep the suggestions coming....lol
You have no data in your bargains...
December 5, 2008 at 5:08 am
Try this:
SELECT COUNT(*) FROM dbo.Bargains
December 5, 2008 at 5:02 am
Ah, it's a NVARCHAR!
Please run these in QA (or SMS) and post the counts from each statement:
SELECT COUNT(*)
FROM dbo.Bargains b
GROUP BY b.Client, b.CountryCode, CAST(b.ClientID AS NVARCHAR (10))
SELECT COUNT(*)
FROM dbo.Bargains...
December 5, 2008 at 4:51 am
pri.amin (12/5/2008)
Msg 2627, Level 14, State 1, Line 2
Violation of PRIMARY KEY constraint 'PK_tblClients'.
Cannot insert duplicate key in object 'dbo.tblClients'.
The statement has been terminated.
Can I...
December 5, 2008 at 4:14 am
You're not accounting for the trimming of clientid when you extract from the bargains table and insert into clients table. But why all the fuss with views and DTS/SSIS whatever,...
December 5, 2008 at 3:54 am
Like this:
[font="Courier New"]SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE VIEW dbo.vwImportAllNewClientIDs
AS
SELECT CAST(b.ClientID AS VARCHAR (10)) AS ClientID, b.Client, b.CountryCode
FROM dbo.tblClients c
RIGHT OUTER JOIN dbo.Bargains b ON c.ClientID COLLATE...
December 5, 2008 at 3:25 am
rbarryyoung (12/4/2008)
mtassin (12/4/2008)
December 5, 2008 at 2:20 am
Hi rhubbard
No problem, should be pretty straightforward. But first, can you explain what this chunk of code does? I'm lost...
NVARCHAR1(Topic), NVARCHAR6 (Meeting Room Name), datetime1 (Meeting Start Time), datetime2 (Meeting...
December 4, 2008 at 11:58 am
gregarobinson (12/4/2008)
INSERT INTO [DEV001\SQL2005DEV].myDatabase.dbo.myTable
and it worked. "dbo" has always been present so that is not a change....
December 4, 2008 at 10:56 am
Can you post the whole INSERT statement?
INSERT INTO DEV001\SQL2005DEV...........
December 4, 2008 at 10:43 am
gregarobinson (12/4/2008)
Yes, I have run the insert on it's own without the server name, just the database name, and it works correctly.
Not the INSERT, the SELECT. What does it...
December 4, 2008 at 10:42 am
Hi Greg
Some of our older servers have similar names and I've worked around it successfully by using square brackets, as you suggest.
Have you ran the SELECT part of your INSERT...
December 4, 2008 at 10:36 am
What's sp_MSforeachdb running?
December 4, 2008 at 9:13 am
What do you get when you run this:
select name from sysdatabases
where UPPER(name) LIKE 'ORTUSSEARCH%'
December 4, 2008 at 9:04 am
Viewing 15 posts - 9,271 through 9,285 (of 10,144 total)