Can't perform emptyfile operation on .mdf?

Hi all, 
I'm trying to move data from the original .mdf for a database into 8 new db files which I have already created as primary. 
USE [db_qr2]
GO
DBCC SHRINKFILE (N'db_qr2_data' , EMPTYFILE)
The problem is that every time I try to do this I get the following error message:
Msg 2555, Level 16, State 2, Line 1
Cannot move all contents of file "db_qr2_data" to other places to complete the EMPTYFILE operation.
Not sure why it won't let me. Ideally I want to empty the file to delete it and have it replaced by the 8 new .mdf files. 
How can I get this to empty properly for deletion?

Yes, you can remove the old MDF, but you have to create a new one first by changing the name firstThe
ALTER
DATABASE[tempdb]MODIFYFILE(
NAME=N'tempdev',
NEWNAME =N'tempdev_1',
FILENAME=N'V:\Instance
7\tempdb_1.mdf',
SIZE=100MB,
FILEGROWTH=0%);
This changes the focus away from the original file  'tempdb.mdf' by rename it logically and physically to 'tempdb_1' as the syntax show.. NOW the original file can be deleted from the disk for it is unlocked
Next you want to bring the MDF file back up to a usable level like 1000 or 10K GB ...
ALTER
DATABASE[tempdb]MODIFYFILE(
NAME=N'tempdev_1',
SIZE=10000MB,
FILEGROWTH=0%);
Lastly, here is a copy of post about dealing with the NDF files where you want to add and drop them, which I have tested and it works... You should perform your own test as well.
Thanks for the post
1. You cannot put the Tempdb in Single user mode, which is logical since it is a system database or sorts
2. The Restarting of your SQL Server instance prior to the execution of the REMOVE FILE command is essential
3. Here is my post from a TEST where I had added an NDF file..
Warning the TempDEV_2 file declaration got lost somehow in this process and the system thinks it is still there, which it is not.. So be careful and test your syntax on test server instance before you do what you need on a production server..
— my syntax
use tempdb
go
sp_helpfile
ALTER DATABASE [tempdb] ADD FILE ( NAME = N’tempdev_4′, FILENAME = N’V:\Instance 7\tempdb_4.ndf’, SIZE = 100MB, FILEGROWTH = 0% ) TO FILEGROUP [PRIMARY];
GO
DBCC SHRINKFILE (N’tempdev_4′ , 0) –shrink to 000 MB
GO
ALTER DATABASE [tempdb] MODIFY FILE ( NAME = N’tempdev_4′, SIZE = 0KB, FILEGROWTH = 0% );
GO
— The SQL Server Instance MAY have to be Restarted to clear all system usage pointers into the Tempdb database
— before this command can be performed
ALTER DATABASE [tempdb] REMOVE FILE [tempdev_4];
GO
sp_helpfile
[email protected]
end…
FHankFreeman

