>> > >>usr = "" >>pas = "" >>ConnStr = [driver=SQL Server; server=]+THESERVER+[; database=]+THESQLDB+[; uid=]+usr+[;pwd=]+pas+[; Trusted_Connection=No;] >>curHandle2 = SQLstringCONNECT( connStr ) >>cmd2 = [exec InTransitRNStatus ?']+fdBlNo+['] >>lr2 = SQLEXEC( curHandle2, cmd2, "sq2") && sq is the cursor the data is loaded into > >>
IF SQLEXEC( curHandle, cmd, "sq") = -1 messagebox(message()) ENDIFAnd you are correct, usr and pas aren't empty, I just didn't want to have the login info to the database online.