473,385 Members | 1,642 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Compile a CLR as an EXE

I am trying to compile a CLR function as an EXE. When I try to use the VBC
/target:exe command I get an error indicating that there is no sub-form. All
I have in the project is a SQL script that has an embedded cursor. The
cursor runs through some SQL tables and exports data in a format I want. I
want an executable so the end user can launch it without having access to
sql, etc.

Is this possible?
Oct 10 '08 #1
4 1721
If you mean a SQL Server CLR function it means, by definnition it runs
*inside* the SQL Server engine.

You could use ADO.NET to access a SQL Server on the network (wihtout SQL
Serer installed on the user machine).

Of course if the user doesn"t have "access to SQL" not even through a
network, he won't be able to run some code that takes data from SQL Server
(at least directly)...

You may want to elaborate a bit as what you are trying to do seems weird...

--
Patrice

"Dan Shepherd" <Da*********@discussions.microsoft.coma écrit dans le
message de groupe de discussion :
99**********************************@microsoft.com...
I am trying to compile a CLR function as an EXE. When I try to use the
VBC
/target:exe command I get an error indicating that there is no sub-form.
All
I have in the project is a SQL script that has an embedded cursor. The
cursor runs through some SQL tables and exports data in a format I want.
I
want an executable so the end user can launch it without having access to
sql, etc.

Is this possible?

Oct 10 '08 #2
I created the CLR in VB but I am not a VB expert. I would prefer to just
keep the whole thing in SQL using triggers, etc... but I cannot. All I want
to do is call the CLR and have it execute. Could I also do this by compiling
the CLR as a .dll and referencing it in another app? The other app would
need to open, run, and close without user intervention.

"Patrice" wrote:
If you mean a SQL Server CLR function it means, by definnition it runs
*inside* the SQL Server engine.

You could use ADO.NET to access a SQL Server on the network (wihtout SQL
Serer installed on the user machine).

Of course if the user doesn"t have "access to SQL" not even through a
network, he won't be able to run some code that takes data from SQL Server
(at least directly)...

You may want to elaborate a bit as what you are trying to do seems weird...

--
Patrice

"Dan Shepherd" <Da*********@discussions.microsoft.coma crit dans le
message de groupe de discussion :
99**********************************@microsoft.com...
I am trying to compile a CLR function as an EXE. When I try to use the
VBC
/target:exe command I get an error indicating that there is no sub-form.
All
I have in the project is a SQL script that has an embedded cursor. The
cursor runs through some SQL tables and exports data in a format I want.
I
want an executable so the end user can launch it without having access to
sql, etc.

Is this possible?

Oct 10 '08 #3
Where is McWilly? Oh, I know...answering this question IN THE WRONG
GROUP!!!!

VB 6 Lives!!
"Dan Shepherd" <Da*********@discussions.microsoft.comwrote in message
news:99**********************************@microsof t.com...
|I am trying to compile a CLR function as an EXE. When I try to use the VBC
| /target:exe command I get an error indicating that there is no sub-form.
All
| I have in the project is a SQL script that has an embedded cursor. The
| cursor runs through some SQL tables and exports data in a format I want.
I
| want an executable so the end user can launch it without having access to
| sql, etc.
|
| Is this possible?
Oct 10 '08 #4
Still unclear. If this is a SQL Server CLR Function you just call it from
within SQL Server as this is some code that runs server side inside SQL
Server the same way as if it was a native SQL Server function...

Try :
http://msdn.microsoft.com/en-us/library/ms189876.aspx

So your other app would just send some SQL Statement to the server that
would in turn call your CLR function...

--
Patrice
"Dan Shepherd" <Da*********@discussions.microsoft.coma écrit dans le
message de groupe de discussion :
1A**********************************@microsoft.com...
I created the CLR in VB but I am not a VB expert. I would prefer to just
keep the whole thing in SQL using triggers, etc... but I cannot. All I
want
to do is call the CLR and have it execute. Could I also do this by
compiling
the CLR as a .dll and referencing it in another app? The other app would
need to open, run, and close without user intervention.

"Patrice" wrote:
>If you mean a SQL Server CLR function it means, by definnition it runs
*inside* the SQL Server engine.

You could use ADO.NET to access a SQL Server on the network (wihtout SQL
Serer installed on the user machine).

Of course if the user doesn"t have "access to SQL" not even through a
network, he won't be able to run some code that takes data from SQL
Server
(at least directly)...

You may want to elaborate a bit as what you are trying to do seems
weird...

--
Patrice

"Dan Shepherd" <Da*********@discussions.microsoft.coma crit dans le
message de groupe de discussion :
99**********************************@microsoft.com...
I am trying to compile a CLR function as an EXE. When I try to use the
VBC
/target:exe command I get an error indicating that there is no
sub-form.
All
I have in the project is a SQL script that has an embedded cursor. The
cursor runs through some SQL tables and exports data in a format I
want.
I
want an executable so the end user can launch it without having access
to
sql, etc.

Is this possible?

Oct 13 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: janeaustine50 | last post by:
Python's InteractiveInterpreter uses the built-in compile function. According to the ref. manual, it doesn't seem to concern about the encoding of the source string. When I hand in an unicode...
5
by: Carmine Cairo | last post by:
Hi, I'm working on a project and today I've note a little problem during the compile fase. Here a little piece of code: // 1st version welldone = 0; size = p->getSize(); backbone = new...
5
by: Brice Prunier | last post by:
Here under 4 schemas i'm working with ( it may be long: sorry...) The context is the following : Resident.xsd imports Person.xsd and includes Common.xsd ( anonimous schema: no TargetNamespace )...
10
by: Chris LaJoie | last post by:
Our company has been developing a program in C# for some time now, and we haven't had any problems with it, but just last night something cropped up that has me, and everyone else, stumped. I...
6
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked...
15
by: steve yee | last post by:
i want to detect if the compile is 32 bits or 64 bits in the source code itself. so different code are compiled respectively. how to do this?
16
by: desktop | last post by:
I have read that using templates makes types know at compile time and using inheritance the types are first decided at runtime. The use of pointers and casts also indicates that the types will...
1
by: brianrpsgt1 | last post by:
Newbie here.... I have been able to successful pull info from a MySQL DB, get the results and output them in an HTML format using Cheetah to the screen using IDLE. I am doing this on a Windows...
3
by: NvrBst | last post by:
Right now I have C99 code in .c extensions. I compile it in VSC++ and it complains about a lot of errors. I change the extensions to .cpp and compile in VSC++ and it succeeds. Is there a way...
6
by: Ed Leafe | last post by:
I've noticed an odd behavior with compile() and code that does not contain a trailing newline: if the last line is a comment inside of any block, a syntax error is thrown, but if the last line is a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.