Unsupported HTTP Function Call Was Made Error.
Hi experts,
I'm new to this forum. I have been searching around for the solution to the problem that i'm having, and I can solve it. I'm having the same problem as the title say....unsupported HTTP function call....The thing is that it worked on my development server. When I transfer all the source to a new pc and execute it, it failed with the error in the subject. I uninstalled and reinstalled everything. I ran the http://iissvrname/iisvirtualdir/sscesa20.dll and I get this "SQL Server CE Server Agent" which tell me that IIS & SQL CE are setup correctly. Here is the error log:
Source: Microsoft SQL Server 2000 windows CE edition
Number: 80004005
NativeError: 28017
Description: An incorrect or unsupported HTTP function call was made.
[,,,,,]
Param = 0
Param = 0
Param = 0
Param =
Param =
Param =
I'm running SQL 7 on the PC and using RDA to pull data from SQL7 db to the PocketPC.
Please help!!!
Thanks!
View Complete Forum Thread with Replies
Related Forum Messages:
Please Help Me To Resolve The 28017 Error (An Incorrect Or Unsupported HTTP Function Call Was Made), Thanks A Lot.
Now I need to synchonize the data in Pocket PC to the remote sql server database. I have configured the publication and the virtual directory in the server. When the Pocket PC directly connects to the server (that to say, the Pocket PC connects to the server through the ActiveSync), the data can be synchronized successfully. But when the Pockec PC connects to another computer () through the ActiveSync (this computer connects to the server through the network), the data cannot be synchronized. But when I run the application in the emulator in the same computer, the data can be synchonized with the server. using the following codes, the error message is: Error Code: 80004005 Message: Minor Err: 28017 Source: Microsoft SQL Server 2005 Mobile Edtion. private void ShowErrors(SqlCeException ex) { SqlCeErrorCollection oErrors = ex.Errors; StringBuilder oStrBld = new StringBuilder(); Exception oInner = ex.InnerException; foreach (SqlCeError oErr in oErrors) { oStrBld.Append("Error Code: " + oErr.HResult.ToString("X")); oStrBld.Append("Message : " + oErr.Message); oStrBld.Append("Minor Err.: " + oErr.NativeError); oStrBld.Append("Source : " + oErr.Source); foreach (int iNumPar in oErr.NumericErrorParameters) { if (iNumPar != 0) oStrBld.Append("Num. Par. : " + iNumPar); } foreach (String sErrPar in oErr.ErrorParameters) { if (sErrPar != String.Empty) oStrBld.Append(" Err. Par. : " + sErrPar); } MessageBox.Show(oStrBld.ToString(), "SqlCeException"); oStrBld.Remove(0, oStrBld.Length); } } The environment is: Client: Sql mobile (sql ce 3.0) Server: windows 2003 server sql server 2000 with sp4 IIS 6 And I'm quite sure the virtual directory is correct. Any body can help me? It's urget for me, thanks in advance.
View Replies !
A Connection Could Not Be Made To The Report Server Http://localhost/ReportServer
I recently installed Reporting Services onto the same computer that we have SQL 2005 Standard installed on. I ran the Reporting Services Configuration utility and have green check marks on all but: Encryption Keys (Blue ! Circle) Initialization (Greyed out X Circle) Email Settings (yellow ! triangle) I built my first report, but I get the following error when I deploy: TITLE: Microsoft Report Designer ------------------------------ A connection could not be made to the report server http://localhost/ReportServer. ------------------------------ ADDITIONAL INFORMATION: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message: -- <html> <head> <title>Configuration Error</title> <style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } </style> </head> <body bgcolor="white"> <span><H1>Server Error in '/ReportServer' Application.<hr width=100% size=1 color=silver></H1> <h2> <i>Configuration Error</i> </h2></span> <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "> <b> Description: </b>An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. <br><br> <b> Parser Error Message: </b>Could not load file or assembly 'Microsoft.BusinessFramework' or one of its dependencies. The system cannot find the file specified. (c:inetpubwwwrootweb.config line 77)<br><br> <b>Source Error:</b> <br><br> <table width=100% bgcolor="#ffffcc"> <tr> <td> <code><pre> Line 75: <add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" /> Line 76: <!-- <add name="Session" type="System.Web.SessionState.SessionStateModule"/>--> <font color=red>Line 77: <add name="EnterpriseInitializationModule" type="Microsoft.BusinessFramework.Security.EnterpriseInitializationModule,Microsoft.BusinessFramework" /> </font>Line 78: <add name="BPAdminRedirectModule" type="Microsoft.BusinessFramework.Portal.Administration.BPAdminRedirectModule,Microsoft.BusinessFramework.Portal" /> Line 79: <add name="BPHomeRedirectModule" type="Microsoft.BusinessFramework.Portal.Shell.BPHomeRedirectModule,Microsoft.BusinessFramework.Portal" /></pre></code> </td> </tr> </table> <br> <b> Source File: </b> c:inetpubwwwrootweb.config<b> Line: </b> 77 <br><br> <hr width=100% size=1 color=silver> <b>Version Information:</b> Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832 </font> </body> </html> <!-- [ConfigurationErrorsException]: Could not load file or assembly 'Microsoft.BusinessFramework' or one of its dependencies. The system cannot find the file specified. (c:inetpubwwwrootweb.config line 77) (c:inetpubwwwrootweb.config line 77) at System.Web.Configuration.HttpModuleAction.get_Entry() at System.Web.Configuration.HttpModulesSection.CreateModules() at System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) at System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) --> --. (Microsoft.ReportingServices.Designer) ------------------------------ BUTTONS: OK ------------------------------ Can anyone help?
View Replies !
A Connection Could Not Be Made To The Reporting Server Http://localhost/reportserver
Hi all, When I build a simple project using the report wizard project. When i deploy the report i get the following error. TITLE: Microsoft Report Designer ------------------------------ A connection could not be made to the report server http://localhost/ReportServer. ------------------------------ ADDITIONAL INFORMATION: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message: -- <?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Server Unavailable </title> </head> <body> <h1><span style="font-family:Verdana;color: #ff3300">Server Application Unavailable </span></h1> <p> <span style="font-family:Verdana;"> The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. </span></p> <p> <b>Administrator Note: </b> An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur. </p> </body> </html> --. (Microsoft.ReportingServices.Designer) ------------------------------ BUTTONS: OK ------------------------------ Could some one come to my rescue. Thanx in advance. Ronald
View Replies !
A Connection Could Not Be Made To The Report Server Http://[IP Address]/ReportServer
Hi I have sql server 2005 Business Intelligent studio on my machine and Report server on some other machine. I created one rdl file and tried to deploy it on the report server. I have checked the report folder name and everything. But the error mentioned in the subject is being thrown. Additional information is The request failed with HTTP status 407: Proxy Authentication Required. (Microsoft.ReportingServices.Designer) Please let me know what all I need to do to resolve the problem. Regards Rajesh
View Replies !
A Connection Could Not Be Made To The Report Server Http://localhost/ReportServer.
Hello Guys, Please take me out from this hell. I created report using VS2005 Business Intelligence Project. It builds fine. I can also see data in the design time. But when I am trying to deploy it gives me this error. TITLE: Microsoft Report Designer ------------------------------ A connection could not be made to the report server http://localhost/ReportServer. ------------------------------ ADDITIONAL INFORMATION: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message: -- <html> <head> <title>Configuration Error</title> <style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } </style> </head> <body bgcolor="white"> <span><H1>Server Error in '/ReportServer' Application.<hr width=100% size=1 color=silver></H1> <h2> <i>Configuration Error</i> </h2></span> <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "> <b> Description: </b>An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. <br><br> <b> Parser Error Message: </b>An error occurred loading a configuration file: Failed to start monitoring changes to 'c:inetpubwwwroot' because access is denied.<br><br> <b>Source Error:</b> <br><br> <table width=100% bgcolor="#ffffcc"> <tr> <td> <code><pre> [No relevant source lines]</pre></code> </td> </tr> </table> <br> <b> Source File: </b> c:inetpubwwwrootweb.config<b> Line: </b> 0 <br><br> <hr width=100% size=1 color=silver> <b>Version Information:</b> Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210 </font> </body> </html> <!-- [HttpException]: Failed to start monitoring changes to 'c:inetpubwwwroot' because access is denied. at System.Web.FileChangesMonitor.FindDirectoryMonitor(String dir, Boolean addIfNotFound, Boolean throwOnError) at System.Web.FileChangesMonitor.StartMonitoringFile(String alias, FileChangeEventHandler callback) at System.Web.Configuration.WebConfigurationHost.StartMonitoringStreamForChanges(String streamName, StreamChangeCallback callback) at System.Configuration.BaseConfigurationRecord.MonitorStream(String configKey, String configSource, String streamname) at System.Configuration.BaseConfigurationRecord.InitConfigFromFile() [ConfigurationErrorsException]: An error occurred loading a configuration file: Failed to start monitoring changes to 'c:inetpubwwwroot' because access is denied. (c:inetpubwwwrootweb.config) at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal) at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors) at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission) at System.Configuration.BaseConfigurationRecord.GetSection(String configKey) at System.Web.Configuration.RuntimeConfig.GetSectionObject(String sectionName) at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index) at System.Web.Configuration.RuntimeConfig.get_HealthMonitoring() at System.Web.Configuration.HealthMonitoringSectionHelper..ctor() at System.Web.Management.HealthMonitoringManager..ctor() at System.Web.Management.HealthMonitoringManager.Manager() at System.Web.Management.WebBaseEvent.RaiseRuntimeError(Exception e, Object source) at System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean canThrow, Boolean localExecute) at System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext context, Exception e) --> --. (Microsoft.ReportingServices.Designer) ------------------------------ BUTTONS: OK ------------------------------
View Replies !
A Connection Could Not Be Made To The Report Server Http://localhost/reportServer..
hi, I got this error when I was trying to deploy the reporting into IIS.. A connection could not be made to the report server http://localhost/reportServer. ------------------------------ ADDITIONAL INFORMATION: The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version. (Microsoft.ReportingServices.Designer) ------------------------------ The request failed with HTTP status 404: Not Found. (Microsoft.ReportingServices.Designer) I am not able to solve it please help. Thanks.
View Replies !
Function To Call Function By Name Given As Parameter
I want to write function to call another function which name isparameter to first function. Other parameters should be passed tocalled function.If I call it function('f1',10) it should call f1(10). If I call itfunction('f2',5) it should call f2(5).So far i tried something likeCREATE FUNCTION [dbo].[func] (@f varchar(50),@m money)RETURNS varchar(50) ASBEGINreturn(select 'dbo.'+@f+'('+convert(varchar(50),@m)+')')ENDWhen I call it select dbo.formuła('f_test',1000) it returns'select f_test(1000)', but not value of f_test(1000).What's wrong?Mariusz
View Replies !
Error: &&"The Selected Object(s) Use An Unsupported Database Provider&&"
I just installed the latest VS 2008 C# Express and SSCE 3.5. I am trying to test the "LINQ to SQL" feature. I added a data connection to Nortwind.sdf, selected "Microsoft SQL Server Compact 3.5 (.NET Framework Data Provider for Microsoft SQL Server Compact 3.5)" as data provider, tested the connection, and get the following error when I drag and drop the "Customers" table on the design surface "The selected object(s) use an unsupported database provider" ?. I can create new tables and view existing tables etc. except droppinjg it on the design surface. What am I doing wrong? The installation on my WindowsXP machine went without a hitch. Sam
View Replies !
Call A Function
Does anybody knows how to call a function from one VB source file to another VB source file?? I have create a MDI parent form, now i want to call the function of the child form from the parent form. Does anyone know this??
View Replies !
Need Help Understanding A Call To A Sql Function
Can someone help me to understand a stored procedure I am learning about? At line 12 below, the code is calling a function named"ttg_sfGroupsByPartyId" I ran the function manually and it returns several rows/records from the query. So I am wondering? does a call to the function return a temporary table? And if so, is the temporary table named PartyId? If so, the logic seems strange to me because earlier they are using the name PartyId as a variable name that is passed in. 1 ALTER PROCEDURE [dbo].[GetPortalSettings]2 (3 @PartyId uniqueidentifier,45 AS6 SET NOCOUNT ON7 CREATE TABLE #Groups8 (PartyId uniqueidentifier)910 /* Cache list of groups user belongs in */11 INSERT INTO #Groups (PartyId)12 SELECT PartyId FROM ttg_sfGroupsByPartyId(@PartyId)
View Replies !
Call Custom SQL Function In ASP.NET
I made an SQL function in MSSQL2000. This is a function that get's a calculated heat emission. When I run the Query in MSSQL2000 the function works. It calculates every emission for every row. When I call this SQL function in VS2005, it says it does not recognize the function. Does anyone know what this may cause? thank you. For the people who are bored, I added the SQL statement. The error is at the function SELECT TOP 15 tbProducts.prod_code, tbProductProperties.prop_height, tbProductProperties.prop_length, tbProductProperties.prop_type, tbProductProperties.prop_default_emission, tbProductProperties.prop_weight, tbProductProperties.prop_water_volume, tbProductProperties.prop_n_value, GetHeatEmission(50,70,20,[prop_default_emission],[prop_n_value]) AS customEmission FROM tbProductClassification INNER JOIN tbProducts ON tbProductClassification.clprod_fk_prod_id = tbProducts.prod_id INNER JOIN tbProductProperties ON tbProducts.prod_id = tbProductProperties.prop_fk_prod_id WHERE (tbProductClassification.clprod_fk_class_id = 3327) AND (prop_height >= '030') AND (prop_height = '060') AND (prop_length
View Replies !
Overload Function Call
Hi, I want to write one function like that dbo.function( number , 1 , 2 ) , but I would like to overload, and send char or number dbo.function( number, 'abx' , ' xpto' ). I would like to keep the same name, Can I do this? or Do I need to write to differents functions thanks,
View Replies !
Call Function For Inner Join
I have a procedure which has query like Query 1. Query 1 Select Clinetid from clinet inner join { select centerid from GetChildCenter(@Centerid) union select centerid from getParentCenter(@Centerid) } as Center c on c.Centerid = client.Centerid Query 2 declare @Center table ( centerid int) insert into @Center select centerid from getchildCenter(@Centerid) union all select centerid from getparentcenter(@Centerid) Select Clinetid from clinet inner join @Center c on c.Centerid = client.Centerid I just want to know which one is better performance wise.. because there is millions of rows for table center which is used by function getChildCenter() and GetparentCenter()
View Replies !
Trying To Call A Function On A Weekly Timer
I'm not sure this is the place for this question, but not sure where else to go. I've written asp.net code to read from a sql server 2005 db and send out customized emails based on user info.Currently the process gets rolling by clicking a button in a web page.The client doesn't want to click a button, they want to run the email sender on a timer.How can I set up my function to run on a timer either in asp.net or more likely called from sql server?
View Replies !
Call Function From Stored Procedure
Hi All, I'll admit that I'm not the greatest at stored procedure/functions but I want to learn as much as possible. So I have two questions: 1) I had VS2005 autogenerate a sqldatasource that created Select/Insert/Update stored procedures. When Updating a record and calling the stored procedure, I want to query another table (we'll call it tblBatchNo) that has only one record, Batchno. I want to put that current batchno into the Update statement and update the record with the current batchno. Can someone point me in the right direction? Remember that I'm still a beginner on this subject. 2) Can someone provide any links to online tutorials on t-sql? Thanks in advance. Curtis
View Replies !
How To Call A Function Using OLE DB Command Tranformation
Hello i am trying to call a function from the SQL server using Ole DB command Transformation using [dbo].[ConvertToDate] ?,?,?,? there are no errors while executing this transformation but this function returns a value Now i need to capture this value how do i do that using the OLE DB command Transformation or any other transformation Thanks
View Replies !
How To Bind Return Value From Function Call
I have a function that I need to call from an execute sql task. I want to bind the return value from the function to an ssis variable. Can someone please show me an example of what the function syntax needs to look like in order for this to work? I know that with sp's, you need to explicitly state the column names. I have tried many things without success. Thanks
View Replies !
Call Function In Data Flow
how can you call a sql function in data flow? I have a function that calculate age base on the data in two columns . I would like to call this function in data flow to calculate the age..
View Replies !
Trying To Call The Function A Web Service From Transact-SQL
I currently have the fllowing Stored Procedure. When I pass the the Url of the web service in the parameters, I'm having a sp_OAMethor read response failed error. I don't know how to pass the parameter as well as the name of the function in the Web Service I'm calling. Maybe I'm all wrong here with this code too? Thanks for any help. ALTER PROCEDURE [dbo].[pTAPServiceWeb] @sUrl varchar(200), @response varchar(8000) out AS DECLARE @obj int DECLARE @hr int DECLARE @status int DECLARE @msg varchar(255) EXEC @hr = sp_OACreate 'MSXML2.ServerXMLHttp', @obj OUT IF @hr < 0 BEGIN RAISERROR('sp_OACreate MSXML2.ServerXMLHttp failed', 16, 1) RETURN END EXEC @hr = sp_OAMethod @obj, 'Open', NULL, 'GET', @sUrl, false IF @hr < 0 BEGIN SET @msg = 'sp_OAMethod Open failed' GOTO err END EXEC @hr = sp_OAMethod @obj, 'send' IF @hr < 0 BEGIN SET @msg = 'sp_OAMethod Send failed' GOTO err END EXEC @hr = sp_OAGetProperty @obj, 'status', @status OUT IF @hr < 0 BEGIN SET @msg = 'sp_OAMethod read status failed' GOTO err END -- IF @status <> 200 -- BEGIN -- SET @msg = 'sp_OAMethod http status ' + str(@status) -- GOTO err -- END EXEC @hr = sp_OAGetProperty @obj, 'responseText', @response OUT IF @hr < 0 BEGIN SET @msg = 'sp_OAMethod read response failed' GOTO err END EXEC @hr = sp_OADestroy @obj RETURN err: EXEC @hr = sp_OADestroy @obj RAISERROR(@msg, 16, 1) RETURN GO
View Replies !
Function Call In Insert Statment
Hi i m trying to call a function in insert statment Insert Into (value, value1) Value(@value, dbo.function(@value1) dbo.function returns a value, when i test the function in querry builder all goes fine. In my program i become a error "Parameterized Query '' ' expects parameter @value1 , which was not supplied." I m using visual studio , tableadapter.update function to insert datarecords in db thx for help
View Replies !
Function Call In Dataset Query
Hello Guys, I have a question that seems easy but I can not figure out... Premise: Have Custom code that fixes Divide by Zero Errors in SSRS. I have added the code to the Custom Code area in Report Properties correctly. I have a Dataset that has a calculation for a column within a select statement Query Pseudocode: select ...[FRC%]=convert(decimal(13,2),sum(cost))/convert(decimal(13,2),sum(income))... ,year from (subquery"blah" ) Union (Subquery"blah") Custom Code: Public Function SafeDiv(ByVal numerator as Double, ByVal denominator as Double) as Double if denominator = 0 then return 0 else return numerator/denominator end if End Function How To use: If you have a field that does division and you need to eliminate the divide by zero error that occurs with SSRS then type =code.SafeDiv(first,second) in the field. Problem: How do I add this code reference in the following dataset select statement select ...[FRC%]=convert(decimal(13,2),sum(cost))/convert(decimal(13,2),sum(income))... ,year from (subquery"blah" ) Union (Subquery"blah") table1 I tried to do this: from this: [FRC%]=convert(decimal(13,2),sum(cost))/convert(decimal(13,2),sum(income)) ... to this [FRC%]=code.Safediv(convert(decimal(13,2),sum(cost)),convert(decimal(13,2),sum(income))) ... But it did not work...gave me this error: TITLE: Microsoft Report Designer ------------------------------ An error occurred while executing the query. Cannot find either column "code" or the user-defined function or aggregate "code.safediv", or the name is ambiguous. ------------------------------ ADDITIONAL INFORMATION: Cannot find either column "code" or the user-defined function or aggregate "code.safediv", or the name is ambiguous. (Microsoft SQL Server, Error: 4121) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.1399&EvtSrc=MSSQLServer&EvtID=4121&LinkId=20476 ------------------------------ BUTTONS: OK ------------------------------ Help! P.S. this is a Matrix report and this select statement is within one of the datasets that fill a matrix.
View Replies !
How To Call A Userdefined Function Within A Stored
Hello All, How do i call a user defined function from within a stored procedure, I have created a simple function which takes firstname and lastname as parameters and returns the concatenated name string. That part works. declare @fullname varchar(400) @fullName=getFullName(@firstname,@lastname) As always thanks for all your input
View Replies !
Problem With Nested Function Call (UDFs)
Hello Folks,I encountered a problem with SQL server 2000 and UDFs.I have a scalar UDF and a table UDF where I would like the scalar UDFto provide the argument for the table UDF like in:SELECT*FROMtransaction_tWHEREtrxn_gu_id in (select get_trxns_for_quarter(get_current_quarter( GetDate() ) ))'get_current_quarter' returns an integer which is a GUID in a tablecontaining business quarter definitions, like start date, end date.'get_current_quarter' is a scalar UDF.'get_trxns_for_quarter' will then get all transctions that fall intothat quarter and return their GUID's in a table.'get_trxns_for_quarter' is a table UDF.This doesn't seem to work at all. Regardless whether I provide thenamespace (schema) calling the scalar UDF or not. Error message isjust different.Both functions operate correctly invoked un-nested.The whole expression does work fine if I turn 'get_trxns_for_quarter'into a scalar UDF as well, e.g. by returning just one trxn_gu_id withe.g. MAX() in a scalar datatype. But of course that's no good to me.It also works fine if I select the result of 'get_current_quarter'into a variable and pass that variable into 'get_trxns_for_quarter'.But that's no good to me either since then I cannot use the wholething embedded into other SELECT clauses.Both UDF's are non-deterministic but I couldnt see how that would havean impact anyway.Never mind the syntax on that example or anyhting, I tried all theobvious and not so obvious stuff and it really seems to come down tothe fact that one UDF is scalar and the other one is not. However, Idid not come across any type of information saying that this cannot bedone.Have you any ideas?Any help would be greatly appreciated.Carsten
View Replies !
How To Call A Function From A Column Formula In My MS SQL Table
Good day! What is the syntax on calling a function from a column formula in an MS SQL table. I created a table, one column's value will be coming from a function. And at the same time, I will pass parameters to the function. How do I do this? Is this correct? SELECT dbo.FunctionName([Parameter1, Parameter2]) But i can't save the table, "Error validating the formula". Pls. help Thanks a lot.
View Replies !
Why Does A Function Call Require Two Part Naming?
Hi, I just found out that when I create a user defined scalar function, I must call it using dbo.[myFunctionName]. Why won't it work w/out dbo? Why are stored procedures able to use omit dbo? Also, what is dbo specifying? I'm very unfamiliar with sql server security. Is this the user, schema, role? What's a schema? lol. Thanks.
View Replies !
How To Use The OLEDB Command To Call A Oracle Function?
HI, I want to use the OLEDB command to call a oracle function, but i havnt found any materials about how to do that, my oracle function is as below: CREATE OR REPLACE function GET_ZONEID_FROM_SYFZ(ycz varchar2,xc varchar2,strat_id varchar2) return varchar2 IS zone_id_result varchar2(10) ; begin PKG_DM_DQ.GET_ZONEID_FROM_SYFZ(ycz,xc,strat_id,zone_id_result); return zone_id_result; end; In OLEDB command transformation component, i fill the sql command with "select GET_ZONEID_FROM_SYFZ(?,?,?) from dual", but i dont have it worked. The error message is :provider can not derive parameter information and setparameterinfo has not been called. Who have any idea about how to make it work? Thanks ~~
View Replies !
Need Call A DB Function In The Middle Of The Dataflow Process
All, I have to use a field that is calculated in a data flow process and call a database function (return a value) to do anther calculation; then return a value back to the data flow. I tried OLD DB Command but I cannot configure to return a value back to the same data flow. If there any transformations that can call a DB function and get a value from the function in the middle of the data flow process? Need more detailed instruction. The data flow is Like: SourceDB Ã New_filed 1 = field1 + filed2 Ã New_filed 2= DB_function (New_filed 1) Ã Destination DB Thanks in Advance Jessie
View Replies !
Is Possible To Call A VB.NET Function Within Derived Transformation Editor
Hi, In a nut shell I want to be able to instruction some Data Analysts on how to modify SSIS packages using the simpliest solutions possible. This is because there are many different data sources and some of these data sources have a huge number of fields, and yes you guessed it these data sources are subject to change on a regular basis. A very common task they will need to do is to modify an SSIS package to do a to transform of a source date string format of "YYYYMMDD" into a date data type field within a table. Similar threads have advised the use of the Data Flow Transformations->Derived Column for this sort of thing. So within the Expression Text box I have inserted the following SSIS compatible SQL to convert the above string into a british format date data type; - Code Snippet (SUBSTRING(DOB_SRC,8,2) + "/" + SUBSTRING(DOB_SRC,5,2) + "/" + SUBSTRING(DOB_SRC,1,4)) But really what I want to be able to do is to instruct the Data Analysts to do is something like; - ConvertTextToDate(DOB_SRC) Where I previously defined that behaviour of ConvertTextToDate as a public VB.NET function. Can someone please help. I'm pretty certain I'm not the only one with this type of requirement. Thanks in advance, Kieran.
View Replies !
SOLVED: How To Call Scalar Function From JDBC
As an example, I have a scalar function called TRIM that takes a VARCHAR parameter, does a LTRIM(TRIM(VARCHAR)), and returns the result. How can I call this function from java using JDBC? I have only had luck calling basic stored procedures, but I need to call functions as well. Thanks, Ken
View Replies !
Function Call To Progress Linked Server
I have a Progress DB set up as a linked server. To get the data through to SQL Server 2005 in a useable format i need to use the progress PRO_ELEMENT function call. How do I delimit this so it gets passed to the progress DB. I've tried SELECT {fn PRO_ELEMENT(fldarr1,1,1)} as fld1 from ls1..pub.tab This just returns an unknown function message which I believe is on the SQL Server end of the call. This statement works fine through Business Objects. Any help greatfully received.
View Replies !
What Type Of Permission Needed To Call ListJobs() Function
I'm working on Application that requires me to check and display status of reports running on report server. My application calling ListJobs() function of Job class part of Reporting Services Web Service API. When i run my application i'm getting insufficient previleges error. So i need to find out what type of permission i need to excute ListJobs(). This is very important part of my app. Please help me out. Thanks, Viral Patel
View Replies !
Setting The Column Property Description With A SQL Function Call
I am trying to figure out how to set the Description of a Column in my database table by making a SQL function call. I know that I can go into Microsoft Studio Express and type in each desciption for each column. I just have about 1000 variables and each variable's description is in an Excel spreadsheet. I want to be able to build SQL code that will set each of the 1000 variables own description. Thanks for any help. Wesley Marshall
View Replies !
Can I Apply A Database Function Or Assembly Call In An Expression For Filter Data?
I need to translate a user€™s regional setting into one of our own language codes before I send it through as a filter to the model query. If our language codes were the same, the filter would look like this in the report filter - Language Code = GetUserCulture() Which translates to this in the database query (for us english) - table.language_code = 'EN-us' And of course I need it to look like this - table.language_code = 'ENG' I would like the logic to be globally available to all report writers (ie not forcing each report writer to have an iif or case stataement). I was thinking custom assemblies or maybe a database function, but at this level of the filter, I cannot seem to figure out how to embed a database function call to apply to the filter criteria like this Language Code = dbo.ConvertFcnIWrote(GetUserCulture()) Or how I would access the custom assembly in the filter expression. Do you have a recommended implementation for this situation? Thanks, Toni Fielder
View Replies !
HTTP 400: Bad Request Error. And ERROR: The Remote Name Could Not Be Resolved: 'host Header Value'
Whenever I attempt to access http://<server>/Reports, it comes back at me with an HTTP 400: Bad Request error. The http://<server>/ReportServer works fine. The error only occurs on /Reports, and the error is displayed using some of the page elements of the /Reports site. The reportserver and reports virtual directory are running under are not running under the default website on IIS 6. i created the reports and reportserver using the reporting services configuration tools. the website has a host header value and has an ip address. RSWebapplication.config looks like this : <ReportServerUrl>http://servername/ReportServer</ReportServerUrl> RSreportserver.config looks like this : <UrlRoot>http://servername/ReportServer</UrlRoot> i tried the following changes : 1 - from <ReportServerUrl>http://servername/ReportServer</ReportServerUrl> to <ReportServerUrl>http://host header value/ReportServer</ReportServerUrl> 2 - from <UrlRoot>http://servername/ReportServer</UrlRoot> to <UrlRoot>http://host header value/ReportServer</UrlRoot> now i get an error : ERROR: The remote name could not be resolved: 'host header value' ============================ RS Web app log file ============================ w3wp!ui!9!7/25/2007-10:30:07:: e ERROR: The remote name could not be resolved: 'host header value' w3wp!ui!9!7/25/2007-10:30:07:: e ERROR: HTTP status code --> 500 -------Details-------- System.Net.WebException: The remote name could not be resolved: 'host header value' at Microsoft.SqlServer.ReportingServices2005.RSConnection.GetSecureMethods() at Microsoft.ReportingServices.UI.Global.RSWebServiceWrapper.GetSecureMethods() at Microsoft.SqlServer.ReportingServices2005.RSConnection.IsSecureMethod(String methodname) at Microsoft.SqlServer.ReportingServices2005.RSConnection.ValidateConnection() at Microsoft.ReportingServices.UI.ReportingPage.EnsureHttpsLevel(HttpsLevel level) at Microsoft.ReportingServices.UI.ReportingPage.ReportingPage_Init(Object sender, EventArgs args) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.Page.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) w3wp!ui!9!7/25/2007-10:30:07:: e ERROR: Exception in ShowErrorPage: System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.End() at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm) at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg) at at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.End() at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm) at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg) Why is this happening. i have no problems with http://host header value/reportserver. only with report manager. What needs to be done to have report manager accessible via the internet ? Any help will be appreciated. Chi
View Replies !
Test Connection Failed Because Of Error Initializing Provider. The HTTP Server Returned The Following Error : Not Found
Hi All, I am using windows 2003 server and i have installed SSAS 2005 and configured http request for AS 2005 with this below url : http://www.microsoft.com/technet/prodtechnol/sql/2005/httpasws.mspx. I had tried all the possiblities given in this url. But i am getting like "Test connection failed because of error initializing provider. The HTTP Server returned the following error : Not found" when i create udl file. Moreover i have installed MSOLAP 3.0 and OLAP 9.0 provider and MSXML 6.0 Parser. Can you anyone please provide solution for this? Thanks in advance, Anand Rajagopal
View Replies !
|