I am trying to create a batch file to automate a process for RMS. When I type in the sql statement in RMS Administrator it runs fine. But when I create a batch file I get an error message as follows:
Msg 208, Level 16, State 1, Server ******, Line 1 Invalis object name 'CUSTOMER'.
Here is the statement I am using (with the proper username and server name of course):
OSQL -U sa -P -S -Q "UPDATE CUSTOMER SET CustomText4=left(newid(),6) WHERE Customer.CustomText4=' '"
I then tried running several very simple osql statements from the command prompt and kept geting errors for invalid objects, syntax, etc. It seems like it did not recognize the table names. I'll venture a guess that RMS Administrator fills in some information or syntax on the back end that I am missing in my command prompt statement.
Any help would be appreciated!
An FYI for anyone using NitroSell's website integration (and possibly other
3rd party solutions)... ALL of your customer accounts are accessible via your website, not just the ones created via the website. Therefore if you have a non-web created account it will have a blank password field which in turn means that all you need to access the account (and personal information) is the account number. I think we can all agree that account number schemes are not to hard to figure out and therfore creates a security issue.