MS SQL Express native support

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
NetNinja
New User
New User
Posts: 6
Joined: Sun Jun 05, 2016 10:32 pm

MS SQL Express native support

Post by NetNinja »

Hi,
I'd like to have MS SQL Express (or standard) native support like sqlite or Postgre
thanks
infratec
Always Here
Always Here
Posts: 6874
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: MS SQL Express native support

Post by infratec »

As workaround:
Use ODBC with creating the DSN 'on the fly'.
NetNinja
New User
New User
Posts: 6
Joined: Sun Jun 05, 2016 10:32 pm

Re: MS SQL Express native support

Post by NetNinja »

infratec wrote:As workaround:
Use ODBC with creating the DSN 'on the fly'.
Yes, but ODBC is slow... The best thing is to have embedded, native support of MS SQL like sqlite or Postgre.
bye
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: MS SQL Express native support

Post by ts-soft »

NetNinja wrote:
infratec wrote:As workaround:
Use ODBC with creating the DSN 'on the fly'.
Yes, but ODBC is slow... The best thing is to have embedded, native support of MS SQL like sqlite or Postgre.
bye
But will never come, is not crossplattform!
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
bbanelli
Enthusiast
Enthusiast
Posts: 543
Joined: Tue May 28, 2013 10:51 pm
Location: Europe
Contact:

Re: MS SQL Express native support

Post by bbanelli »

ts-soft wrote:
NetNinja wrote:
infratec wrote:As workaround:
Use ODBC with creating the DSN 'on the fly'.
Yes, but ODBC is slow... The best thing is to have embedded, native support of MS SQL like sqlite or Postgre.
bye
But will never come, is not crossplattform!
What would be Windows solution for static linking to PB's EXE?
"If you lie to the compiler, it will get its revenge."
Henry Spencer
https://www.pci-z.com/
User avatar
the.weavster
Addict
Addict
Posts: 1537
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Re: MS SQL Express native support

Post by the.weavster »

NetNinja wrote:Yes, but ODBC is slow...
I don't see any inherent reason ODBC should be slow. A particular implementation of an ODBC driver may be slow but there's no reason it should be a universal truth.

Have you actually tested it?
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: MS SQL Express native support

Post by Lunasole »

From my experience that ODBC is only "relatively slow".
You should not use database if have no LOT of data (just because it is stupid and not optimal, to use whole SQL when dealing with amount which can easily be handled by those maps/hash-tables etc), and if you have such a lot, then ODBC overhead makes no any difference

Also what about MS SQL Server - I hated it, but it is so cool and nicely done comparing to any alternatives for windows/linux ^^
Anyway don't think it can be added to PB somehow, but adding ODBC support looks not too bad (and it can be done for all 3 platforms).

// some partially related offtop also:
However I would like more if something making work with C++ objects simpler be added natively, that's probably one of things that can make PB some "more professional" and interesting to more coders (hah, which is questionable plus, as often if something becomes too popular, it becomes averaged, degrades & die ^^). Why? Because those damn POO/classes are everywhere and it is damn complicated to deal with C++ from PB, if you want for example to write plugin for something like Photoshop or just use another library/engine. I would made separate topic for that if only had some ideas how this can be done nicely ^^
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
Post Reply