Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!
The problem is the email_count value from the dataset is always 1 whether the e-mail address is found or not. But if I copy the exact sql string variable value and paste it into a Query in SQL Server Management Studio, some of the results are 0.
Dim connectionString As String = "Data Source=AV-W12-ROMS-1;Initial Catalog=RESUMES;Integrated Security=True" Dim sql As String = "" Dim connection As New SqlConnection(connectionString) Dim dataadapter As New SqlDataAdapter(sql, connection) Dim ds As New DataSet() Later on, there's a Loop reading lines in a TextBox: sql = "SELECT IsNull(SUM(1),0) as 'count' FROM [RESUMES].[dbo].[ftbl_resume_files] WHERE contains(file_stream, '" + email_address + "')" connection.Open() ds.Clear() dataadapter.Fill(ds) connection.Close() email_count = ds.Tables(0).Rows(0).Item(0) Main.DataGridViewCandidates.Rows.Add(candidate_name, email_address + " (" + email_count.ToString + ")", activity_date, date_available, title, skills_list, sql) End of Loop
|SQL works but want to get the XML node data separately||11||30|
|Connect remotely to SQL Server DB without TCP/IP enabled?||2||37|
|Broken .resx file generating errors||18||25|
|Store single record two values to ASP. NET Session using a Function running a ExecuteReader by executing a Sql Stored Procedure||2||13|