joboy2k

SQLite or SSH Which one is limiting me?

4 posts in this topic

#1 ·  Posted (edited)

So abit of a back story, i made a program for my work for about 10 users to access a SQLITE database (some locally, some not) and it was all being done through a shared folder and VPN software. Because of the speed issue when it was being used over the internet i moved the SQL database on to a RaspberryPi and modified my whole program to now do SQLlite queries over SSH to the RaspberryPi. This has been working very well. Results practically instant when local, or up to about a second or 2 when over the internet. 

 

The problem i am now coming against is that there seems to be a character limit, when ever there seems to be over 1026 characters it fails to send the request through SSH (using Plink.exe)

 

Does anyone know which one has this limit? and if so if there is a way of increasing the limit?

 

Just thinking about it, the limit could actually be with Plink.exe which i will start doing research on.

Edited by joboy2k
extra information

Share this post


Link to post
Share on other sites



#2 ·  Posted

SQLite per se can't be the limit you're hitting.


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

#3 ·  Posted

After alot of research i found nothing. so took a look at my code again, i realised inside an include that i made there is a line that says

 

If StringLen($SSH_SendString) > 999 Then
    Return(SetError(1,0,"String is over the character limit of 999"))
EndIf

 

I literally have no idea why i would or written this (must of been a reason at the time), but just wanted to apologise for wasting anyones time that read this post :) 

Share this post


Link to post
Share on other sites

#4 ·  Posted

Gun, bullet, foot: a common story!


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now