SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
How to add schema name in front of Table name ?

 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
How to add schema name in front of Table name ?
Author Message
premansh



Joined: 23 May 2012
Posts: 1
Country: United States

Post How to add schema name in front of Table name ? Reply with quote
Hi,

How can I add schema name ( eg dbo ) in front of the Table name and how to remove the Table Alias by default for single table query ?

Eg:
I want this : SELECT id FROM dbo.STUDENTS

I don't want: SELECT s.id FROM STUDENTS s
Wed May 23, 2012 10:05 pm View user's profile Send private message
gemisigo



Joined: 11 Mar 2010
Posts: 2109

Post Reply with quote
There are two settings on Options -> DB Options tab:
1. Always Fully Qualify Object Names and
2. Auto Add Aliases

By setting #1 to "With schema name" you'll always have object names inserted by SA qualified by their schema name. For existing queries you can try Refactoring->Qualify Object Names from SQL Assistant context menu, though it tends to be somewhat... unreliable.

AFAIK, there is no feature for removing aliases yet but for not adding them in queries generated by SA you can set #2 to No.

Just out of curiosity, are there any reasons other than personal preferences that you want aliases to be removed?
Thu May 24, 2012 2:44 am View user's profile Send private message
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.