Quantcast
Channel: Forum SQL Server Database Engine
Viewing all 15889 articles
Browse latest View live

SQL server consumes memory

$
0
0
Hi, Technologies : Windows 2008 R2 enterprise ,16gb ram ,pegging file set to 16 GB,SQL Server 2008 R2 enterprises , VM Ware virtual server part of virtualized Data center. Issue :SQL server consumes memory around 15 GB, in task manager SQLsreve.exe process takes around 15gb. WeI have limited SQL server max memory to 10gb, and query to 2gb, but SQL sever still consumes memory. We want to know how can we trace memory consuming , which database is consuming memory , then how to drill down to find reason behind this issue ,might be there a query cause the issue .., which tools that I need to use to trace and figure out reason. Also ,we have on this sql server a database it's size around 1GB but its log file grows dramatically and becomes around 90 GB and the file still grows .

Cannot restore database from SQL server 2008 R2 to SQL server standard

$
0
0

I was trying to restore database from sql server 2008 R2 to sql server 2008 standard and got error.

The database was backed up on a server running version 10.50.4000. that version is incompatible with this server, which is running version 10.00.5500.

When i searched about it i found that it is due to compatibility problem.No where i didn't find solution other than importing database or scripting the database. Is there any other method i can use to solve this problem? Also can i set any property during creating database in sql server 2008 r2( i saw compatibility level  option while creating database) so that i can restore it in sql server 2008?

Thank you..

Error Parsing XML in Database Engine Tuning Advisor

$
0
0
I am running SQL server 2008 SP1, and I am trying to run the Database Engine Tuning Advisor. To my knowledge nothing changed in my environment, and running this exact same query through the advisor worked last week.

Now, when I execute the Advisor, I get the following message.

Error: Failed to parse input XML. Could not parse workload type.

No event viewer message or any other info. Can anyone offer some insight please? Thanks!




hOW TO CREATE WINDOWS AUTHENTICATION USER IN SQL SERVER AFTER INSTALLING SQL SERVER 2008

$
0
0

I had an error while executing asp.net appcation from IIS as follows

Login failed for user 'IIS APPPOOL\ASP.NET v4.0'.

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.Data.SqlClient.SqlException: Login failed for user 'IIS APPPOOL\ASP.NET v4.0'.

[SqlException (0x80131904): Login failed for user 'IIS APPPOOL\ASP.NET v4.0'.]

Can the above problem be solved by CREATING WINDOWS AUTHENTICATION LOGIN FOR'IIS APPPOOL\ASP.NET v4.0'  ?

If yes, how to create the login?

If no,what is the best possible solution?


Please reply as soon as possible as i am unable to run my project which I had done in my lab,in my home system.

Trigger Executing Twice

$
0
0

Hi

I have created an Update trigger on Humanresources.employee

create trigger TrgUpdate on Humanresources.employee 
after update as
Begin
Print 'Record Updated'
end

When ever i make an update into the Humanresources.employee am getting the Message twice as below

Record Updated
Record Updated

(1 row(s) affected)

I already read some articles on the same but still am not clear,please help me out to solve this

Thanks in advance

SQL Cluster 2005 virutal ip changing problem

$
0
0

I change the cluster sql Virtual IP

after that the SQLserver is not able to bring up

it says

checkODBCConeectionERROR

and

SQL Native Client Unable to comlete login process dus to delay in opening server connection

VIEW WITH CHECK OPTION FAILURE DOESNT ROLLBACK CHECKIDENT

$
0
0

Hi,

Using Views with CHECK OPTION to enfore multi-tenancy in a project. I noticed while testing that if I try to insert an "illegal" record into a view and the WITH CHECK OPTION catches it as expected, the CHECKIDENT for the underlying table still gets incremented. I guess I expected it would have been rolled back like the insert.

Is this expected?

2 processors with 4 cores each or 4 processors with 2 cores each

$
0
0

2 processors with 4 cores each or 4 processors with 2 cores each, does it make any difference?

Edit: does it make any difference to performance? is there any reason why one set up works better than the other? (not looking at licensing here)


A network-related or instance-specific error occurred while establishing a connection to SQL Server

$
0
0

Hi All,

I am facing the below error while connecting to my server.

Even though i checked that SQL SERVER SERVICE IS in Running state and database is accessible through application and the only problem is i am not able to connect through SSMS and SQLCMD. I even restarted the MSSQLSERVER service also.

The Error is as below

TITLE: Connect to Server

------------------------------

 

Cannot connect to ..

 

------------------------------

ADDITIONAL INFORMATION:

 

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)

 

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476

Thank You.

network related or instance specific error occurred while establishing a connection to sql server

$
0
0

Hi all,

 

I am getting  a SQL error - A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified).

