EARN OVER 9850 DOLLAR in 3 WEEKS !!!
Hello friends, Im Happy !!!
I ordered the programm and it really functions.
EARN OVER 9850 DOLLAR in 3 WEEKS !!!
READ THIS:
For everyone, who needs really money.
Are you on the search for a lucrative source of income? Would you like to
work of at home out of, without
yourself you someone makes directions? Would you yourself like to
determine, when, how much and like often you
salary? Work for yourself ?
Then you should take yourself a couple minutes time. You happily will be
that you did that and think gratefully at the day , at which you discovered
these
information.
I have this program found in the Internet, and after I read it, I found it
somehow interesting. I became curiously on the further and participated.
That it functions, noticed I at me even because I myself participated.
And that of all through a simple special business plan.
No anxiety - no university study need you to have graduated no education and
no lengthy training, in order to be
with this draft successful. It passes the will to the success. Everything
very simply is explained and can start
you immediately.
If you are ready to carry out simple directions, will be GUARANTEED
successful you!
Do I ask you: if you earn no money with a simple draft, with what then then?
After my experience, only
manageable drafts can be really successful.
The program is:
1) perfectly and ready for you to the money
2) earn like to can use.. absolutely no arrangement costs
3) as often repeatable as you want
4) everyone with internet access and e-mail-address can use it
5) absolutely no risk
6) You start in 5 minutes! It takes at most 15 minutes of your time
7) no website need
8) required.. no special knowledge
9) required.. no monthly costs
10) no checks - the money comes Online .. no calls, no sale
11) no failures
12) 100% legal.
13) 100% fool neutralizing
14) the money comes purely, also if you sleep or are on vacation
15) lifelong usefully
16) NO CHAIN-LETTER
I did the first steps shortly after I received the information.
I followed the simple directions that were announced per
email to me. The execution lasted less than 15 minutes and I had earned
really money. The sequences were spectacular! I was able to spend with
my family finally a beautiful vacation in the south - the first for some
time - and I could a brand-new car buy myself. And the best was that I owed
no one also only a single cent!
As you know, all GOOD Concepts costs money, but that concept you get is very
cheap and at all >> it functions !!!.
In order to receive the businesses - plan quickly, follow the lower
directions.
What we first require, is a fast and simple possibility to transfer money,
in order to received the business-plan quickly.
We need an "internet bank". It gives many internets - payments - systems.
You can, for example, use Paypal, if you want, because payments are
presently free of cost over Paypal.
Paypal has presently over 78 million customers and offers the certain
transfer of money into 56 countries
simply per e-mail address.
If you use yet no internet - payment - system, open now a cost-free BASIS -
PREMIUMS -ACCOUNT in PayPal.
click up: https://www.paypal.com , and look for your country
(should that link not active, copy it please into your browser)
(in -use-purpose- write / select you: - SERVICE -,
in - E-MAIL - reference - write you: - moneydraft -)
Paypal automatically sends the receiver and your a mail that you paid a
payment.
You get after short time that - money draft - and can start immediately.
IT IS SO EASY TO EARN MONEY, YOU WILL SEE AFTER ORDERING
THANKSI think it's only fair that you mention to interested parties that your
"business opportunity" requires a camcorder and sex with farm animals.
"EARN OVER 9850 EUR in 3 WEEKS" <cashmoney@.money.net> wrote in message
news:e9msoYtJGHA.3352@.TK2MSFTNGP12.phx.gbl...
> EARN OVER 9850 DOLLAR in 3 WEEKS !!!
> Hello friends, Im Happy !!!
> I ordered the programm and it really functions.
> EARN OVER 9850 DOLLAR in 3 WEEKS !!!
> READ THIS:
> For everyone, who needs really money.
> Are you on the search for a lucrative source of income? Would you like to
> work of at home out of, without
> yourself you someone makes directions? Would you yourself like to
> determine, when, how much and like often you
> salary? Work for yourself ?
> Then you should take yourself a couple minutes time. You happily will be
> that you did that and think gratefully at the day , at which you
> discovered
> these
> information.
> I have this program found in the Internet, and after I read it, I found it
> somehow interesting. I became curiously on the further and participated.
> That it functions, noticed I at me even because I myself participated.
> And that of all through a simple special business plan.
> No anxiety - no university study need you to have graduated no education
> and
> no lengthy training, in order to be
> with this draft successful. It passes the will to the success.
> Everything
> very simply is explained and can start
> you immediately.
> If you are ready to carry out simple directions, will be GUARANTEED
> successful you!
> Do I ask you: if you earn no money with a simple draft, with what then
> then?
> After my experience, only
> manageable drafts can be really successful.
> The program is:
> 1) perfectly and ready for you to the money
> 2) earn like to can use.. absolutely no arrangement costs
> 3) as often repeatable as you want
> 4) everyone with internet access and e-mail-address can use it
> 5) absolutely no risk
> 6) You start in 5 minutes! It takes at most 15 minutes of your time
> 7) no website need
> 8) required.. no special knowledge
> 9) required.. no monthly costs
> 10) no checks - the money comes Online .. no calls, no sale
> 11) no failures
> 12) 100% legal.
> 13) 100% fool neutralizing
> 14) the money comes purely, also if you sleep or are on vacation
> 15) lifelong usefully
> 16) NO CHAIN-LETTER
> I did the first steps shortly after I received the information.
> I followed the simple directions that were announced per
> email to me. The execution lasted less than 15 minutes and I had earned
> really money. The sequences were spectacular! I was able to spend with
> my family finally a beautiful vacation in the south - the first for some
> time - and I could a brand-new car buy myself. And the best was that I
> owed
> no one also only a single cent!
> As you know, all GOOD Concepts costs money, but that concept you get is
> very
> cheap and at all >> it functions !!!.
> In order to receive the businesses - plan quickly, follow the lower
> directions.
> What we first require, is a fast and simple possibility to transfer money,
> in order to received the business-plan quickly.
> We need an "internet bank". It gives many internets - payments - systems.
> You can, for example, use Paypal, if you want, because payments are
> presently free of cost over Paypal.
> Paypal has presently over 78 million customers and offers the certain
> transfer of money into 56 countries
> simply per e-mail address.
> If you use yet no internet - payment - system, open now a cost-free
> BASIS -
> PREMIUMS -ACCOUNT in PayPal.
> click up: https://www.paypal.com , and look for your country
> (should that link not active, copy it please into your browser)
>
> (in -use-purpose- write / select you: - SERVICE -,
> in - E-MAIL - reference - write you: - moneydraft -)
> Paypal automatically sends the receiver and your a mail that you paid a
> payment.
> You get after short time that - money draft - and can start immediately.
> IT IS SO EASY TO EARN MONEY, YOU WILL SEE AFTER ORDERING
> THANKS
>
>
>
>
>
Showing posts with label functions. Show all posts
Showing posts with label functions. Show all posts
Thursday, March 22, 2012
Friday, February 17, 2012
Dynamic SQL Issues with Functions/SP
I am working on a reporting application that uses dynamic SQL to generate
result sets. My client initially used a non-dynamic user-defined function
that returned a table, but when I made the SQL dynamic, it turns out that
EXEC statements cannot be used within a function. Is there a way to return a
table variable from a stored procedure if I convert the function into a
stored procedure? Are there any workarounds for this?
--
Larry Menzin
American Techsystems Corp.>> Is there a way to return a table variable from a stored procedure if I
Table variables cannot be used as parameters or return values, however you
can use regular resultsets for similar functionality. Also see some other
alternatives at:
http://www.sommarskog.se/share_data.html
Anith|||Why are you trying to make udf dynamic? Why not, in your dynamic SQL, simply
include a call to the function?
Thomas
"Larry Menzin" <LarryMenzin@.discussions.microsoft.com> wrote in message
news:A7A7359A-B77C-486A-BDF9-2D86141A0B16@.microsoft.com...
>I am working on a reporting application that uses dynamic SQL to generate
> result sets. My client initially used a non-dynamic user-defined function
> that returned a table, but when I made the SQL dynamic, it turns out that
> EXEC statements cannot be used within a function. Is there a way to return
a
> table variable from a stored procedure if I convert the function into a
> stored procedure? Are there any workarounds for this?
> --
> Larry Menzin
> American Techsystems Corp.|||You can return a result set from a Stored Procedure with a SELECT statement.
Here's a really simplified example that uses dynamic SQL:
CREATE PROCEDURE dbo.usp_test
AS
DECLARE @.MySQL AS NVARCHAR(4000)
SET @.MySQL = N'SELECT * FROM master.dbo.sysmessages'
EXEC dbo.sp_executesql @.MySQL
GO
EXEC dbo.usp_test
GO
"Larry Menzin" <LarryMenzin@.discussions.microsoft.com> wrote in message
news:A7A7359A-B77C-486A-BDF9-2D86141A0B16@.microsoft.com...
>I am working on a reporting application that uses dynamic SQL to generate
> result sets. My client initially used a non-dynamic user-defined function
> that returned a table, but when I made the SQL dynamic, it turns out that
> EXEC statements cannot be used within a function. Is there a way to return
> a
> table variable from a stored procedure if I convert the function into a
> stored procedure? Are there any workarounds for this?
> --
> Larry Menzin
> American Techsystems Corp.|||> table variable from a stored procedure if I convert the function into a
> stored procedure? Are there any workarounds for this?
No
Can you explain what are you trying to accomplish?
AMB
"Larry Menzin" wrote:
> I am working on a reporting application that uses dynamic SQL to generate
> result sets. My client initially used a non-dynamic user-defined function
> that returned a table, but when I made the SQL dynamic, it turns out that
> EXEC statements cannot be used within a function. Is there a way to return
a
> table variable from a stored procedure if I convert the function into a
> stored procedure? Are there any workarounds for this?
> --
> Larry Menzin
> American Techsystems Corp.|||I am trying to join 4 result sets together, where each set is currently
generated as a table output variable from a UDF. UDF output is used directly
in JOIN statements in a stored procedure. If I convert UDFs to stored
procedures can I use stored procedure result sets in joins like UDF table
variables are used in joins, i.e.,
Select * From ExecSP1(parameters1) JOIN ExecSP1(Parameters2) JOIN
ExceSP1(Parameters3) ON ...
Larry Menzin
American Techsystems Corp.
"Alejandro Mesa" wrote:
> No
> Can you explain what are you trying to accomplish?
>
> AMB
> "Larry Menzin" wrote:
>|||You can use VIEWs in the manner you're talking about. Another option is to
create Temporary Tables with SELECT INTO or INSERT INTO in your SP and JOIN
them.
"Larry Menzin" <LarryMenzin@.discussions.microsoft.com> wrote in message
news:0E155215-A119-4980-B1B9-7DFC110E22AF@.microsoft.com...
>I am trying to join 4 result sets together, where each set is currently
> generated as a table output variable from a UDF. UDF output is used
> directly
> in JOIN statements in a stored procedure. If I convert UDFs to stored
> procedures can I use stored procedure result sets in joins like UDF table
> variables are used in joins, i.e.,
> Select * From ExecSP1(parameters1) JOIN ExecSP1(Parameters2) JOIN
> ExceSP1(Parameters3) ON ...
> --
> Larry Menzin
> American Techsystems Corp.
>
> "Alejandro Mesa" wrote:
>|||Larry,
No, you can not reference stored procedure from the "from" clause, but as
Anith pointed, there are other alternatives, like capturing the sp resultset
into a table (temporary or permanent) and use that table in subsequent
statements. Click the link posted by Anith Sen.
AMB
"Larry Menzin" wrote:
> I am trying to join 4 result sets together, where each set is currently
> generated as a table output variable from a UDF. UDF output is used direct
ly
> in JOIN statements in a stored procedure. If I convert UDFs to stored
> procedures can I use stored procedure result sets in joins like UDF table
> variables are used in joins, i.e.,
> Select * From ExecSP1(parameters1) JOIN ExecSP1(Parameters2) JOIN
> ExceSP1(Parameters3) ON ...
> --
> Larry Menzin
> American Techsystems Corp.
>
> "Alejandro Mesa" wrote:
>|||> If I convert UDFs to stored
> procedures can I use stored procedure result sets in joins like UDF table
> variables are used in joins, i.e.,
No and I don't see a reason why you would need to do that. You should be abl
e to
do the following:
Select *
From dbo.UDF1(parameters) As UDF1
Join dbo.UDF2(parameters) As UDF2
On UDF1.Key = UDF2.Key
...
This assumes that all of the functions are table-valued functions. If there
is
commonality amongst the parameters in the functions, you could create a sing
le
stored procedure that returns the data like so:
Create Procedure ReportXYZ(parameter1 as ...)
As
Select *
From dbo.UDF1(parameters) As UDF1
Join dbo.UDF2(parameters) As UDF2
On UDF1.Key = UDF2.Key
Return
Notice that no dynamic SQL is needed for any of this. You would simply call
the
stored procedure which would return the raw data for you.
Thomas|||Here's one of I'm sure many articles on this subject:
http://www.databasejournal.com/feat...cle.php/3386661
jp
Larry Menzin wrote:
> Alejandro,
> Can I capture the result set from the SP into a table variable, i.e.,
> DECLARE @.CurrentPeriodDataPrelim TABLE(
> Product VarChar(40)
> ,Region varchar(40)
> ,Market varchar(40)
> ,Channel varchar(40)
> ,MRC float
> ,Net float
> ,NumerLabel nVarChar(150)
> )
>
> Declare @.strSQL nvarchar(2000)
> Set @.strSQL = N'
> INSERT INTO @.CurrentPeriodDataPrelim (Product, Region, Market, Channel, MR
C,
> NET, NumerLabel)
> SELECT cat as Product, ...
> Or do I have to use temp tables with the '#' designation if I don't want t
o
> use permanent tables. Also, don't I worry about temp tables going out of
> scope?
>
>
result sets. My client initially used a non-dynamic user-defined function
that returned a table, but when I made the SQL dynamic, it turns out that
EXEC statements cannot be used within a function. Is there a way to return a
table variable from a stored procedure if I convert the function into a
stored procedure? Are there any workarounds for this?
--
Larry Menzin
American Techsystems Corp.>> Is there a way to return a table variable from a stored procedure if I
Table variables cannot be used as parameters or return values, however you
can use regular resultsets for similar functionality. Also see some other
alternatives at:
http://www.sommarskog.se/share_data.html
Anith|||Why are you trying to make udf dynamic? Why not, in your dynamic SQL, simply
include a call to the function?
Thomas
"Larry Menzin" <LarryMenzin@.discussions.microsoft.com> wrote in message
news:A7A7359A-B77C-486A-BDF9-2D86141A0B16@.microsoft.com...
>I am working on a reporting application that uses dynamic SQL to generate
> result sets. My client initially used a non-dynamic user-defined function
> that returned a table, but when I made the SQL dynamic, it turns out that
> EXEC statements cannot be used within a function. Is there a way to return
a
> table variable from a stored procedure if I convert the function into a
> stored procedure? Are there any workarounds for this?
> --
> Larry Menzin
> American Techsystems Corp.|||You can return a result set from a Stored Procedure with a SELECT statement.
Here's a really simplified example that uses dynamic SQL:
CREATE PROCEDURE dbo.usp_test
AS
DECLARE @.MySQL AS NVARCHAR(4000)
SET @.MySQL = N'SELECT * FROM master.dbo.sysmessages'
EXEC dbo.sp_executesql @.MySQL
GO
EXEC dbo.usp_test
GO
"Larry Menzin" <LarryMenzin@.discussions.microsoft.com> wrote in message
news:A7A7359A-B77C-486A-BDF9-2D86141A0B16@.microsoft.com...
>I am working on a reporting application that uses dynamic SQL to generate
> result sets. My client initially used a non-dynamic user-defined function
> that returned a table, but when I made the SQL dynamic, it turns out that
> EXEC statements cannot be used within a function. Is there a way to return
> a
> table variable from a stored procedure if I convert the function into a
> stored procedure? Are there any workarounds for this?
> --
> Larry Menzin
> American Techsystems Corp.|||> table variable from a stored procedure if I convert the function into a
> stored procedure? Are there any workarounds for this?
No
Can you explain what are you trying to accomplish?
AMB
"Larry Menzin" wrote:
> I am working on a reporting application that uses dynamic SQL to generate
> result sets. My client initially used a non-dynamic user-defined function
> that returned a table, but when I made the SQL dynamic, it turns out that
> EXEC statements cannot be used within a function. Is there a way to return
a
> table variable from a stored procedure if I convert the function into a
> stored procedure? Are there any workarounds for this?
> --
> Larry Menzin
> American Techsystems Corp.|||I am trying to join 4 result sets together, where each set is currently
generated as a table output variable from a UDF. UDF output is used directly
in JOIN statements in a stored procedure. If I convert UDFs to stored
procedures can I use stored procedure result sets in joins like UDF table
variables are used in joins, i.e.,
Select * From ExecSP1(parameters1) JOIN ExecSP1(Parameters2) JOIN
ExceSP1(Parameters3) ON ...
Larry Menzin
American Techsystems Corp.
"Alejandro Mesa" wrote:
> No
> Can you explain what are you trying to accomplish?
>
> AMB
> "Larry Menzin" wrote:
>|||You can use VIEWs in the manner you're talking about. Another option is to
create Temporary Tables with SELECT INTO or INSERT INTO in your SP and JOIN
them.
"Larry Menzin" <LarryMenzin@.discussions.microsoft.com> wrote in message
news:0E155215-A119-4980-B1B9-7DFC110E22AF@.microsoft.com...
>I am trying to join 4 result sets together, where each set is currently
> generated as a table output variable from a UDF. UDF output is used
> directly
> in JOIN statements in a stored procedure. If I convert UDFs to stored
> procedures can I use stored procedure result sets in joins like UDF table
> variables are used in joins, i.e.,
> Select * From ExecSP1(parameters1) JOIN ExecSP1(Parameters2) JOIN
> ExceSP1(Parameters3) ON ...
> --
> Larry Menzin
> American Techsystems Corp.
>
> "Alejandro Mesa" wrote:
>|||Larry,
No, you can not reference stored procedure from the "from" clause, but as
Anith pointed, there are other alternatives, like capturing the sp resultset
into a table (temporary or permanent) and use that table in subsequent
statements. Click the link posted by Anith Sen.
AMB
"Larry Menzin" wrote:
> I am trying to join 4 result sets together, where each set is currently
> generated as a table output variable from a UDF. UDF output is used direct
ly
> in JOIN statements in a stored procedure. If I convert UDFs to stored
> procedures can I use stored procedure result sets in joins like UDF table
> variables are used in joins, i.e.,
> Select * From ExecSP1(parameters1) JOIN ExecSP1(Parameters2) JOIN
> ExceSP1(Parameters3) ON ...
> --
> Larry Menzin
> American Techsystems Corp.
>
> "Alejandro Mesa" wrote:
>|||> If I convert UDFs to stored
> procedures can I use stored procedure result sets in joins like UDF table
> variables are used in joins, i.e.,
No and I don't see a reason why you would need to do that. You should be abl
e to
do the following:
Select *
From dbo.UDF1(parameters) As UDF1
Join dbo.UDF2(parameters) As UDF2
On UDF1.Key = UDF2.Key
...
This assumes that all of the functions are table-valued functions. If there
is
commonality amongst the parameters in the functions, you could create a sing
le
stored procedure that returns the data like so:
Create Procedure ReportXYZ(parameter1 as ...)
As
Select *
From dbo.UDF1(parameters) As UDF1
Join dbo.UDF2(parameters) As UDF2
On UDF1.Key = UDF2.Key
Return
Notice that no dynamic SQL is needed for any of this. You would simply call
the
stored procedure which would return the raw data for you.
Thomas|||Here's one of I'm sure many articles on this subject:
http://www.databasejournal.com/feat...cle.php/3386661
jp
Larry Menzin wrote:
> Alejandro,
> Can I capture the result set from the SP into a table variable, i.e.,
> DECLARE @.CurrentPeriodDataPrelim TABLE(
> Product VarChar(40)
> ,Region varchar(40)
> ,Market varchar(40)
> ,Channel varchar(40)
> ,MRC float
> ,Net float
> ,NumerLabel nVarChar(150)
> )
>
> Declare @.strSQL nvarchar(2000)
> Set @.strSQL = N'
> INSERT INTO @.CurrentPeriodDataPrelim (Product, Region, Market, Channel, MR
C,
> NET, NumerLabel)
> SELECT cat as Product, ...
> Or do I have to use temp tables with the '#' designation if I don't want t
o
> use permanent tables. Also, don't I worry about temp tables going out of
> scope?
>
>
Labels:
application,
client,
database,
dynamic,
functions,
generateresult,
initially,
microsoft,
mysql,
non-dynamic,
oracle,
reporting,
server,
sets,
sql,
user-defined,
working
Subscribe to:
Posts (Atom)