just a quick question about data adapter wizard

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,

when you use the sql data adapter wizard and look at the code behind, the
sql statement looks like the following:
select * from dbo.products

why is the dbo. prefix added? is there a way to change that. It's not
causing any major problem, just wanted to know more about it.

thanks,
rodchar
 
Hi,

"The dbo is a user that has implied permissions to perform all activities in
the database", per sql server help. The idea is to ensure that you can
connect, regardless of the permissions of a given user. Enterprise Manager
in sql server itself does this all the time. FOr example, if you try to run
a query on a table, this is what appears:
SELECT *
FROM [dbo].[a_rbal_k]

I wouldn't wish to change it, and I don't think you can, except by going
into the code behind itself and removing it, but I don't see what value this
would serve.

Bernie Yaeger
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top