Red Gate forums :: View topic - checking in complaining about stored procs not compiling
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Source Control 1
SQL Source Control 1 forum

checking in complaining about stored procs not compiling

Search in SQL Source Control 1 forum
Post new topic   Reply to topic
Jump to:  
Author Message
ChrisAdkin



Joined: 23 Dec 2010
Posts: 1
Location: Nottingham

PostPosted: Thu Dec 23, 2010 5:19 pm    Post subject: checking in complaining about stored procs not compiling Reply with quote

I'm using source control 1.1.0.19, with SQL Server 2008 R2 and sub version. When I try to check in, Red Gate source control is complaining that a perfectly good stored proc which I have already checking via a different sub version client will not compile, this is what I'm getting:-

Errors occurred whilst parsing file C:\Users\chris\AppData\Local\Red Gate\SQL Source Control 1\WorkingBases\onys2ojg.axm\Stored Procedures\process_stream_1.up_dq_click_through.sql
'line 1:2959: expecting "Integer", found '@v_ct_batch_size''
'line 1:3288: expecting "end", found ';''
'line 1:10765: expecting "try", found ';''
'line 1:10765: expecting "end", found ';''
'line 1:10778: expecting "conversation", found 'TRY''
'CATCH' at line 1, column 10812
'CATCH' at line 1, column 11400
';' at line 1, column 11401
'line 1:11407: expecting "conversation", found ';''

Can someone point me in the correct direction as to resolving this issue.
Back to top
View user's profile Send private message Send e-mail
peter.peart
Site Admin


Joined: 02 Sep 2008
Posts: 362
Location: Top floor, RG towers with the cool kids

PostPosted: Mon Dec 27, 2010 1:30 pm    Post subject: Reply with quote

Hi there,

Thanks for your post. It sounds like your working base may be a bit messed up. If the sproc is already checked into SVN, you can try unlinking and relinking the DB to SQL Source Control.

Alternatively, you can use SQL Compare PRO to perform a comparison against what exists in the live DB against the working base folder location, i.e. C:\Users\chris\AppData\Local\Red Gate\SQL Source Control 1\WorkingBases\onys2ojg.axm and see where the differences are in the sproc, and also against SVN assuming it is in there in the first place.

HTH!

Pete
_________________
Peter Peart
Red Gate Software Ltd
+44 (0)870 160 0037 ext. 8569
1 866 RED GATE ext. 8569
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group