-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: Swimmy
Message 1 in Discussion




  
    
    New Message on MumbaiUserGroup
  
  





      [***SPAM*** Score/Req: 06.65/05.00] Re: SQL Connection

    
  
    
      Reply

          
            
                
               
                  Reply to Sender
                    Recommend
                  
                  Message 2 in Discussion
                                                
            
          
        
                    
        
            
              From: 
              Swimmy
            
            
              

              


  
    
    New Message on MumbaiUserGroup
  
  





      SQL Connection

    
  
    
      Reply

          
            
                
               
                  Reply to Sender
                    Recommend
                  
                  Message 2 in Discussion
                                                
            
          
        
                    
        
            
              From: 
              Swimmy
            
            
              

              


  
    
    New Message on MumbaiUserGroup
  
  





      SQL Connection

    
  
    
      Reply

          
            
                
               
                  Reply to Sender
                    Recommend
                  
                  Message 1 in Discussion
                                                
            
          
        
                    
        
            
              From: 
              Swimmy
            
            
              

              Dear All,   What Authentication(Windows or SQL Server Connection) 
should I select while installing SQL server 2000. I have tried installing with 
windows Authentication. Now when i connect ot the database I am getting an  
error: "Login failed for user '(null)'. Reason not associated with a trusted 
SQL Server Connection"  the code is below:  
Dim conn As New SqlClient.SqlConnection 
Dim daPerson As New SqlClient.SqlDataAdapter 
Dim cmdInsert As New SqlClient.SqlCommand 
conn.ConnectionString = "Data source=localhost;Initial Catalog=swimmy" 
';Username=sa;password=sa" 
cmdInsert.Connection = conn 
cmdInsert.CommandType = CommandType.Text 
cmdInsert.CommandText = "Insert into Person 
(Name,Age,DateOfBirth,Address,TeleNo) values ('" & txtName.Text & "','" & 
txtAge.Text & "','" & txtDOB.Text & "','" & txtAddress.Text & "','" & 
txtTeleno.Text & "')" 
Try 
conn.Open() 
Catch ex As Exception 
MessageBox.Show(ex.Message) 
End Try 
cmdInsert.ExecuteNonQuery() 
conn.Close()  
          
        
      
          
  

    View other groups in this category.
  

  

      



          
        
      
          
  

    View other groups in this category.
  

  

      



          
        
      
          
  

    View other groups in this category.
  

  

      




-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to