Search found 8 matches

by skiko
Mon Mar 11, 2013 6:13 pm
Forum: Technical / Scripting
Topic: RegistryReadKey does not return value
Replies: 2
Views: 3551

RegistryReadKey does not return value

I am having trouble with RegistryReadKey not returning a value on windows 7, works on XP PRO

Code: Select all

RegistryReadKey>HKEY_LOCAL_MACHINE,SOFTWARE\NCR\SCOT - CoreApplication\ObservedOptions,ServerName,strValue
by skiko
Tue Jan 04, 2011 3:53 pm
Forum: Beginners
Topic: Newbie MS-SQL query timeout expired
Replies: 0
Views: 4593

Newbie MS-SQL query timeout expired

Newbie to SQL so any suggestions welcome DBconnect seems to work fine, I get a resault = 1 DBquery works fine on some remote machines, but others I get [MICROSOFT][ODBC - SQL Driver] Timeout expired not sure where to look THANKS!! LET>DD=TODAY DBConnect>Driver={SQL Server};Server=SQLSERVER2005\MASTE...
by skiko
Wed Oct 06, 2010 10:00 pm
Forum: Technical / Scripting
Topic: MS SQL Table Locked by another user
Replies: 2
Views: 4082

Need to test on a locked database but seems to work fine.

Found this litle peace of code of interest

USE master
EXEC sp_lock2

not sure how to use it yet, but kinda cool
Thanks for your help
by skiko
Wed Oct 06, 2010 1:23 pm
Forum: Technical / Scripting
Topic: MS SQL Table Locked by another user
Replies: 2
Views: 4082

MS SQL Table Locked by another user

New to databases, just using a simple dbconnect and dbexec. having a problem with an Update script if locked by another user. Looking for a way to see if table is locked befor doing update or a way to pass along the SQL error to the user or log. I am using macro Sched v12 with MS SQL 2005 I qet a qu...
by skiko
Fri Apr 02, 2010 1:49 am
Forum: Technical / Scripting
Topic: Unable to convert SQL INSERT Script to DBExec
Replies: 2
Views: 4293

Worked Great!!!!
:lol:

I am assuming you can do the same thing with UPDATE.

THANKS!!!
by skiko
Thu Apr 01, 2010 8:17 pm
Forum: Technical / Scripting
Topic: Unable to convert SQL INSERT Script to DBExec
Replies: 2
Views: 4293

Unable to convert SQL INSERT Script to DBExec

I am unable to convert the following SQL script into a macro, I can modify fields fine but cannot seem to get the insert function to work. INSERT INTO ItemRecord (location,itemCode) values (0,00026600303167) DBConnect>Driver={SQL Server};Server=%SQL_SERVER%\ACS;Database=item;Uid=sa;Pwd=%PASS%;,dbH D...
by skiko
Sun Dec 16, 2007 11:43 pm
Forum: Technical / Scripting
Topic: Formating Dollar values
Replies: 2
Views: 4028

THANKS!! Thats what happens when I over think things

THANKS!! Thats what happens when I over think things
by skiko
Sun Dec 16, 2007 8:49 pm
Forum: Technical / Scripting
Topic: Formating Dollar values
Replies: 2
Views: 4028

Formating Dollar values

I am trying to format a cost and retail dollar amount to 4 and 2 decimal places, this should be easy but my visual basic script blanks my two variable out and I get nothing. Any suggestions???? Let>retail=1.4 Let>cost=0.99 VBEval>FormatNumber(%retail%,2),retail VBEval>FormatNumber(%cost%,4),cost MDL...
Sign up to our newsletter for free automation tips, tricks & discounts