 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
RobCrockett
Joined: 15 Aug 2008 Posts: 10 Country: United States |
|
Vertical colum formatting for Insert |
|
Hi
I'm using SQL management studio with the SQL set to SQL Server 2000.
When I set the format for an INSERT as follows:
 |
 |
INSERT ...
(
...,
...
)
VALUES
(
...,
...
)
|
I get the following format when I highlight the code and use CTl-F11:
 |
 |
INSERT INTO Activity
(
ID,
ShopID,
CustID,
Comments,
MileageInterval,
CouponTitle1
)
VALUES
(1, 2, 3, 'duh', 4, 'sss' )
|
Why won't the VALUES part format vertically?
Rob
|
|
Mon Aug 18, 2008 5:30 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
Have you modified wrong format style? Perhaps modified PL/SQL Style 1, but CTRL+F11 used T-SQL Default Style, or something like that?
|
|
Mon Aug 18, 2008 6:32 pm |
|
 |
RobCrockett
Joined: 15 Aug 2008 Posts: 10 Country: United States |
|
Nope |
|
I am using T-SQL predefined 1. As a test, I removed the vertical formatting from the INSERT section checked the results (It worked) and then restored it (It came back as vertical).
|
|
Mon Aug 18, 2008 7:04 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
 |
 |
It came back as vertical |
I'm sorry, I didn't get it. Did you mean that it started working ok after the change?
|
|
Tue Aug 19, 2008 12:01 am |
|
 |
RobCrockett
Joined: 15 Aug 2008 Posts: 10 Country: United States |
|
|
|
The insert part came back to vertical. The values part stays horizontal.
 |
 |
INSERT INTO Activity
(
ID,
ShopID,
CustID,
Comments,
MileageInterval,
CouponTitle1
)
VALUES
(1, 2, 3, 'duh', 4, 'sss' )
|
|
|
Wed Aug 20, 2008 10:21 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
On the formatting style level set the "Text Length for in-line Brackets" option to 0. Hope this helps.
|
|
Wed Aug 20, 2008 10:30 am |
|
 |
RobCrockett
Joined: 15 Aug 2008 Posts: 10 Country: United States |
|
That did it |
|
Thanks!
|
|
Wed Aug 20, 2008 10:38 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
|
|
|