Tuesday, October 21, 2014

how to connect database using c# , vb , c++

Posted by Gnani Palepu  |  No comments


 if you want more related search please click here  
 please help to other  
 http://scriptquery.blogspot.in/  

 how to connect database using c# , vb , c++  
 //...........C# .net   
 public void CreateSqlConnection()     
 {     
 SqlConnection myConnection = new SqlConnection();     
 myConnection.ConnectionString = "Persist Security Info=False;Integrated Security=SSPI;database=northwind;server=mySQLServer;Connect Timeout=30";     
 myConnection.Open();     
 }    
 //...........VB.net   
 Public Sub CreateSqlConnection()     
 Dim myConnection As New SqlConnection()     
 myConnection.ConnectionString = "Persist Security Info=False;Integrated Security=SSPI;database=northwind;server=mySQLServer;Connect Timeout=30"     
 myConnection.Open()     
 End Sub 'CreateSqlConnection     
 //..........C++    
 public:     
 void CreateSqlConnection()     
 {     
 SqlConnection* myConnection = new SqlConnection();     
 myConnection->ConnectionString = S"Persist Security Info=False;Integrated Security=SSPI;database=northwind;server=mySQLServer;Connect Timeout=30";     
 myConnection->Open();     
 }   

 if you want more related search please click here  
 please help to other  
 http://scriptquery.blogspot.in/  


6:53 AM Share:

0 comments:

Get updates in your email box
Complete the form below, and we'll send you the best coupons.

Deliver via FeedBurner
Proudly Powered by Blogger.
back to top