C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






Display the Available Database on Current Server


Posted Date: 11 Sep 2008    Resource Type: Code Snippets    Category: VB.NET Syntax
Author: AbbasMember Level: Silver    
Rating: Points: 10



This code Snippet will Display the List of Available Databases on the Current Selected.

Dim con As New SqlConnection("server=[Name of Your SERVER];uid=[User Name];pwd=[Password];database=")
Dim adap As New SqlDataAdapter("sp_databases", con)
Dim ds As New DataSet
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
adap.Fill(ds)
DataGridView1.DataSource = ds.Tables(0)
End Sub


For Detailed Information About the Code Download the Demo Application from Below

By Abbas Electricwala

Attachments

  • Download Sample Application (20974-111556-Get All the Databases on the Current Server.rar)



  • Responses


    No responses found. Be the first to respond and make money from revenue sharing program.

    Feedbacks      
    Popular Tags   What are tags ?   Search Tags  
    Display the Database on Current Server  .  

    Post Feedback


    This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
    You must Sign In to post a response.
    Next Resource: Retriving specific DataType values from an object array
    Previous Resource: All the SQL SERVER Instance on local network
    Return to Discussion Resource Index
    Post New Resource
    Category: VB.NET Syntax


    Post resources and earn money!
     
    Related Resources



    dotNet Slackers   BizTalk Adaptors    Web Design


    Contact Us    Privacy Policy    Terms Of Use