Click here to Skip to main content
15,885,278 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL question [modified] Pin
Jörgen Andersson31-Mar-11 9:38
professionalJörgen Andersson31-Mar-11 9:38 
GeneralRe: SQL question Pin
loyal ginger31-Mar-11 10:16
loyal ginger31-Mar-11 10:16 
AnswerRe: SQL question Pin
Jörgen Andersson31-Mar-11 10:28
professionalJörgen Andersson31-Mar-11 10:28 
GeneralRe: SQL question Pin
loyal ginger1-Apr-11 3:23
loyal ginger1-Apr-11 3:23 
AnswerRe: SQL question Pin
Wendelius31-Mar-11 9:14
mentorWendelius31-Mar-11 9:14 
GeneralRe: SQL question Pin
loyal ginger31-Mar-11 10:17
loyal ginger31-Mar-11 10:17 
QuestionThis one has me stumped Pin
Andy Brummer31-Mar-11 6:01
sitebuilderAndy Brummer31-Mar-11 6:01 
AnswerRe: This one has me stumped Pin
Wendelius31-Mar-11 6:45
mentorWendelius31-Mar-11 6:45 
Just made a test with this and didn't have any problems. Could it be that you're having problems with for example apostrophes in the script in the RAISERROR statement.

The test script I used was:
create procedure ptest as
begin
   raiserror( 'message', 10, 10 );
end;
go

and the command:
sqlcmd -S .\instancename -E -d dbname -i testproc.txt


Could you post the error message and the part of the script that's causing problems. Also have a test drive with the script above to see if it also causes the same problem.
The need to optimize rises from a bad design.My articles[^]

Generalvirtual keyboard Pin
shelbypowell31-Mar-11 4:02
shelbypowell31-Mar-11 4:02 
GeneralRe: virtual keyboard Pin
Mycroft Holmes31-Mar-11 13:09
professionalMycroft Holmes31-Mar-11 13:09 
GeneralRe: virtual keyboard Pin
shelbypowell31-Mar-11 13:58
shelbypowell31-Mar-11 13:58 
GeneralRe: virtual keyboard Pin
Mycroft Holmes31-Mar-11 14:17
professionalMycroft Holmes31-Mar-11 14:17 
GeneralRe: virtual keyboard Pin
Pete O'Hanlon31-Mar-11 23:35
mvePete O'Hanlon31-Mar-11 23:35 
GeneralRe: virtual keyboard Pin
Andy_L_J31-Mar-11 23:56
Andy_L_J31-Mar-11 23:56 
GeneralRe: virtual keyboard Pin
shelbypowell1-Apr-11 1:05
shelbypowell1-Apr-11 1:05 
QuestionPlease modify the Stored procedure (Error:-incorrect syntax near '+') Pin
vinu.111131-Mar-11 2:17
vinu.111131-Mar-11 2:17 
AnswerRe: Please modify the Stored procedure (Error:-incorrect syntax near '+') Pin
s_magus31-Mar-11 3:47
s_magus31-Mar-11 3:47 
AnswerRe: Please modify the Stored procedure (Error:-incorrect syntax near '+') Pin
Wendelius31-Mar-11 5:30
mentorWendelius31-Mar-11 5:30 
AnswerRe: Please modify the Stored procedure (Error:-incorrect syntax near '+') Pin
SamRST4-Apr-11 21:27
SamRST4-Apr-11 21:27 
QuestionSQL Server Error: String or binary data would be truncated Pin
cateyes9930-Mar-11 15:24
cateyes9930-Mar-11 15:24 
AnswerRe: SQL Server Error: String or binary data would be truncated Pin
Luc Pattyn30-Mar-11 15:41
sitebuilderLuc Pattyn30-Mar-11 15:41 
GeneralRe: SQL Server Error: String or binary data would be truncated Pin
cateyes9930-Mar-11 16:34
cateyes9930-Mar-11 16:34 
AnswerRe: SQL Server Error: String or binary data would be truncated Pin
Wendelius31-Mar-11 5:19
mentorWendelius31-Mar-11 5:19 
Questionreporting left to right instead of top to bottom [not solved but project went another way so closed] Pin
gavindon30-Mar-11 11:24
gavindon30-Mar-11 11:24 
AnswerRe: reporting left to right instead of top to bottom Pin
Jörgen Andersson30-Mar-11 19:54
professionalJörgen Andersson30-Mar-11 19:54 

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.