Hanging "CREATE FUNCTION dbo.fn_ConvertVersionToNumber("
Hi there
I am in the process of upgrading from SharePoint 2007 to SharePoint 2013 (via 2010).
So far all small Content DBs have fully migrated no issues. Then we have one 80GB DB, and one 110GB DB, that are both doing something strange.
During the migration of these as part of the 2013 Visual Update process (all works with no issues up to here), at seemingly random points, the process hangs when at a SQL level (I have a script to tell me what actions are currently running on SQL at any
time) it is trying to do the following:
CREATE FUNCTION dbo.fn_ConvertVersionToNumber(
I have checked in the SQL DB and this has been created there successfully; yet in SQL the process just hangs there on this item; if left to run, it seems to hang indefinitely (I got to 100 Hours for one run). If I kill that SQL thread when I see it happening,
then all completes with no issues. However, it seems to happen again after the migration as well; sometimes when users access the site for the first time on a day; the page hangs indefinitely; and in SQL I again see it is trying to run the above CREATE FUNCTION
command - if I kill the thread again, all works fine.
While it is hanging, SQL reports no Blocking Locks; and CPU and RAM usage on both SP and DB servers is all very low (all is under 40% usage).
The environment is:
SP: SP 2013 with SP1 on Windows 2012 R2.
DB: SQL 2012 Standard with SP2 on Windows 2012 R2.
This is happening on DEV, UAT and PROD environments - any thoughts welcome.
Thanks
David
Hi David,
I have been dealing with similar issues for the past couple of weeks, and actually, we've had the same SQL blocking the migration process in some occastions.
Our scenario is a migration from SharePoint 2007 to 2013, for which we are using a third-party tool.
We've performed a couple of changes in an attempt to deal with the issue of blocking SQL transactions and/or processes.
First, we have disabled the AlwaysOn-configuration which was set to synchronous-commit. If you plan to configure high availability, you might find the follow article interesting: http://technet.microsoft.com/en-us/library/jj841106(v=office.15).aspx. Also,
we have set the recovery model of SQL Server to 'Simple'. Both changes have been made to unload SQL Server as much as possible.
For a couple of days, the migration continued without blocking transactions and processes, but then unfortunately every night we were having the same problem again.
We have now re-scheduled the Timer Jobs 'Microsoft SharePoint Foundation Usage Data Processing' and 'Solution Daily Resource Usage Update' to run in the morning, since we are
pretty sure that these were the culprit, as they seemed to be stuck when we checked in Central Administration. Also the blocking SQL statements seemed to be related to these timer jobs, judging from this document: http://download.microsoft.com/download/5/0/1/501ED102-E53F-4CE0-AA6B-B0F93629DDC6/SharePoint/[MS-WSSPROG2].pdf.
The results so far: one night of uninterrupted migration and the Timer Jobs have run without any problems.
I will post an update if there are any developments which are relevant to this issue.
Good luck!
Jacob
Similar Messages
-
How to execute created function in query wizard or query generator
Hi to all
i create a function in sql and i want to use this in a query wizard or query generator, I tried to include this function in my query to create a report . but i im receiving a error saying 'invalid build function',
running the query with the created function in sql server produce the expected result..
I would like to know if is possible to used this created function in the query wizard or function?
thanks
LorenHi Owen
Thank you for your reply
The function falls on scalar valued function , Here is my code
start of code -
USE [gk]
GO
/****** Object: UserDefinedFunction [dbo].[SalesForThisDate] Script Date: 01/19/2009 12:42:24 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER FUNCTION [dbo].[SalesForThisDate]
( @vItemCode nvarchar(20),
@FrmDate DateTime,
@ToDate DateTime
Returns Real
AS
BEGIN
RETURN (SELECT ISNULL(SUM(T1.[Quantity]),0)
FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
WHERE T0.[DocDate] Between @FrmDate and @ToDate
and t1.[ItemCode]=@vItemCode
GROUP BY T1.[ItemCode])
END
end of code -
then i tried to run this function on the query manager with this statement
SELECT T1.[ItemCode],
ISNULL(dbo.SalesForThisDate(T1.[ItemCode],'2008-10-1','2008-10-8'),0) Value1,
ISNULL(dbo.SalesForThisDate(T1.[ItemCode],'2008-11-1','2008-11-8'),0) Value2,
ISNULL(dbo.SalesForThisDate(T1.[ItemCode],'2008-12-1','2008-12-8'),0) Value3,
ISNULL(dbo.SalesForThisDate(T1.[ItemCode],'2009-1-1','2009-1-8'),0) Value4
FROM OITM T1
ORDER BY T1.[ItemCode]
executing this statements pop a error
"SalesForThisDate is not recognized build-in function name"
Thanks
Loren -
Create Functional Area via Job Architecture in Non-English language
Dear Experts,
We're running following environment.
- Windows Server 2003 Std SP2 64bit (32bit conversion completed)
- SAP ERP 6.0 EhP 4 Unicode system as back-end system for STVN
- STVN 2.1 SP1 with Japanese Language pack
- Language = Japanese and English
- TREX setting is not ready (will be ready soon)
The problem is we cannot create Functional Area via Job Architecture
if we log on Job Architecture module with JAPANESE.
(We can create Functional Area if we log on with ENGLISH)
[Procedure]
1. Launch Job Architecture module with Japanese
2. Job Architecture => Create Functional Area (under Tasks)
3. Key in [Title] and [Abbreviation], and then click [Add]
4. Error message "Not able to load DLL or CLASS" appears
I have already confirmed that if I do same thing with English,
Functional Area was created in ECC environment.
What settings am I missing?
Best Regards,
Masaya IizumiDear Luke and Eugene
Thank you very much for the reply.
I have understood that it is known issue for .NET platform for 2.1 SP1.
I will communicate with Nakisa Support.
Again, thank you very much for your kind cooperation.
Best Regards,
Masaya -
Doubt in export, import and table para when creating Function Module
Dear fellow ABAPers,
I have a doubt in defining export, import and table parameter while creating a function module.
I am calling a function module inside a user exit. Now in the user exit the SAP fills an internal table called i_lfa1 with all the data user has eneterd.
Now I want to pass this whole internal table to function module and the perform some checks on the values of internal table.
After that function module fills an error structure with values depending on some check.
1)
How do I pass this internal table to function module ?
When I am creating function module in se37 where do I define this iternal table type ? Is it in Import or Table parameter during function module creation?
2)
Where do I define error structure type (which is returned by function module to main program)? Is it in Export or table parameter during function module creation?
Please clear my doubt..
Relevant points will be awarded.
Regards,
Tushar.Hi Tushar,
1. How do I pass this internal table to function module ?
I assume u are creating your own Y/Z FM.
Pass it thru TABLES parameter.
2. When I am creating function module in se37 where do I define this iternal table type
Define this in TABLES interface.
What Type ?
THE SAME TYPE WHICH HAS BEEN DEFINED
WHILE PASSING IN THE USER-EXIT FUNCTION MODULE.
IF U SEE THE FM OF THE USER-EXIT,
U WILL COME TO KNOW.
3.
Where do I define error structure type (which is returned by function module to main program)? Is it in Export or table parameter during function module creation?
Define it in TABLES interace. (not in export, import)
(Since what u are going to return is an internal table)
U can take for eg. BDCMSGCOLL.
OR u can create your own Y/Z structure
for the same purpose.
(or u can use the structure type T100)
I hope it helps.
Regards,
Amit M. -
Creating function to calculate average value
Hi,
The below query was successfully return an average value. It returned 1 row.
SELECT AVG(Volume)
FROM security
WHERE
Type = 'Future' AND
Rating = 'AAA' AND
Code = 1 AND
(Day = ''14-mar-09' OR
Day = '16-mar-09' OR
Day = '');
I tried to use that function on my created function below.
CREATE OR REPLACE FUNCTION fn_Vol_Average
( v_DayLast_1_Week IN DATE,
v_DayLast_2_Week IN DATE,
v_DayLast_3_Week IN DATE )
RETURN NUMBER IS
v_Vol_Average NUMBER;
BEGIN
SELECT AVG(Volume) INTO v_Vol_Average
FROM security
WHERE
Type = 'Future' AND
Rating = 'AAA' AND
Code = 1 AND
(Day = v_DayLast_1_Week OR
Day = v_DayLast_2_Week OR
Day = v_DayLast_3_Week);
RETURN NVL(v_Vol_Average, NULL);
END;
I called that function by the following query. it was work, however it return the whole rows. It looks like the function perform the average calculation of each rows on the table.
Can anyone help me what is going on with the logic?
select fn_Vol_average('14-mar-09','16-mar-09','')
from security
--But since your function calculates the average over the whole security table, you wouldn't call this from a select statement which also reads the security table.
You just want to execute it once.
declare
l_vol_average number;
begin
l_vol_average := fn_Vol_average('14-mar-09','16-mar-09','');
dbms_output.put_line(l_vol_average);
end;By the way, be careful with your date parameters. You should use TO_DATE with a proper format mask to prevent conversion errors. -
How to create function module for getting customer name
Hi Experts,
How to create function module? when in import parameter kunnr values to be passed it must give name1 details according to the customer number...
how to write the logic in source code....
Regards,
Thiru. R1. First of all create function group.
2. Create function module using this function group.
3. If only one kunnr is needed at a time, create import parameter for it. But if many kunnr to be entered at a time,use table.
4. Fetch name1 for each kunnr from KNA1 table.
"->> if many kunnr
if not t_kunnr[] is initial.
select kunnr as kunnr name1 as name1
into table t_kunnr_name1
from kna1
for all entried in table t_kunnr
where kunnr = t_kunnr-kunnr.
endif.
sort t_kunnr_name1 by kunnr name1.
delete adjacent duplicates from t_kunnr_name1 comparing kunnr name1.
table t_kunnr_name1 will contain kunnr and its name1.
I hope logic is clear for you now.
Regards,
Aparna -
Acrobat 9.5 hangs creating PDFs.
Why does my Adobe Acrobat 9.5 hang when creating PDF? The progress bar just stop about 2/3 through. I have Windows 7. Thanks.
Say for example... I want to print an online "order" receipt to PDF. Or print to PDF a web page of any sort. It didn't used to hang up.
Date: Fri, 18 Jan 2013 13:27:24 -0700
From: [email protected]
To: [email protected]
Subject: Acrobat 9.5 hangs creating PDFs.
Re: Acrobat 9.5 hangs creating PDFs.
created by Daniel Flavin in Printing & Prepress - View the full discussion
Is this global to Create PDF or (more likely) for a particular file?
Is this Create PDF from
- multiple pdf's?
- from file(s)?
Crashes/Hangs related to Create PDF from file could indicate a corrupt image file within the source document.
Chop the document in half, try to Create PDF, try the other half of the file. It would not take long to isolate a bad page or graphic.
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5005329#5005329
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5005329#5005329
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5005329#5005329. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Printing & Prepress by email or at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
In my own NW RFC-SDK based application, I am trying to create a RFC module description the hard way, which is to not download such a description from a SAP system, but to craft the description on-the-fly using API functions RfcCreateFunctionDesc, RfcCreateTypeDesc, RfcAddTypeField, RfcAddParameter and RfcCreateFunction. When calling RfcCreateFunction the system responds with the message
"inconsistence in description detected: non-unicode length is too small".
As far as I can tell all values I provided in the API arguments are correct, including the unicode and non-unicode lengths in the type description of a structure that is underlying the only RFC parameter in the module.
Here is what the module isi supposed to look like:
module has only one Export parameter
the parameter is structured
the structure has a single field only, which is a character array of length 64 (i.e 128 bytes).
My application is unicode based. I added some code to the application to trace the API calls along with the argument values. Here is the output:
API RfcCreateFunctionDesc
Created function description object; returned handle: 024A1880
API RfcCreateTypeDesc
Created type description object; returned handle: 024A1A00
API RfcAddTypeField
Added Field to type description 024A1A00:
name DEST
type 0
nucLength 64
nucOffset 0
ucLength 128
ucOffset 0
decimals 0
typeDescHandle 00000000
extendedDescription 00000000
API RfcAddParameter
Added parameter to funtion description 024A1880:
name ATTRIBUTES
type 17
nucLength 64
ucLength 128
decimals 0
typeDescHandle 024A1A00
optional 0
direction 2
parameterText
defaultValue
extendedDescription 00000000
API RfcCreateFunction
Created function object from description 024A1880; returned handle: 00000000
RFC_INVALID_PARAMETER inconsistence in description detected: non-unicode length
is too small
Thanks so much for any help!Case closed. There was an API call missing in my code, RfcSetTypeLength, which sets the total lengths (unicode and non-unicode) of the structure after adding the structure components.Without that call the system assumes those lengths to be zero, thus the error ...
-
Create function as "/ as sysdba" not shipped/applied to logical standby
As the subject states, I was creating a password verify function and profile that used the function as sys "/ as sysdba" .
The function was not created on the logical standby and thus the profile create statement failed. The function was not even listed in the standby's alertlog, although the create profile statement was.
I created the function manually on the standby by connecting / as sysdba and creating the function and then restarted logical standby apply. The standby then created the profile and continued without error.
Is this a bug?
Should the SYS 'create function' be shipped and applied or not?
When the function create statement was run on the primary as a non-sys user with DBA privs, it created ok and was shipped and appeared on logical standby ok.
Any ideas DataGuard Gurus?
(9.2.0.7 on Solaris 8)I logged a Tar. Oracle says:
"Ideally any object created on sys schema should get skipped automatically. sys is consider as internal schema and objects created in sys schema should get
skipped"
"But because of the internal Bug.3576307 "LOGICAL STANDBY IS NOT SKIPPING DDL IT SHOULD." it is not skipping the DDL executed on sys schema. This bug
is fixed in 10.2.
You can issue following statement to enable the DDL skip on sys schema.
SQL> ALTER DATABASE STOP LOGICAL STANDBY APPLY;
SQL> EXECUTE DBMS_LOGSTDBY.SKIP_ERROR(SCHEMA_DDL, SYS, null, null)
SQL> ALTER DATABASE START LOGICAL STANDBY APPLY;
After which all DDL errors encountered on any object in the SYS schema would be ignored and processing continued. This can render the TEST schema objects unusable and, if necessary, you can later recreate the tables
using the INSTANTIATE_TABLE procedure."
Makes sense now. -
Creating Functions in SQL server
HI
i creating functions for specific purpose in the test database...
is it against SAP Support policy?
suggest me...if you are just going to start entries then you can .
But i have posted then Use replace function in SQL
SQL Syntax:
REPLACE( string1, string2, string3 )
Parameters:
string1
Any character string or binary expression that can contain the string from string2.
string2
Any character string or binary expression. This string is searching in string1.
string3
Any character string or binary expression. This string replace all occurrence of string2.
May it will work
Thanks
Manvendra Singh Niranjan -
How to create function panels for my own C functions?
I've been searching for a way to create my own function panels. CVI documentation seems to suggest that this can be done but the explanation inevitably turns to instrument drivers, not C functions.
I don't yet know what an instrument driver is. So far I've never needed one. I just want to know how to put plain old C functions that I've created into the library tree for coworkers to use. Is that practically possible?The facility is couched in terms of "instrument driver" but it can be used for an arbitrary CVI function you've created.
First make a function tree from File pull down menu new ... Function Tree
Then right click in blank function tree panel and create instrument or use Create pulldown menu, enter name as prompted, use help button. You need to choose a "prefix" for your function names.
The tricky part is when you want to add a function to your "instrument" you right click on the <create class or function panel window> token the first time, thereafter when adding a function you right click on one of the functions you've already added. In either case you want to "create function panel window" which brings up the function panel window editor whcih allows you to place input controls that match the function signature.
There's a learning curve but keep at it. The help is good, use it.
Menchar -
How to create function module in real time
hi experts,
can somebody explain a real time requiremwnt , to create a function module.
its very urgent.
i want elaborately.
regards,
subhasis.hi,
In real time
1. as per my knowledge we create function modules to Inbound IDOC /outbound processing..
2.Interface between a program..
Example we need to take some data from a report say materials and plant and process some bapi and return logfiles to the report we can use FM here too.
To create a function module
First you need to create a function group (function group holds a number of function modules relevant)
SE37>goto>function groups-->create group ..click this create group..
Now in the pop up enter the function groupname Eg: ZW_FG1 plus short text and saveit
Now again goto SE37--> enter new Function module name eg:ZW_FM1
and press F5.
Now again a popup you need to enter
function group name : ZW_FG1
and short test and save it..
Now the Function module is created under the Function group ZW_FG1.
write your export import table parameters and you source code.
rewards if useful
regards,
nazeer
Message was edited by:
nazeer shaik -
How to create function module in abap for VirtualProvider in bi
how to create function module in abap for VirtualProvider in bi ???????????????
can any one help me with simple example ?????????????????
Moderator message : Duplicate post locked. Read forum rules before posting.
Edited by: Vinod Kumar on Jun 15, 2011 4:40 PMHi ,
Thanks for replies about my question??.
If i am using the exit in my char relation ship how can i debugg that exit???
if i am using BPS0 how to do it???If i am using BPS_WB how to do it??
Case1.Variable (type Exit) I known how to do debugg this one in BPS0 but i'm not sure in BPS_WB??
Case2:Char Relation Ship(Type Exit) how to do in BPS0 and BPS_WB??.
Thanks. -
Hi All,
I've been running a SQL Profiler trace on all completing stored procedures and T-SQL batches on the database server of our SBOP 7.5 Sp3 environment in an attempt to try and get clues to some performance issues we're experiencing.
In the trace data, if I look at the error column and bring back only rows which indicate that an error occured whilst running the stored proc or T-SQL command, I see that the following command resulted in an error on numerous occasions:
CREATE TABLE [dbo].[tblLogHist]
[LogID] [int] IDENTITY (1, 1) NOT NULL
,[SystemName] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
,[JobName] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
,[UserID] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
,[Status] [int] NOT NULL
,[DateWritten] [datetime] NOT NULL
,[Message] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
If I look for the table tblLogHist in AppServer, it exists, but is empty. Hence presumably the error being obtained when SBOP tries to run the above command is "An object of that name already exists."
Does anyone know what this table is used for, why SBOP is repeatedly trying to create it and whether it should have any records in it?
Any help appreciated.
Many thanks,
Simon
Environment Details:
SBOP Version = 7.5 Sp3
2 x load balanced Windows 2003 app / web / reporting Services servers.
1 x SQL Server 2008 64bit SQL/Analysis Services ServerInto Appserver database you have a table tbllogs where the syste record all the error from the system.
This table can become quite big during the time and insert into this table can be very slow.
So tbllogHist willbe used to move records perodically from tbllogs.
In this way the size of tbllogs table will not be too big.
I hope this will help.
Regards
Sorin Radulescu -
Best practice - creating functions in data model vs. rtf template
Just a general question. Is there a best practice of creating functions in the data model vs. creating the functions in the data template?
For example, is it more efficient to sum two fields in my SQL query or to create a function in the template that sums the two fields? Just curious if there is any performance benefit of one over the other.
Thanks!anything you push it to DB(SQL), will be the faster than processing outside.
Maybe you are looking for
-
Hi All, I've asked this before, but did not get the answer I was hoping for; maybe I didn't state my problem clear enough. Let me ask again. If I have a table as below(format is: int, string, string): 1, Todd, Smith 10, Chris, Lee 5, Sue, Wilson How
-
What modification is required?
class TemperatureConversion public static void main (String args [ ] ) double x ; for ( x = 212 ; x > 200 ; x = x - 1 ) double y = ( x - 32) * 5/ 9 ; System.out.print ( " x = " + x ) ; System.out.print ( " y =
-
To save space on iCloud, I got rid of my Photos app. How do I get it back? I am using Mavericks OS.
-
i recently purchased star wars battlefront, and it worked fine on tiger...but once i upgraded to leopard, it didn't work. star wars battlefront clearly installed, but whenever i click on the icon, it bounces, the name shows up on the top bar like any
-
10.5.6 and Disk Warrior
After upgrading my Core 2 Duo MacBook to 10.5.6 with Combo Updater, I have had kernel panic when I try to run Disk Warrior (version 4.1.1) after rebooting from external firewire hard drive (with OS X 10.5.5 on external drive). Disk Warrior crashes du