Re: osql to connect to a Database

From: Gert E.R. Drapers (GertD_at_SQLDev.Net)
Date: 01/06/05


Date: Fri, 7 Jan 2005 00:08:18 +0100

osql -S (local) -E -d pubs

GertD@SQLDev.Net

Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
Copyright © SQLDev.Net 1991-2004 All rights reserved.

"Manzoorul Hassan" <manzoorul.hassan@gmail.com> wrote in message
news:1105052724.438484.94120@z14g2000cwz.googlegroups.com...
>I am running MSDE 2000 Rel A on a Windows XP machine and am able to
> connect to it by doing the following:
>
> osql -U sa
>
> or
>
> osql -E
>
> But how do I connect to a Particular Database or see all the tables
> etc? I am a but familiar with sql (which could be the problem) and an
> trying to do the following that I can with it:
>
> sql user_name/database_name@password
>
> so that I can connect directly to the DB I'm interested and then I can
> do:
>
> select tablenames;
> desc table_name;
> select * from table_name;
> etc
>
> Any ideas? Like I mentioned, maybe I'm trying to do things that is not
> supposed to be possible with osql (which would really suck).
>
> - manzoor
>



Relevant Pages

  • Re: Internet Explorer
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... You assume all risk for your use of this information. ... Please do not send email directly to this alias. ...
    (microsoft.public.security)
  • Re: Has anyone seen a 25 TB data warehouse on SQL Server?
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... You assume all risk for your use. ... I was hoping to find someone who had worked on a SQL Server ...
    (comp.databases.ms-sqlserver)
  • Re: BizTalk with SQL named instances
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... You assume all risk for your use. ... © 2003 Microsoft Corporation. ...
    (microsoft.public.biztalk.general)
  • Re: Change SQL Server Authentication method programmatically
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... You assume all risk for your use. ...
    (microsoft.public.sqlserver.security)
  • Re: Install Windows Patch via GPO
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ...
    (microsoft.public.windows.group_policy)