Viewing 15 posts - 9,271 through 9,285 (of 10,143 total)
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...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 5, 2008 at 5:08 am
Try this:
SELECT COUNT(*) FROM dbo.Bargains
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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,...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 5, 2008 at 3:25 am
rbarryyoung (12/4/2008)
mtassin (12/4/2008)
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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....
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 4, 2008 at 10:56 am
Can you post the whole INSERT statement?
INSERT INTO DEV001\SQL2005DEV...........
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 4, 2008 at 10:36 am
What's sp_MSforeachdb running?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 4, 2008 at 9:13 am
What do you get when you run this:
select name from sysdatabases
where UPPER(name) LIKE 'ORTUSSEARCH%'
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 4, 2008 at 9:04 am
Hi Simon
It's a long shot, but could it be case sensitivity? Try 'ortussearch' in your sp_MSforeachdb query.
Cheers
ChrisM
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 4, 2008 at 8:43 am
Viewing 15 posts - 9,271 through 9,285 (of 10,143 total)