Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stored procedures and MS SQL or PostgreSQL
Message
From
03/01/2019 20:08:11
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
03/01/2019 18:08:06
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01664815
Message ID:
01665102
Views:
57
>Ok if I understand you, besides the language example that Dorris showed, you can write a stored procedure in another language (e.g. C# as you mentioned below) and then somehow "attach" this to the database and so when you call the function, the database is able to run the C# routine and return some value or table etc. Do I understand this correctly?
>
>Thanks,
>Albert

Yes you understood it right. .Net is supported by MS SQL Server. You can write SP, TVF, UDF, UDT (fancy abbreviations for Stored Procedure, Table Valued Function, ...). They are written as DLLs and then with a couple of T-SQL commands registered with the database (embedded in the database, you can move the DLL away after registering). Then it becomes part of it. For example, MS SQL Server, have getdate() for datetime(). You could write it in C# and then you would have DateTime() as if it is a built-in T-SQL function.

postgreSQL have this power on streoids, allowing you to use multiple languages for doing that (needles to say again, its own SQL is more powerful than MS SQL's T-SQL IMHO).
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform