Click here to Skip to main content
15,891,375 members
Home / Discussions / Database
   

Database

 
QuestionSybase: how can I select from stored proc? Pin
devvvy8-Apr-08 3:17
devvvy8-Apr-08 3:17 
AnswerRe: Sybase: how can I select from stored proc? Pin
Mark J. Miller8-Apr-08 5:48
Mark J. Miller8-Apr-08 5:48 
GeneralRe: Sybase: how can I select from stored proc? Pin
devvvy8-Apr-08 14:56
devvvy8-Apr-08 14:56 
GeneralReplication Pin
briogene8-Apr-08 0:53
briogene8-Apr-08 0:53 
GeneralSQL - Insert Record Error Trapping Pin
imnotso#7-Apr-08 23:09
imnotso#7-Apr-08 23:09 
GeneralRe: SQL - Insert Record Error Trapping Pin
Blue_Boy8-Apr-08 0:39
Blue_Boy8-Apr-08 0:39 
GeneralRe: SQL - Insert Record Error Trapping Pin
imnotso#8-Apr-08 0:42
imnotso#8-Apr-08 0:42 
GeneralRe: SQL - Insert Record Error Trapping Pin
Michael Potter8-Apr-08 4:04
Michael Potter8-Apr-08 4:04 
I know of no error trapping (although there might be some low level undocumented stuff) for identifying the row within the set that caused the error. It might not even be very helpful if it is the first of 1 million errors within the set anyway.

Visually compare the sizes of the all varchar (and binary, if any) columns between the table and your input query. At least one of the columns of the input query has a column size that can be larger than is accepted by the table it is being input into.

You can then run a check on the query to find which rows are offending.
<code>SELECT
    PrimaryKey,
FROM
    WhatEverSource
WHERE
    LEN(VarCharColumn) > 25</code> 

You can also force the truncation during input which would eliminate the error but, lose some data.
GeneralRe: SQL - Insert Record Error Trapping Pin
imnotso#8-Apr-08 4:15
imnotso#8-Apr-08 4:15 
GeneralRe: SQL - Insert Record Error Trapping Pin
Michael Potter8-Apr-08 4:47
Michael Potter8-Apr-08 4:47 
QuestionIs there a query that can change all datasources for all dataviews? Pin
Daniel_Logan7-Apr-08 23:01
Daniel_Logan7-Apr-08 23:01 
AnswerRe: Is there a query that can change all datasources for all dataviews? Pin
Paddy Boyd8-Apr-08 0:48
Paddy Boyd8-Apr-08 0:48 
GeneralRe: Is there a query that can change all datasources for all dataviews? Pin
Daniel_Logan8-Apr-08 2:40
Daniel_Logan8-Apr-08 2:40 
GeneralRe: Is there a query that can change all datasources for all dataviews? Pin
Pete O'Hanlon8-Apr-08 2:58
mvePete O'Hanlon8-Apr-08 2:58 
GeneralRe: Is there a query that can change all datasources for all dataviews? Pin
Daniel_Logan8-Apr-08 21:16
Daniel_Logan8-Apr-08 21:16 
Generalsplit function with select statement Pin
gottimukkala7-Apr-08 5:02
gottimukkala7-Apr-08 5:02 
GeneralRe: split function with select statement Pin
Mark J. Miller7-Apr-08 5:44
Mark J. Miller7-Apr-08 5:44 
GeneralRe: split function with select statement Pin
Syed Mehroz Alam7-Apr-08 20:28
Syed Mehroz Alam7-Apr-08 20:28 
GeneralRe: split function with select statement Pin
Mark J. Miller8-Apr-08 2:45
Mark J. Miller8-Apr-08 2:45 
GeneralRe: split function with select statement Pin
Syed Mehroz Alam8-Apr-08 19:18
Syed Mehroz Alam8-Apr-08 19:18 
GeneralRe: split function with select statement Pin
Syed Mehroz Alam8-Apr-08 19:35
Syed Mehroz Alam8-Apr-08 19:35 
GeneralSSIS PACKAGES Pin
kibromg7-Apr-08 4:07
kibromg7-Apr-08 4:07 
GeneralRe: SSIS PACKAGES Pin
Mark J. Miller7-Apr-08 5:35
Mark J. Miller7-Apr-08 5:35 
GeneralRe: SSIS PACKAGES Pin
kibromg7-Apr-08 6:21
kibromg7-Apr-08 6:21 
GeneralRe: SSIS PACKAGES Pin
Mark J. Miller7-Apr-08 6:33
Mark J. Miller7-Apr-08 6:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.