SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Using SQL script through vb.net code
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kfsehgal
Starting Member

6 Posts

Posted - 02/15/2012 :  13:04:43  Show Profile  Reply with Quote
Hi,
I am new to SQL Server. I often find scripts over internet to perform different functions with SQL Server but I donot know how to use them in vb.net.

For example I want to run the following code through my vb.net application, but donot know how to do so. Please advise

ALTER LOGIN sa ENABLE ; GO ALTER LOGIN sa WITH PASSWORD = '' ; GO

Thanks

X002548
Not Just a Number

15586 Posts

Posted - 02/15/2012 :  13:20:45  Show Profile  Reply with Quote
Did you install SQL Server Client Tools?



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/


Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 02/15/2012 :  14:53:22  Show Profile  Reply with Quote
why do you want to do these admin related tasks through vb .net? you should be doing this through SQL servers client tool management studio

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000