Problem is when a user tries to connect with remote SQL Serverthrough VPN from Domain, it throws this error, and when the same machine tries to connect with Remote SQL Server through VPN as a standlone machine, it is getting connected.I checked all the settings but ....... There is no any policies deployed in Active Directory.

Any suggetion?

 

Rajneesh


Rajneesh Kumar MCITP - SA, MCSE, CNA

"Unknown Token" in activity monitor under Command - process hangs indefinitely

$
0
0

We are running a two-node active/passive SQL Server failover cluster (SP3, Cumulative Update #12 - 9.00.4311.00).

Occasionally, during certain operations, the process will hang and in the activity monitor I'll see:

 

Database: master

Command: UNKNOWN TOKEN

 

This doesn't happen all the time, and only happens in two situations that I have noticed:

modifying a login in SQL Server that has the password complexity enforced

backing up the service master key

 

It hasn't impacted user activity yet, but it does lock certain tables.  The process can't be killed; I have to restart the SQL Service when it's convenient.

Not sure what could be causing this.  Any help would be greatly appreciated.

 

Thanks,

S

Can't Copy Database to a Remote SQL Server

$
0
0

Currently, I'm having problem with copying a local database to a remote SQL Server. Here is the error message:

Execute SQL Server Agent Job: 
TITLE: Copy Database Wizard
------------------------------

The job failed.  Check the event log on the destination server for details.

------------------------------
BUTTONS:

OK
------------------------------

And also when I checked the SQL Log File, here is the error message:

Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. Reason: Could not find a login matching the name provided.

How to fix this issue?

Thanks in advance.

Multiple 2008 SQL Databases using Peer-to-Peer Replication and Change Data Capture

$
0
0
 I have a question about using peer-to-peer replication with 10 2008 SQL database servers and change data capture together simultaneously.I've seen posts out there indicating that this kind of configuration would be a bad idea or not work all together.Do you know of specific instances where this configuration has worked well?

how to upgrade the sql server 2000 to sql server 2008r2 including Longings and users

How to apply the services paths in sql server 2008r2


Differential backup ,showing file processed without change in database

$
0
0

Hi Experts,

  After taking full backup of mydatabase its showing following message :

Processed 20640 pages for database 'adventureworks', file 'AdventureWorks_Data' on file 7.

Processed 1 pages for database 'adventureworks', file 'AdventureWorks_Log' on file 7.

BACKUP DATABASE successfully processed 20641 pages in 4.891 seconds (34.571 MB/sec).

Now agin I am taking differential backup of same database without done any chnage in my database , Then I am getting following message

Processed 40 pages for database 'adventureworks', file 'AdventureWorks_Data' on file 5.

Processed 1 pages for database 'adventureworks', file 'AdventureWorks_Log' on file 5.

BACKUP DATABASE WITH DIFFERENTIAL successfully processed 41 pages in 0.292 seconds (1.148 MB/sec).

Here I am bit confuse to understand that why this is showing "Processed 40 pages for database" even I have not done any modification in the databse after taken full backup.


Regards Vikas Pathak


Page Life Expectancy vs Buffer Cache Hit Ratio

$
0
0

Hi All,

i'm looking at 2 counters on a production system where the PLE is avergaing 25-30 seconds and the Buffer Cache Hit Ratio is 99%.

Now from my understanding, the PLE *should* be 300 secs or more (this is a 8GB RAM system) otherwise SQL server's caches is constantly being refreshed, indicating memory pressure.

Buffer cache is constantly at 99% meaning SQL is finding the data for it's queries in memory and doesn't have to go to disk..indicating NO memory pressure.

So i'm confused as to what i'm seeing, can someone sort me out..am i seeing memory pressure or not..?

Thx in advance.

SQL Error - On Sharepoint Server

$
0
0

Hello

I have Sharepoint databases on Sharepoint server. And I checked Event Viewer on the server. And I get following error message continuously.

"An exception occurred while enqueueing a message in the target queue. Error: 15517, State: 1. Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have permission."

I have no idea what is this error. And how i can solve this?

Please help

Thanks

Cross-Database transactions

$
0
0

Hi Team,

I have few queries below,can any one provide me the information on the same,

1) what is cross database transactions and how do we use it ?

2) How to configure it and work on it?

3) why we go for cross-database transaction?

3) What are the advantages and disadvantages of cross-database transactions?

4) how to understand query optimizer and show plan/query plan and how do we calculate the cost of query?

5) how do we improve the performance by using show plan/query plan/execution plan?

Thanks in advance,

Sarvan.N

SSD vs SAS query needed

$
0
0
I am testing the disk IO performance of SSD vs SAS drives. I am trying to generate high on adventure works database for this. Are there any scripts that can help me with this stress testing which cause high IO on adventureworks2008R2 database?

Thanks for your inputs.
Viewing all 15889 articles
Browse latest View live




Latest Images