Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.
Sub ValidateUser() 'get strUserName from environment strUserName = Environ("USERNAME") 'look for strUserName in Employee Table Dim EmailAliasParm As New SqlParameter("@FFEmailAlias", strUserName) 'EmailAliasParm.ParameterName = "@FFEmailAlias" 'EmailAliasParm.Value = strUserName connection.ConnectionString = connectionString selectStatement = "SELECT * FROM Employee WHERE EmailAlias = @FFEmailAlias" Dim selectCommand As New SqlCommand(selectStatement, connection) Try connection.Open() Dim reader As SqlDataReader = selectCommand.ExecuteReader(CommandBehavior.SingleRow) If reader.Read Then intEmployeeID = reader("ID") intManagerID = reader("ManagerID") strFirstName = reader("FirstName") strLastName = reader("LastName") strEmailAlias = reader("EmailAlias") Else MsgBox("no data") End If Catch ex As SqlException Throw ex Finally connection.Close() End Try
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.