Hi team,
one of my production server getting below error in cluster environment but sql server services are running fine,here there is impact in production.
while I am trying to bring online again it's failing,
how can we reslove this issue.
Thanks,
Hi team,
one of my production server getting below error in cluster environment but sql server services are running fine,here there is impact in production.
while I am trying to bring online again it's failing,
how can we reslove this issue.
Thanks,
whenever a slowness issue or performance issue came in sql server how should I start?
Please guide.
Thanks
while calculating database size will it necessary to consider filestream filegroup size??
sp_spaceused stored procedure returns size of database but it consider only data and log files.
my question is : can we consider filestream filegroup size while calculating database size or is there any other way which already consider filestream filegroup size??
Hi All,
I have SP which inserts 100000000 rows at an average. But We want to keep transaction as small.
We decided to use batch separator in SP. It should load 100000 rows in a transaction.
How to specify rows per batch in SP? and Will it be helpful?
Thanks
Team,
I am have Microsoft SQL Server 2008 SP1( 10.0.2734.0) 64bit with application being SCCM 2007
I am getting below error in SQL error log ::
Error 8645: Severity 17, state 1
A time out occurred while waiting for memory resources to execute the query in resource pool ‘internal’. Re-run the query.
At first glance, i thought that it is issue of query not getting enough memory.
Searched on google but could not get way to resolve it or issue creating factor.
Chetan
I have SQL Server with many database init.
Now i want create new login under this instance. So i can access all the database but i am unable to create new login.
As this server was installed by some other developer . Even i dont have sa credentials.
Note: for that database LOG SHIPPING is going on.
We are trying shrinking the log file but no use.
The final option is truncate the log file, if we truncate the log file LOG SHIPPING working or not
If truncate the log file log shipping LSN break or not? LSN break how we shrink the log shipping with take the full backup. The database size is more.
I have a database backup of a 2008R2 database sitting on Machine1. I want to restore it to Machine 2, which is SQL 2012. both machines are on the same domain. Below is my script but I am getting the error" The operating sytem returned the error '5(Access is denied,)' while attempting 'RestoreContainer: ValidateTargerForCreation on 'D:SQL\MSSQL11.MSSQLSERVER\MSSQL\Data'. This error is followed by File 'DBName" cannot be restored to 'D:SQL\MSSQL11.MSSQLSERVER\MSSQL\Data'. Use WITH MOVE to identify a valid location for the file.
RESTORE DATABASE DatabaseName FROM DISK = N'\\SQLSVR\FullBackups\DatabaseName\DatabaseName.bak' WITH FILE = 1, MOVE N'DatabaseName' TO N'D:\SQL\MSSQL11.MSSQLSERVER\MSSQL\DATA'; RESTORE DATABASE ISSPortal FROM DISK = N'\\SQLSVR\FullBackups\ISSPortal\ISSPortal.bak' WITH FILE = 1, MOVE N'ISSPortal' TO N'D:\SQL\MSSQL11.MSSQLSERVER\MSSQL\DATA' , MOVE N'ISSPortal_Log' TO N'D:\SQL\MSSQL11.MSSQLSERVER\MSSQL\DATA', REPLACE GO
If I run the second query then I get File 'D:SQL\MSSQL11.MSSQLSERVER\MSSQL\Data' is claimed by 'DatabaseName_Log' and 'DatabaseName' . The WITH MOVE clause can be used to relocate one or more files.
I have granted the database engine service access to the path where the backup lives on machine 1.
Lee Markum
SQL Server: 2008 R2 SP2
Before describing my problem, I have gone via the forum, there is no view or functions inside my stored procedure
When running a particular stored procedure inside crystal report, the error " Could not continue scan with nolock due to data movement" comes once every few weeks. After I clear the query cache plan, it works again for few weeks and the problem
comes again. During these few weeks, there is no restart or query plan clearing.
If I run the stored procedure inside SSMS, where the SQL statement is copied and pasted from SQL profiler during crystal report run, there is no error.
I discovered running in SSMS and crystal report generate 2 different query plans even I copied the SQL from SQL profiler, I have actually saved the query plans. Unfortunately, this forum does not accept attachments, or otherwise I will post my query plans here.
There is one thing I notice about the query plan is during nested loop operation, there is a warning "no join predicate". I don't use any views or UDF in the statement, nor did I use pre-1992 ANSI join syntax. However, I did use table variables.
My guess is whether this will cause " Could not continue scan with nolock due to data movement", after I clear the cache, I run crystal report again, and I look at the plan again, the "nested loop no join predicate" warning is gone.
Running this stored procedure took 1 second maximum, even when this error is popping up, it pop up within 1 second.
DBCC checkdb has been run
The same stored procedure running by crystal report in a SQL 2008 (non r2) live environment has no problems, so I am thinking this is R2 specific problems.
The "nested loop no join predicate" error SQL statment is below, no views, no udf, but table variables
INSERT @ChequeAccount
SELECT PS.PaySummaryID, PS.EmployeeID, PS.CostCentreID,
(PS.GrossPay + PS.LumpSumA + PS.LumpSumB + PS.LumpSumD+ PS.LumpSumE+ PS.ETP+ PS.PaymentsAfterTax - PS.DeductionsAfterTax - PS.Tax- PS.ETPTax + PS.TaxRebate) * -1 AS Amount,
CGLM.GLAccountID
FROM Pay_Summary PS JOIN Input_Sheet ISH ON PS.InputSheetID = ISH.InputSheetID AND ISH.PayrollID = @binPayrollID
AND PS.PaySummaryID NOT IN (SELECT PaySummaryID FROM @ChequeAccount)
JOIN Payroll P ON P.PayrollID = ISH.PayrollID AND P.EmployerID = @binEmployerID
JOIN CustomGLFixMapping CGLM ON CGLM.EmployerID = P.EmployerID AND CustomGLFixMappingNameID = 1 AND CGLM.CostCentreID IS NULL
i implement sql 2014 std on server 2012 r2 on hyper-v
server has memory 30 GB
but memory use few about 16% always
i setting
maximum server memory in mb = 2147483647
minimum server memory in mb = 10240
why sql service not use memory more i think if use more is better performance
best regards
chatchai-netd
I know how to do this. but where exactly in what situation can this option be used?
I read something about this being useful in case of damaged files etc, but would appreciate better clarification.
appreciate the insights.
Hi,
Database mail has enabled in my infra.
I want to know who are all getting the mail alert from the SQL jobs.
I need to add a mail Id to a particular job alert.
Please guide me to do this.
Regards,
Vinodh Selvaraj
Vinodh Selvaraj
Hi,
I have one stored procedure that generate dynamic column name and i want to write that data into excel file.
But problem is that if i fixed the column name in excel file it is working fine but in case of dynamic column name , i am unable to write that data.
Please help me out.
Thanks
Ajay
I'm using an access database (.accdb) on a Windows 7 64 bit machine.
I'm interfacing with Labview 2013. I am using Microsoft Office 12.0 Access Database Engine OLE DB Provider. The "Test connection" works, but when Labview tries to open a connection and read the setup information, I get error -21468245
Please advise database level settings for all our databases for following items:
Virtual Log File
Database file growth settings
- And suggest what are the best practices around these items that we need to follow for future new databases. What are different things to consider?
- And also what would we need to do before making these changes on current databases?
Thanks,
Cannot connect to SQL Server 2005 SP4 instance running on Windows 2004 SP2:
Microsoft SQL Server 2005 - 9.00.5057.00 (Intel X86)
Mar 25 2011 13:50:04
Copyright (c) 1988-2005 Microsoft Corporation
Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 2)
No apparent related errors in Windows event logs, SQL Server logs.
Failure occurs using either SSMS or sqlcmd.exe regardless of authentication type (Windows, SQL Server)
Error occurs when attempting to connect using either TCP/IP or Named Pipes.
TCP/IP error: A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.) (Microsoft SQL Server,
Error: 10054)
Named Pipes error: A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: Named Pipes Provider, error: 0 - No process is on the other end of the pipe.) (Microsoft SQL Server, Error:
233)
Hi,
The issue is, a process, say "A" is running fine on certain days. On some days there are additional processes running on the server. When these additional processes are running, "Process A" suffers performance issue.
Interesting point is that, these additional processes were running since long time. But, earlier "Process A" was running fine even when these additional process were running. Suddenly from past 2 or 3 weeks there is performance issue in "Process A", when these additional process run.
Note: Nothing has been modified for the process A.
Process A is an SQL job which has SSIS Package and stored proc in different steps
When multiple parallel processes are running, SSIS Package step suffers around 40% increase in execution time, where as stored procs have only 15-20% increase in execution time
When Process A is executed while no other big processes are running, it's execution time is fine. From past few days, issue is only when, some other big parallel processes are running.
Currently below is my analysis:
Please let me know if you need any further information. Infact I am not able to diagnose what is the actual root cause for the performance issue in "Process A" as nothing has been modified.
Also it would be very much helpful, if I get any idea on different ways in reaching the actual root cause of this performance issue.
NOTE: This is a data warehouse
Thanks,
Raksha
Hi All,
I have what I feel may be a newbie question.
I am trying to connect Visual Studio SQL Server Object Explorer to a named instance of SQL server. The instance is sitting on a VM in Azure, and there is a port endpoint set up. The external port X is mapped to 1433 on the VM hosting SQL.
I am getting this error when I try to connect in the following ways webname\instance,port webname,port\instance webname,port
The Azure server name is : serviceName.cloudapp.net
The Instance is: INSTANCE
And the port is the external port number: 1234
I feel like I am making the newbie mistake in how I am naming the connection info. I have a valid set of SQL credentials that I have check locally. They cannot connect when outside the network, through the port.