Similar Messages

  • I get an error message that you can't perform this operation

    My client gets an error message that "You can't perform this operation on this page now because someone (me) is currently editing or reviewing it." But I'm not. What is going wrong?

    Please ask your client to clear Contribute preference once and try the same scenario.
    Here are the steps how to clear the Contribute Preferences:
    For Mac, Contribute CS5
    1) Quit Contribute.
    2) (a) Go to "user/Library/Preferences" and delete the file "Adobe Contribute 6 Preferences".
    (b) Go to "user/Library/Application Support/Adobe/" remove "Contribute CS5".
    For Mac, Contribute CS4
    1) Quit Contribute.
    2) (a) Go to "user/Library/Preferences" and delete the file "Adobe Contribute 5 Preferences".
    (b) Go to "user/Library/Application Support/Adobe/" remove "Contribute CS4".
    If you use CS3, then delete "Adobe Contribute 4.1 Preferences" and "Contribute CS3" folder.
    For Win, Contribute CS5
    1) Quit Contribute.
    2) From Command prompt run the below two commands to remove the preferences
    a) reg delete "HKCU\Software\Adobe\Contribute 6" /f
    b) RD /S /Q "%Userprofile%\Local Settings\Application Data\Adobe\Contribute CS5"  
    For Win, Contribute CS4
    1) Quit Contribute.
    2) From Command prompt run the below two commands to remove the preferences
    a) reg delete "HKCU\Software\Adobe\Contribute 5" /f
    b) RD /S /Q "%Userprofile%\Local Settings\Application Data\Adobe\Contribute CS4"
    For CS3
    a) reg delete "HKCU\Software\Adobe\Contribute 4.1" /f
    b) RD /S /Q "%Userprofile%\Local Settings\Application Data\Adobe\Contribute CS3"
    Note: when you clear the preference all the existing connections will be lost. The connections needs to be recreated.
    Hope this helps you.

  • "Can not perform this operation because the layout is too complex"

    "Can not perform this operation because the layout is too complex"
    to create a 3D extrusion
    Hello
    Is it possible to work around and solve this problem?
    Without going through the box: cutting 4 part
    please
    xavier.

    Merci Violon popur tes conseilles, cool !
    After clipping of an object on a photo
    I want to make a 3D extrusion.
    With a picture of this size that does not work :
    1979/2765 300PP 31,3Mo
    I have this error message appears: “ Can not perform this operation because the layout is too complex ”
    For successful operation
    I must necessarily reduce the size of the photo to
    597/834 300PP 2,85Mo !!!
    How not to lose the pixel ?
    I need it additional plugins ?
    Version Adobe Photoshop : 14.2 (14.2 20131211.r.515 2013/12/11:23:00:00) x64
    Système d'exploitation : Mac OS 10.9.1
    Architecture système : UC Intel Famille :6, modèle :44, niveau :2 avec MMX, SSE Entier, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
    Nombre de processeurs physiques : 12
    Nombre de processeurs logiques : 24
    Vitesse du processeur : 2930 MHz
    Mémoire intégrée : 32768 Mo
    Mémoire libre : 27285 Mo
    Mémoire disponible pour Photoshop : 31299 Mo
    Mémoire utilisée par Photoshop : 90 %
    Taille de la mosaïque d'images : 1024K
    Niveaux de mémoire cache de l'image : 4
    2 X 2,93 GHz 6-Core Intel Xeon
    NVIDIA Quadro 4000 2048 Mo
    4 X 8 (32 Go) DDR3 @ 1066Mhz
    2 X OWC Mercury Extreme Pro 6G SSD Media (System acquisition / Projects)
      2 x 2 To de DD (5400tr/min)

  • Cant schedule refresh - We can't perform this operation because this workbook uses unsupported features. Correlation ID: 42e1a475-20ea-41ae-9d8d-e1889d4c2d77

    Hi all,
    I have a workbook with a set of scheduled refreshes (powerquery via the gateway from web api). I've modified it by adding a new source from the azure marketplace. I've successfully added it to the DMG
    I've uploaded the new report and I'm able to browse it successfully in powerbi
    But when I try to schedule a refresh I get the following error against all the data connections
    We can't perform this operation because this workbook uses unsupported features. Correlation ID: 42e1a475-20ea-41ae-9d8d-e1889d4c2d77
    Also get the error if I uncheck the new data source
    Below is my PQ query for the new data source. Which unsupported feature am I using?
    let
    Source = Marketplace.Subscriptions(),
    #"https://api.datamarket.azure.com/Data.ashx/BoyanPenev/DateStream/v1/" = Source{[ServiceUrl="https://api.datamarket.azure.com/Data.ashx/BoyanPenev/DateStream/v1/"]}[Feeds],
    ExtendedCalendar1 = #"https://api.datamarket.azure.com/Data.ashx/BoyanPenev/DateStream/v1/"{[Name="ExtendedCalendar"]}[Data],
    #"Filtered Rows" = Table.SelectRows(ExtendedCalendar1, each [YearKey] >= 2010 and [YearKey] <= 2020),
    #"Inserted End of Month" = Table.AddColumn(#"Filtered Rows", "EndOfMonth", each Date.EndOfMonth([DateKey]), type datetime),
    #"Inserted End of Quarter" = Table.AddColumn(#"Inserted End of Month", "EndOfQuarter", each Date.EndOfQuarter([DateKey]), type datetime),
    #"Inserted End of Week" = Table.AddColumn(#"Inserted End of Quarter", "EndOfWeek", each Date.EndOfWeek([DateKey]), type datetime),
    #"Renamed Columns" = Table.RenameColumns(#"Inserted End of Week",{{"DateKey", "Date"}}),
    #"Changed Type" = Table.TransformColumnTypes(#"Renamed Columns",{{"Date", type date}, {"EndOfMonth", type date}, {"EndOfQuarter", type date}, {"EndOfWeek", type date}}),
    #"Renamed Columns1" = Table.RenameColumns(#"Changed Type",{{"YearKey", "CalendarYear"}}),
    #"Inserted FiscalYear" = Table.AddColumn(#"Renamed Columns1", "FiscalYear", each Date.Year(Date.AddMonths([Date],6)), type number),
    #"Inserted FiscalMonth" = Table.AddColumn(#"Inserted FiscalYear", "FiscalMonthSortId", each Date.ToText(Date.AddMonths([Date],6),"MM"), type number),
    #"Inserted Month" = Table.AddColumn(#"Inserted FiscalMonth", "FiscalMonth", each Date.ToText([Date],"MMMM"), type text),
    #"Inserted Month1" = Table.AddColumn(#"Inserted Month", "CalendarMonthSortId", each Date.ToText([Date],"MM"), type number),
    #"Added Custom" = Table.AddColumn(#"Inserted Month1", "DateIsWeekDay", each if [DayOfWeekMon] > 5 then "no" else "yes"),
    #"Added Custom1" = Table.AddColumn(#"Added Custom", "HoursPerWeekDay", each if [DateIsWeekDay] = "yes" then 7.5 else 0.0),
    #"Changed Type1" = Table.TransformColumnTypes(#"Added Custom1",{{"DateIsWeekDay", type text}, {"HoursPerWeekDay", type number}}),
    #"Added Custom2" = Table.AddColumn(#"Changed Type1", "Custom", each Function.Invoke(DateTimeZone.UtcNow,{})),
    #"Split Column by Delimiter" = let #"Changed Type" = Table.TransformColumnTypes(#"Added Custom2", {{"Custom", type text}}, "en-AU"),
    #"Split Column by Delimiter" = Table.SplitColumn(#"Changed Type","Custom",Splitter.SplitTextByDelimiter(" +"),{"Custom.1", "Custom.2"})
    in #"Split Column by Delimiter",
    #"Changed Type2" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Custom.1", type datetime}, {"Custom.2", type time}}),
    #"Removed Columns" = Table.RemoveColumns(#"Changed Type2",{"Custom.2"}),
    #"Renamed Columns2" = Table.RenameColumns(#"Removed Columns",{{"Custom.1", "RefreshDateUtc"}}),
    #"Added Custom3" = Table.AddColumn(#"Renamed Columns2", "RefreshDateLocal", each [RefreshDateUtc] + #duration(0,10,30,0)),
    #"Changed Type3" = Table.TransformColumnTypes(#"Added Custom3",{{"RefreshDateLocal", type text}}),
    #"Added Custom4" = Table.AddColumn(#"Changed Type3", "RefreshDate", each [RefreshDateLocal] & " (UTC + 10.5)"),
    #"Changed Type4" = Table.TransformColumnTypes(#"Added Custom4",{{"DateInt", Int64.Type}, {"CalendarYear", Int64.Type}, {"HalfYearKey", Int64.Type}, {"QuarterKey", Int64.Type}, {"MonthKey", Int64.Type}, {"MonthOfYear", Int64.Type}, {"MonthOfHalfYear", Int64.Type}, {"MonthOfQuarter", Int64.Type}, {"QuarterOfYear", Int64.Type}, {"QuarterOfHalfYear", Int64.Type}, {"HalfYearOfYear", Int64.Type}, {"DayOfYear", Int64.Type}, {"DayOfHalfYear", Int64.Type}, {"DayOfQuarter", Int64.Type}, {"DayOfMonth", Int64.Type}, {"DayOfWeekMon", Int64.Type}, {"DayOfWeekSun", Int64.Type}, {"WeekOfYearISO", Int64.Type}, {"FiscalYear", Int64.Type}, {"FiscalMonthSortId", Int64.Type}, {"CalendarMonthSortId", Int64.Type}}),
    #"Added Custom5" = Table.AddColumn(#"Changed Type4", "CalendarMonthId", each [DateInt]/100),
    #"Round Down" = Table.TransformColumns(#"Added Custom5",{{"CalendarMonthId", Number.RoundDown}}),
    #"Changed Type5" = Table.TransformColumnTypes(#"Round Down",{{"CalendarMonthId", Int64.Type}}),
    #"Added Custom6" = Table.AddColumn(#"Changed Type5", "Custom", each Date.ToText([Date],"ddd")),
    #"Renamed Columns3" = Table.RenameColumns(#"Added Custom6",{{"Custom", "DayName"}}),
    #"Added Custom7" = Table.AddColumn(#"Renamed Columns3", "PastMonthFilter", each if [CalendarMonthId] < Number.FromText(DateTimeZone.ToText(Function.Invoke(DateTimeZone.UtcNow,{}),"yyyyMM")) then 1 else 0)
    in
    #"Added Custom7"
    Jakub @ Adelaide, Australia Blog

    I don't think that's it. I deleted all the powerview reports and worksheets containing pivot tables/charts, and the refresh worked with the function.invoke() call.
    The only reason that's in there is because the execution stops there when I dont have it and i have to manually click an 'invoke' button. If there's a way to get around that i'll happily try that instead.
    Hmm.. i think I found it, but i'll need to do some testing next year after the holidays to verify
    I had added two text boxes (name and desc) to one of my worksheets. I was able to test connection/schedule and run a refresh once I had deleted them.
    Weird, because o365 excel services had no problem displaying the worksheet containing the text boxes, but it looks like workbooks that contain text boxes don't work on a scheduled refresh
    Jakub @ Adelaide, Australia Blog

  • Can we perform Join operation using SQLCall with Datatabae Query

    Hi,
    I am working on Toplink SQLCall query. I am performing join operation but, it is giving error.
    so please, any can tell me . we can perform join operation using SQLCall with Database Query
    Thanking You.

    You can use joining with SQLCall queries in TopLink, provided your SQL returns all of the required fields.
    What is the query you are executing and what error are you getting?

  • Admin account can't perform some operations, that another admin account can

    This is a little complicated to explain:
    A friend of mine wanted to have 2 accounts on his brand new MacBook Pro 15" unibody (Mac OS X 10.5.6). I have set up them for him (let's call them account A and account B, at his request both with admin features) and installed some utilities (e.g. Perian, Flip4Mac, MPlayer, Skype etc...), all these in A. But he started to use B and already performed all the settings from his old computer (hours of work to set up everything) and he said, that the A account he wants just for seldom usage. I haven't seen any problem in this account priority switching, because I thought, that since they are both admin accounts, it doesn't matter. I was very wrong though:
    - all the applications, installed in A account always show before launching the warning, that the app was downloaded from the internet - normally you see it just once, but here it shows up always. Very annoying.
    - the worst part is that some operations always fail in B account, but perform normally in A account - Exporting movies in QT crashes in B, works in A
    - Setting up PDF preferences in InDesign works in A, doesn't work in B (it sees Acrobat settings, but doesn't allow to work with them). Interesting part is, that InDesign was already installed in B account but works perfect only in A...
    First step what I did in effort to fix this issue was repairing permissions (boot from installation disk, no good), then I erased the B account and performed repairing permissions again, but again still the same.
    Is there any way how to force system to treat the B account (now the only account at the computer) as fully valid admin account, that can perform all the operations, that were able in A account?
    I really wouldn't like to go back and start from scratch.

    It looks like it's just a seriously corrupt account.
    Make a new one, and see if it all works there.
    We could probably track down the cause, but it would take a LONG time, and it would probably just be quicker to make a new account and transfer files, emails, etc.

  • SP 2013 - Error: This operation can be performed only on a computer that is joined to a server farm

    Hello Community!
    I am working with SharePoint 2013 and I built a farm inside the firewall.  Then a decision was made to move the two WFE's to the DMZ.  Since that time, whenever I try to access the site collections, I get the error below.  Other information: All
    the web applications are on port 80, but I'm not having any problem with accessing Central Administration which is on port 8080; the network team did screw up the DNS originally, but I'm told it's correct now; the two WFE's servers show in my Manage servers
    on the Farm interface 2X, once with the server name, once with the fully Qualified Domain Name, the ones with the FQDN shows a Services Running status of Not Configured.
    Has anyone else ever seen this error and if so please provide guidance and instruction for fixing the error.
    Thanks!
    Tom
    Server Error in '/' Application.
    This operation can be performed only on a computer that is joined to a server farm by users who have permissions in SQL Server
    to read from the configuration database. To connect this server to the server farm, use the SharePoint Products Configuration Wizard, located on the Start menu in Microsoft SharePoint 2010 Products.
    Description:
    An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the
    code.
    Exception Details: System.InvalidOperationException: This operation can be performed only on a computer that is joined to a server farm by users who have permissions in SQL Server to read from the configuration database. To connect this server
    to the server farm, use the SharePoint Products Configuration Wizard, located on the Start menu in Microsoft SharePoint 2010 Products.
    Source Error:
    An unhandled exception was generated during the   execution of the current web request. Information regarding the origin and   location of the exception can be identified
    using the exception stack trace   below.  
    Stack Trace:
    [InvalidOperationException: This operation can be   performed only on a computer that is joined to a server farm by users who   have permissions in SQL Server to read from the configuration
    database. To   connect this server to the server farm, use the SharePoint Products   Configuration Wizard, located on the Start menu in Microsoft SharePoint 2010   Products.]
         Microsoft.SharePoint.Utilities.SPUtility.AlternateServerUrlFromHttpRequestUrl(Uri   url) +262
         Microsoft.SharePoint.Administration.SPAlternateUrl.GetContextUri(HttpContext   ctx) +385
         Microsoft.SharePoint.SPAppRequestContext.InitCurrent(HttpContext context)   +1013
         Microsoft.SharePoint.SPAppRequestContext.get_Current() +175
         Microsoft.SharePoint.SPGlobal.CreateSPRequestAndSetIdentity(SPSite site,   String name, Boolean bNotGlobalAdminCode, String strUrl, Boolean   bNotAddToContext, Byte[] UserToken,
    SPAppPrincipalToken appPrincipalToken,   String userName, Boolean bIgnoreTokenTimeout, Boolean bAsAnonymous) +400
         Microsoft.SharePoint.SPRequestManager.GetContextRequest(SPRequestAuthenticationMode   authenticationMode) +120
         Microsoft.SharePoint.Administration.SPFarm.get_RequestAny() +370
         Microsoft.SharePoint.SPLanguageSettings.GetGlobalInstalledLanguages(Int32   compatibilityLevel) +39
         Microsoft.SharePoint.Administration.SPTemplateFileSystemWatcher.RefreshInstalledLocales()   +103
         Microsoft.SharePoint.Administration.SPTemplateFileSystemWatcher.Initialize()   +130
         Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.System.Web.IHttpModule.Init(HttpApplication   app) +873
       System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr   appContext, HttpContext context, MethodInfo[] handlers) +582
         System.Web.HttpApplication.InitSpecial(HttpApplicationState state,   MethodInfo[] handlers, IntPtr appContext, HttpContext context) +322
         System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr   appContext, HttpContext context) +384
         System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)   +397
    [HttpException (0x80004005): This operation can be performed only on a computer that is joined to a server farm by users who have permissions in SQL Server to read from the configuration database. To
    connect this server to the server farm, use the SharePoint Products Configuration Wizard, located on the Start menu in Microsoft SharePoint 2010 Products.]
         System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +646
         System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest   wr, HttpContext context) +771
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18010
    Tom Molskow - Senior SharePoint Architect - Microsoft Community Contributor 2011 and 2012 Award -
    Linked-In - SharePoint Gypsy

    Hi Tom,
    According to your description, my understanding is that you got an error when you moved your SharePoint.
    This error occurs when the SharePoint farm administrator cannot connect to your configuration database. Please verify the followings:
    Make sure that from the SharePoint front end and application servers that you can ping your SQL server.
    Make sure that your Farm account has permission to the configuration database.
    Lastly verify that your database didn't for some reasons go into recovery mode.
    once everything is fine and you are still having issues, restart the SQL host service on the SQL server. Once the service is restarted you will need to reboot Central Admin and then your front end servers.
    In addition, as you built your farm inside the firewall, please disable the firwall, or create rules for SQL Server service in the firwall on SQL server. More information about creating rules in firewall, please refer to the following posts:
    http://social.technet.microsoft.com/Forums/en-US/c5d4d0d0-9a3b-4431-8150-17ccfbc6fb82/can-not-create-data-source-to-an-sql-server
    http://www.mssqltips.com/sqlservertip/1929/configure-windows-firewall-to-work-with-sql-server/
    Here is a similar post for you to take a look at:
    http://social.technet.microsoft.com/Forums/en-US/ea54e26c-1728-48d4-b2c5-2a3376a1082c/this-operation-can-be-performed-only-on-a-computer-that-is-joined-to-a-server-farm-by-users-who-have?forum=sharepointgeneral
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Create a SharePoint 2013 Appplication in C#,Error:This operation can be performed only on a computer that is joined to a server farm

    I want to create a sharepoint application in C#:
    SPFarm CurrentFarm = SPFarm.Local;
    SPWebApplicationBuilder webAppBlder = new SPWebApplicationBuilder(CurrentFarm);
    webAppBlder.UseNTLMExclusively = true;
    webAppBlder.AllowAnonymousAccess = false;
    webAppBlder.UseSecureSocketsLayer = false;
    SPWebApplication webApp = webAppBlder.Create();
    webApp.Provision();
    It's create a new application succeed,but when I view the site there is an error:
    This operation can be performed only on a computer that is joined to a server farm by users who have permissions in SQL Server to read from the configuration database. To connect this server to the server farm, use the SharePoint Products Configuration
    Wizard, located on the Start menu in Microsoft SharePoint 2010 Products.
    How can I fix this issue?
    ps:I had create some new application in sharepoint web site.It's all fine without any issue.
    The sharepoint server,sqlserver and the programs in the same machine.
    Besr regards

    Hi,
    I think below line is causing the error -
    SPWebApplicationBuilder webAppBlder = new SPWebApplicationBuilder(CurrentFarm);
    can you put that line within a try catch and see that causes an exception. If so,  you might try as below-
    SPSecurity.RunWithElevatedPrivileges(delegate()
    webAppBuilder = new SPWebApplicationBuilder(CurrentFarm);
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Error : 'The Connection can not be used to perform thsi operation

    Dear All,
    I am getting an error like 'The Connection can not be used to perform thsi operation, it is either close or Invalid in this context.
    Below is the code what am using:
    Sub Select_Query()
    Dim SQL_String As String
    Dim rs As ADODB.Recordset 'This holds the data
    Dim cn As ADODB.Connection 'Declaring Connection
    Dim cmdobj As ADODB.Command 'Declare command Object
    'Sheets("Payment").Select
    Set cn = New ADODB.Connection
    cn.Open ("Provider=MSDAORA;Data Source=MyDatabase;User ID=Prasad; Password=Prasad12;")
    Dim count_value As Long
    count_value = WorksheetFunction.CountA(Worksheets("Payments").Range("A:A"))
    For i = 4 To count_value
    SQL_String = Worksheets("Payments").Range("AA" & i).Value
    Set rs = New ADODB.Recordset
    rs.CursorLocation = adUseClient
    rs.Open SQL_String, cn, adOpenForwardOnly, adLockOptimistic, adCmdText
    Dim val As Integer
    val = rs.recordCount
    If val = 0 Then
    Worksheets("Payments").Range("AZ" & i).Value = "No"
    'Else
    'Worksheets("Uploaded").Range("O" & i).Value = "Yes"
    End If
    cn.Close
    Set con = Nothing
    Next
    'cn.Execute SQL_String
    'con.Close
    Set con = Nothing
    End Sub
    And select statment is picking one of the sheets, and SQL query is:
    ="SELECT sa.acct_id
    FROM ci_sa sa, ci_sp sp, ci_sa_sp ss, ci_sp_geo spg,ci_acct_char cac
    WHERE sa.sa_id = ss.sa_id
    AND ss.sp_id = sp.sp_id
    AND sp.sp_id = spg.sp_id
    AND spg.geo_type_cd LIKE '%RR%'
    AND spg.geo_val ='"&B4&"'
    and sa.ACCT_ID=cac.ACCT_ID
    AND cac.char_type_cd LIKE '%SDO%'
    AND TRIM (char_val) IN ('"&Master!G9&"')"
    Please help me in this..
    Regards,
    Prasad

    Please, this is a Oracle forum, not a VBA forum. Mark this thread as answered and post it in a VBA forum.

  • SharePoint 2013 - Server Error in '/' Application - This operation can be performed only on a computer that is joined to a server farm by users who have permissions in SQL Server to read from the configuration database

    Hi
    After I ran SharePoint configuration wizard successfully to upgrade to SharePoint 2013 / SP1.
    I can open Central Administration site just fine.
    but now when I open any Site collection,  I got this error.
    Server Error in '/' Application
    This operation can be performed only on a computer that is joined to a server farm by users who have permissions in SQL Server to read from the configuration database. To connect this server to the server farm, use the SharePoint Products Configuration
    Wizard, located on the Start menu in Microsoft SharePoint 2010 Products
    I have restarted all the servers:  SQL server, WFE and APP servers but still cann't get this resolve.
    Services on all servers are running,  IIS - application pools are running.
    Can someone help with where that could be a problem or if there is a solution.
    Thanks in advance for your comments or advices.
    Swanl

    Please verify the followings:
    Make sure that from the SharePoint front end and application servers that you can ping your SQL server.
    Make sure that your Farm account has permission to the configuration database.
    Lastly verify that your database didn't for some reasons go into recovery mode.
    once everything is fine and you are still having issues, restart the SQL host service on the SQL server.
    Once the service is restarted you will need to reboot Central Admin and then your front end servers.
    In addition, as you built your farm inside the firewall, please disable the firwall, or create rules for SQL Server service in the firwall on SQL server.
    More information about creating rules in firewall, please refer to the following posts: http://social.technet.microsoft.com/Forums/en-US/c5d4d0d0-9a3b-4431-8150-17ccfbc6fb82/can-not-create-data-source-to-an-sql-server http://www.mssqltips.com/sqlservertip/1929/configure-windows-firewall-to-work-with-sql-server/
    Here is a similar post for you to take a look at: http://social.technet.microsoft.com/Forums/en-US/ea54e26c-1728-48d4-b2c5-2a3376a1082c/this-operation-can-be-performed-only-on-a-computer-that-is-joined-to-a-server-farm-by-users-who-have?forum=sharepointgeneral 
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Operations that can be performed in MOUNT and MOMOUNT state

    Hello I need to understand this basic. I need to know what different type of operations can be performed in both MOUNT and NOMOUNT when one starts the database?
    Thanks!

    That depends on what Oracle does in both states :
    - in NOMOUNT state the instance is started and the init file (pfile or spfile) is read, but no information are known yet about the database structure (which are within the controlfile). This is the situation, for example, of a new database creation. You can change initialization parameters, or re-create the controlfile, but no actions can be performed on the existing database.
    - in MOUNT state the controlfile is read, and now the instance is aware of the database structure. You can do maintenance operations (e.g. changing from noarchivelog to archivelog and viceversa, making a full cold backup, changing datafiles location, and so on), but no user data can be read : to do this one the database must be OPENed.

  • Can not save the attachment you don't have appropriate permission to perform this operation

    i opened outlook.exe file then i have an error like cannot save the attachments you don't have appropriate permission to perform this operation so please solve my error 

    Hi,
    Before this issue occurred, what did you perform in Outlook?
    Based on the error message, it seems like a permission issue. Try to run Outlook as administrator, check if the issue persists.
    Please also try to start Outlook in Safe Mode. Sometimes the 3rd-party add-ins will cause the Outlook startup issue, run Outlook in Safe Mode will disable these add-ins:
    Press Win + R, type "outlook.exe /safe" in the blank box, press Enter.
    If there is no issue starting Outlook in Safe Mode, consider to disable the suspicious add-ins from FILE -> Options -> Add-Ins.
    If the issue still exists, please send me the image of the error message and let me know in detail the steps you performed before this issue occurred. To protect your private information, please send the image to our email address:
    [email protected]
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Microsoft Outlook 2010 The delegates settings were not saved correctly. Cannot activate Send-on-behalf-of list. You do not have sufficient permission to perform this operation on this object.

    I am trying to assign delegation to a user and I receive the following message.
    The delegates settings were not saved correctly.  Cannot activate Send-on-behalf-of list.  You do not have sufficient permission to perform this operation on this object.
    We are using 2010 for the server and client.  There are only specific mailboxes that this is happening for after being migrated from Lotus Notes.  The user can use their mailfile fine however it is just the delegation that appears corrupted somehow. 
    I'm not sure how to fix this.  I have checked the access through the security tab in ad and that looks fine.
    Any help would be appreciated.

    I did some more digging and I solved it.
    This would be the solution:
    In Active Directory Users and Computers
    -Click on VIEW
    -Click on ADVANCE FEATURES  (this is important otherwise you won't see
    the complete list in the next steps)
    -Click on the USERS container
    -Find the problem user's account
    -Right mouse the account and click on PROPERTIES
    -Click on the SECURITY tab
    -In the top box, click on the SELF account
    -In the bottom portion of the screen make sure the READ PERSONAL
    INFORMATION  & WRITE PERSONAL INFORMATION  should both be checked for
    ALLOW
    If you can compare the permissions for 'SELF' with another user you probably should set them accordingly to be safe. I noticed that for the user where setting delegates (SOB) did
    not work, more than those 2 permissions were missing.
    Good luck!
    David

  • Good day sir, please i just got an iPAD 4 and I have bee having a serious difficulties performing some operations on it of which  was told it is possible one of which is to create a microsoft word documents on my iPAD the second is attaching a file to y e

    Good day sir, please i just got an iPAD 4 and I have bee having a serious difficulties performing some operations on it of which  was told it is possible one of which is to create a microsoft word documents on my iPAD the second is attaching a file to y e mail in order too send Also, I have not been able to safe a download files on my iPAD as I do not have a download manager on it. Please, kindly send to me ways of getting these problems fixed as i am a young resarcher who sends a lot of mails and download as wel. Als, I am always on the move as this has propmted me in the first place to get an IPAD .
    Last but not the list II will equally wish to know if it will be possible for  me to use a pen to take seminar notes on my iPAD and safe the same on my iPAD fr later reference as it is done on other tablets ke samsung. I read somethng like stylus pen but I don't know how far. Please, kindly make an appropriate recommendaton for me and where i can get it. I reside in Turkey and currently a Ph.D stuudent in ine of the leading niversities in the country. Also, I will like to know if you ave ecoonomics text books that I can buy or published journas in apple store because i have searched but could not get  a desirerable ones.
    Once again, thanks for your anticipated prompt rely to my mail.
    Regards
    Wasu Fawole

    Have a look at the following:
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1

  • An error occurred while attempting to perform the operation.

    Hi All,
    I am getting an error while running the report:
    "An error occurred while attempting to perform the operation. Then operation did not complete successfully."
    Although I can see the data coming is correct, but don't know why this error is coming.
    I have seen for NULL values.
    How can I see the detail log to trace the error?
    Please help.
    Thanks,
    Himanshu Tiwari

    Hi,
    You can login as system using SQLPlus and use the DBMS_SYSTEM.set_sql_trace_in_session procedure to set trace on another Discoverer session. This should establish if there is any database error occuring in the Discoverer session.
    Rod West

Maybe you are looking for