sql - how to query a table in a Catalog - schema - table structure? -



sql - how to query a table in a Catalog - schema - table structure? -

i have catalog called teklabel, schema called pub, table called mstrship

when seek query table used

from pub.mstrship

and scheme gives me error : invalid object name "pub.mstrship"

how can query table then?

background: i'm working on old windows server 2003 sp2 , sql server old (sql query analyzer ver. 8.00.2039). when utilize odbc query tool v1.38 query tables, used "pub.mstrship" can execute , give me results. when want run test programme "pub.mstrship" specified in program, study error "invalid object name 'pub.mstrship'"

sql query analyzer connection string

programme connection string in config file

structure

try amending connection string connect teklable database, should 1 manual alter in program. eg

"provider=sqloledb;data source=your_server_name;initial catalog=teklable;userid=your_username;password=your_password;"

looking @ connection properties, advise trying suggestion of tgolisch , alter default database sqluser login teklable

which version of sql server using? if connect server using ssms, , go security > logins , can edit properties sqluser login, , alter default database.

it may worth checking no other applications utilize login, alter break them. improve alternative create new login called teklabeluser, , set default database teklable

sql sql-server

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -