 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
surferdudesa
Joined: 14 Feb 2013 Posts: 3 Country: South Africa |
|
semicolons |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
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 |
|
 |
surferdudesa
Joined: 14 Feb 2013 Posts: 3 Country: South Africa |
|
|
|
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 |
|
 |
surferdudesa
Joined: 14 Feb 2013 Posts: 3 Country: South Africa |
|
|
|
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 |
|
 |
|
|
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
|
|
|