SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
semicolons

 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
semicolons
Author Message
surferdudesa



Joined: 14 Feb 2013
Posts: 3
Country: South Africa

Post semicolons Reply with quote
Hi

I was wondering if you can get SQL Assistant to auto add semicolons to the end of every batch statement in SQL Server?

This would be use for the thousand of lines of code that now need semicolons terminating each statement


Thanks
Thu Feb 14, 2013 12:56 am View user's profile Send private message Send e-mail
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7854

Post Reply with quote
Hi,

I'm not sure there exist an algorithmic method for identifying "the end of every batch statement"
Only database programmers know where they want to terminate one batch and start another.
Thu Feb 14, 2013 1:02 am View user's profile Send private message
surferdudesa



Joined: 14 Feb 2013
Posts: 3
Country: South Africa

Post Reply with quote
Hmmm, that's what I thought. Just testing my luck.
Oh well looks like many hours of Jnr. SQL resource time to be sold at some point.

Thanks
Thu Feb 14, 2013 1:13 am View user's profile Send private message Send e-mail
surferdudesa



Joined: 14 Feb 2013
Posts: 3
Country: South Africa

Post Reply with quote
May have found a workaround. If you add a semi colon to the end of the statements in code formatting, then you can search-replace semicolons to the beginning of each statement in your procedure. This is easier to determine as each statement starts with a keyword. When you format the code the semi colon jumps the end of the previous statement. It is not perfect but it may get you most of the way there.

Hope this helps someone
Thu Feb 14, 2013 2:48 am View user's profile Send private message Send e-mail
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
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
Design by Freestyle XL / Flowers Online.