all groups > sql server programming > february 2006 >
You're in the

sql server programming

group:

project deployment issues


project deployment issues nathan.atkins NO[at]SPAM alcoa.com.au
2/5/2006 7:33:35 PM
sql server programming: Im having some issues when deploying my project written in vb.net which
uses and Sql server database. During development I used my local
machine as the server database, and this worked fine for myself and
other users on remote pcs.
But now I have changed the sql connection string to point to a
dedicated sql server for deployment of the completed project I am the
only user who can access it. I have another administrator with access
to the same database and he can view/edit all the tables in sql server
Enterprise Manager, but when he runs my program it generates an error
on the first attempt the program makes to retreive data from the
database.
It is a basic select statement which works fine for me, but generates a
"cannot find <table_name>" type of error. We are both using exactly the
same version of the project, so I know the table exists.

I thought it must be some kind of permission i need to set in the
database, but he seems to think because he can see it in enterprise
manager it must be in my code.
Re: project deployment issues Uri Dimant
2/6/2006 12:00:00 AM
Hi
Does "administrator" have a full access to the server ? Is he a memeber of
sysadmin server role?
Who is an owner of the table?
How do you perform a SELECT statement?


SELECT <> FROM dbo.TableName

SELECT <> FROM fred.Tablename ( fred is an user and owner of the table)



[quoted text, click to view]

Re: project deployment issues nathan.atkins NO[at]SPAM alcoa.com.au
2/6/2006 1:28:18 PM

[quoted text, click to view]


Currently im saying "SELECT <> FROM tablename
After reading your post im starting to think this is the problem, but
how to fix i dont know.
Re: project deployment issues Dave Markle
2/6/2006 11:12:29 PM
Nathan --

Look in Enterprise Manager under "tables" on the database. Who is the
owner of the table you want to access? Is it "dbo" or is it you? Try
"select * from dbo.<table_name>" or "select * from
[DOMAIN\yourlogin].<table_name>. Does the latter one work? If so, you
are probably going to want to recreate your tables with "dbo" as the
owner, instead of yourself:

CREATE TABLE dbo.NewTable (...)
vs
CREATE TABLE NewTable

My best guess--
-Dave Markle

[quoted text, click to view]
AddThis Social Bookmark Button