Click here to Skip to main content
15,922,574 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL Server Replication Pin
Blue_Boy1-May-08 0:11
Blue_Boy1-May-08 0:11 
GeneralRe: SQL Server Replication Pin
abdurrahman oğuz1-May-08 2:02
abdurrahman oğuz1-May-08 2:02 
QuestionSQL Query Issue: MSSQL vs. Access Pin
PDTUM30-Apr-08 19:33
PDTUM30-Apr-08 19:33 
GeneralRe: SQL Query Issue: MSSQL vs. Access Pin
Youtea30-Apr-08 20:26
Youtea30-Apr-08 20:26 
GeneralRe: SQL Query Issue: MSSQL vs. Access Pin
PDTUM1-May-08 3:54
PDTUM1-May-08 3:54 
GeneralRe: SQL Query Issue: MSSQL vs. Access Pin
Youtea1-May-08 16:29
Youtea1-May-08 16:29 
GeneralRe: SQL Query Issue: MSSQL vs. Access Pin
Rob Graham2-May-08 3:33
Rob Graham2-May-08 3:33 
GeneralRe: SQL Query Issue: MSSQL vs. Access Pin
PDTUM2-May-08 6:02
PDTUM2-May-08 6:02 
Rob,

Thank you for your thoughtful answer. Yes, It has been so long since I used OLEDB that I forgot that, but in this case, it was not the problem. I mentioned in the beginning that I was suspicious that it had something to do with the syntax passing the parameter. I found an obscure piece of code on the net yesterday that showed me the problem. It had to do with passing the single quotes. The solution is pasted below in the event that it might also help some others:

//For Access Query
string Sql1 = "SELECT DISTINCT T.Trans_Name AS Transmission, [M.Manufacturer] AS Manufacturer, [M.Concern] AS Concern, " +
"[M.Years] AS Years, [M.Description] AS Description, [M.ATB] AS Bulletin " +
" FROM Master AS M INNER JOIN Trans AS T ON M.Trans = T.Trans WHERE ";

string Sql2 = " AND ";
string trans = textBoxTrans.Text;
string Sql3 = " T.Trans_Name = \'" + trans + " \'";

Thanks to you and "Youtea" for your input, Pat
AnswerRe: SQL Query Issue: MSSQL vs. Access Pin
Mike Dimmick2-May-08 6:02
Mike Dimmick2-May-08 6:02 
QuestionHow to calculate count? Pin
GroCareer30-Apr-08 17:25
GroCareer30-Apr-08 17:25 
AnswerRe: How to calculate count? Pin
Harini N K30-Apr-08 18:58
Harini N K30-Apr-08 18:58 
QuestionDatabase upload and Append Pin
L²+D30-Apr-08 3:24
L²+D30-Apr-08 3:24 
AnswerRe: Database upload and Append Pin
Rob Graham30-Apr-08 11:42
Rob Graham30-Apr-08 11:42 
GeneralRe: Database upload and Append Pin
L²+D1-May-08 3:21
L²+D1-May-08 3:21 
GeneralRe: Database upload and Append Pin
Youtea1-May-08 16:36
Youtea1-May-08 16:36 
RantRe: Database upload and Append Pin
Youtea2-May-08 5:40
Youtea2-May-08 5:40 
GeneralRe: Database upload and Append Pin
L²+D2-May-08 6:41
L²+D2-May-08 6:41 
GeneralRe: Database upload and Append Pin
Rob Graham2-May-08 3:21
Rob Graham2-May-08 3:21 
GeneralRe: Database upload and Append Pin
L²+D2-May-08 5:00
L²+D2-May-08 5:00 
GeneralRe: Database upload and Append Pin
Rob Graham2-May-08 7:31
Rob Graham2-May-08 7:31 
GeneralRe: Database upload and Append Pin
L²+D6-May-08 11:14
L²+D6-May-08 11:14 
GeneralRe: Database upload and Append Pin
Rob Graham12-May-08 12:33
Rob Graham12-May-08 12:33 
QuestionMySql Connector .NET table exists Pin
annodomini230-Apr-08 2:56
annodomini230-Apr-08 2:56 
AnswerRe: MySql Connector .NET table exists Pin
Pete O'Hanlon30-Apr-08 3:27
mvePete O'Hanlon30-Apr-08 3:27 
AnswerRe: MySql Connector .NET table exists Pin
N a v a n e e t h30-Apr-08 3:34
N a v a n e e t h30-Apr-08 3:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.