Solved

VB and SQL Server

Posted on 2000-05-17
2
188 Views
Last Modified: 2010-05-02
How can I get the list of databases in a SQL Server without using SQLDMO library?
0
Comment
Question by:lasko012900
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
DanAvni earned 50 total points
ID: 2819923
connect to a database on the sql server called master and run to following query:

SELECT name FROM sysdatabases
0
 

Expert Comment

by:tapsbin
ID: 2823413
The otherway is you can try the following

SELECT name, id
FROM   sysobjects
WHERE  type = 'U'

of course, by connecting to the master table of SQL server.

and if you are doing some kind of objectid storage within the VB application, you can utilize that too directly...by running the following query.....

SELECT object_name(192009989)

where object_name is the complimentary function.

tapsbin

0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month10 days, 11 hours left to enroll

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question