Viewing 15 posts - 181 through 195 (of 223 total)
Stil the same error with the GROUP BY...
Assuming that both the view and the sp are specific to this process, which is extracting new clients from the bargains table and...
December 5, 2008 at 4:32 am
Same error with this INSERT:
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 email...
December 5, 2008 at 4:04 am
Even If i could create a Macro button which when clicked prompts the user....
December 5, 2008 at 3:47 am
Chris, thats fantastic, thank.
BUT....:angry:
Now when I run my SP which calls this View I get the following error:
(Error from Job History)
Message
Executed as user: UK\SQLAdmin. Microsoft (R) SQL Server Execute Package...
December 5, 2008 at 3:41 am
Thanks for the update.
Question is why was it working correctly in SQL2000 and now iv moved the DB to 2005 this error occurs?
December 3, 2008 at 6:15 am
You are correct it has been asked before but the issue has progressed!!
I am asking where is it best to change the DataType??
In the View or in the Table?
December 3, 2008 at 5:27 am
Seem to have the same result....
32212
32212
Client_Short_Name nvarchar(30)
Client_Long_Name nvarchar(100)
UK ...
December 3, 2008 at 5:07 am
I am very sorry, that was the incorrect INSERT statement!!
Here is the correct one, the column types in my frst post relate to this INSERT:
INSERT INTO dbo.tblClients
(Client_Short_Name,
Client_Long_Name,
CountryCode,
ClientID)
SELECT dbo.vwImportAllNewClientIDs.Client, dbo.vwImportAllNewClientIDs.Client,...
December 3, 2008 at 4:52 am
Ok I think I have now included some more helpful information.
I have attched:
- 'Bargains' tables colums & data types
- 'procImportAllFiles' SP in fill (saved as a .txt but can be...
December 3, 2008 at 12:38 am
My gut feeling without looking at the data tells me you my have more than a one to one relationship between the tables Bargains and tblStocks. I'd start by...
December 2, 2008 at 7:48 am
Ok getting the following error when running the update:
Msg 8152, Level 16, State 4, Line 1
String or binary data would be truncated.
The statement has been terminated.
November 28, 2008 at 5:24 am
Sorry, what did you mean by the bit of code:
DECLARE @Client VARCHAR(255)
SET @Client = 'This is a 30-char client name.Here are another thirty chars.'
November 28, 2008 at 5:10 am
Chris thats fantastic, I cant thank you enough!
I willm try this and keep toy posted:
Drop tblclients
Create NEW tblclients
Edit SP with new INSERT
RUN SP
November 28, 2008 at 4:48 am
Viewing 15 posts - 181 through 195 (of 223 total)