contact
support
Download
order
news
AGG Software Forums
November 25, 2024, 07:41:01 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Welcome on our forum!
Home
Help
Search
Login
Register
AGG Software Forums
>
Online Help Center
>
Data loggers and plug-ins
>
SQL DB (MSSQL): Post NULL values
Pages: [
1
]
« previous
next »
Print
Author
Topic: SQL DB (MSSQL): Post NULL values (Read 16224 times)
pahag
Newbie
Karma: +0/-0
Posts: 2
SQL DB (MSSQL): Post NULL values
«
on:
June 23, 2010, 10:35:58 AM »
Hi.
I am posting an NMEA (comma separated string) to a database using Advanced TCP/IP Logger and SQL Database Professional.
I want a null - value to be sent to database if i don't get correct data from the parser.
Is it possible to send a NULL - value as default if there is no other value to send? If so: Is the procedure differet for string, float, int etc.
Best Regards,
PA.
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
Karma: +0/-0
Posts: 806
Re: SQL DB (MSSQL): Post NULL values
«
Reply #1 on:
June 23, 2010, 11:32:36 AM »
You can do it with the Script Execute plugin (override a parser item or change its value). We've discussed about this plugin in the previous topic.
Logged
pahag
Newbie
Karma: +0/-0
Posts: 2
Re: SQL DB (MSSQL): Post NULL values
«
Reply #2 on:
September 09, 2010, 03:12:55 PM »
Hi,
Thanks for the reply.
I have tried the following to make my SQL parser post NULL-value to the database:
In the Script Execute plugin (JScript):
Deleted the parser item (DeleteVariable(...))
Overwritten the parser item (SetVariable("LONGITUDE", NULL)) - Makes the paser post default value.
Overwritten the parser item (SetVariable("LONGITUDE", nil)) - Makes the paser post value 0.
But no changes to the items make my SQL parser post NULL.
Any ideas?
PA:
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
Karma: +0/-0
Posts: 806
Re: SQL DB (MSSQL): Post NULL values
«
Reply #3 on:
September 09, 2010, 04:36:23 PM »
Do you want always post NULL to a DB?
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
News & Feedbacks
-----------------------------
=> News and Updates
=> Site Comments
-----------------------------
Online Help Center
-----------------------------
=> Advanced Serial Port Monitor
=> Data loggers and plug-ins
=> Data loggers ActiveX
=> Advanced USB Port Monitor
=> Virtual Null Modem
=> Software for DNC and CNC
=> Other questions
-----------------------------
Development
-----------------------------
=> Feature Requests
Loading...