Hello!
I started created web app which will have MS SQL 2008 Expr back-end database. The Q is how to properly create user for SQL login which will be then used in SQL connection string. What proper credentials user has to have?
I noticed for example if I create SQL user with only "public" server role, then each table display in front "dbo." when I choose table from "Table/View name" dropdown list in grid builder. But if I also apply "sysadmin" role then I don't see this in front. This is also not visible when I choose Windows Authentication.
And problem is now if I select table each alias for table name is written in style "dbo_TableName" (if I have SQL login w/o sysadmin role). But in case that I have sysadmin role or Windows authentication then I see alias how I would like to see it (w/o dbo_ in front): "TableName", because table list does not contain that in front.
I would like to have universal approach which will work if I later change login from "SQL auth" to "Windows auth" or vice versa and table list or alias will stay the same.
What approach / recipe do you use, so you can at later time flawlessly change authentication type without any problems on existing components in A5 or new one?
Please if you can advise me on that dilemma. Thank you.
Fisher
I started created web app which will have MS SQL 2008 Expr back-end database. The Q is how to properly create user for SQL login which will be then used in SQL connection string. What proper credentials user has to have?
I noticed for example if I create SQL user with only "public" server role, then each table display in front "dbo." when I choose table from "Table/View name" dropdown list in grid builder. But if I also apply "sysadmin" role then I don't see this in front. This is also not visible when I choose Windows Authentication.
And problem is now if I select table each alias for table name is written in style "dbo_TableName" (if I have SQL login w/o sysadmin role). But in case that I have sysadmin role or Windows authentication then I see alias how I would like to see it (w/o dbo_ in front): "TableName", because table list does not contain that in front.
I would like to have universal approach which will work if I later change login from "SQL auth" to "Windows auth" or vice versa and table list or alias will stay the same.
What approach / recipe do you use, so you can at later time flawlessly change authentication type without any problems on existing components in A5 or new one?
Please if you can advise me on that dilemma. Thank you.
Fisher
Comment