Quantcast
Channel: SQL Server Database Engine forum
Viewing all 12554 articles
Browse latest View live

Clean up unnecessary space

$
0
0
Hi,
How to remove any unnecessary space of SS 2012, as currently my Win 2008 server has only 2.5 Gb left?

Many Thanks & Best Regards, Hua Min


Sync Framework SqlServer SqlServer

$
0
0

Hi

The scenario is a server at the head office of a client which is a centralized database on a database SqlServer 2008 professional version and several peripheral sites where it is delocalized housed in the same database instance SqlServer 2008 Express Edition (the limit of 10 GB the Express version is sufficient for the needs of the client) .

In the branch offices need to work in disconnected mode to avoid inconvenience in the event of a power failure (you know where we are in Italy with broadband ....) .

There is therefore the need to synchronize some tables of the database of the peripheral seats with that of the central .

I was planning to develop a Wcf service with a lot of code to write, but when I saw the Sync Framework I thought I would have facilitated the work .

My enthusiasm dropped when I saw that the database could be just on the outskirts Ce.

How can I use Sync Framework in this scenario in VS2010 o 2012?

Thanks, bye


Roberto Tomassini

does not free space

$
0
0

Hi,

I have T-log file in one partition say(L) which is 500GB. We have T-log backup after every 10 minutes. When I check free space in T-log file it is showing only 10GB occupied, but when I check on OS level, it shows the partition(L) has 0.0% free space. 

After the t-log backup, if the log file is shrink, why does not it release space on OS?

REgards




Querying dm_resource_governor_resource_pools gives different results depending on who is logged in.

$
0
0

For example pool1 has active memgrant count = 1 when i run the query. when sa runs the query the value is 0.

How can I troubleshoot?

EDIT - problem solved the active memgrant count was including the spid used to query the dmv (itself), when running from a different log in in a different pool if was correctly showing 0.

How long take a copy of Oracle

$
0
0

Hi guys, according to your experience how long can take a copy of a database? Either SQL than Oracle. I ask this because I was told that to have a copy of Oracle takes four days. Pratically they have to restore the backup or something like this but....four days...!? 

temp tables not dropped SQL Server 2012

$
0
0

I have a server that houses a database application that makes heavy use of temp tables. It appears that temp tables are not getting dropped from the tempdb.  In perfmon the temp table count is hanging around 1000 and is not going down over time.

Even if the programmers are not using drop table at the end of their sps, shouldn't these temp tables be cleaned up when they go out of scope?


Jeff

Best way to remove a data file from a database

$
0
0

Best way to remove a data file from a database? The primary data file can't be removed and the other files are all in the same filegroup. Is there a best way to remove a data file? Thank you


Paula

Database files list on one drive in master.sys.master_files, but show on another in the file system

$
0
0

We have a one node cluster sql server instance where the machine was patched/updated and re-booted this past weekend.  The machine came up, but the SQL Server did not because it could not locate RestoreCheckpointDB24.ckp on anM drive.  If I RESTOREFILELISTONLY on my backups everything was clearly on an N drive previously.  To get by the error, our network team changed a registry key pointing toN drive to M drive and everything magically came up.  The file system and failover cluster manager are now showing all files to be on anM drive, but if you query master.sys.master_files everything is showing on theN drive.  Anyone know how this is possible and how to resolve???

As well, a log shipping session is now broken because it's copying to a missingN drive and my Management->SQL Server Logs folder is empty as well. 

Any ideas?  I'm completely baffled as well as our network guys. 

Thanks!


Issue running procedures through SQL Server Agent

$
0
0

Hello,

We have a 2 stored procedures that runs will load data and will make use of cmdshell to move the files across the server.<o:p></o:p>

These procs runs fine when executed manually but do not run when it runs through the SQL Agent  job and throws the error<o:p></o:p>

Column name or number of supplied values does not match table definition.<o:p></o:p>

Any idea on this behavior ?? Why would it run manually and not through the Job .

Thanks !


How can Database A on Server A be available as Database B

$
0
0
SQL Server 2012 Enterprise on Windows Server 2012 R2 DataCenter - VMWare Server

Question:
Can Database A on Server A be available as Database B (within 10 minutes of data time difference) on Server A (same server) for reporting.

Possible Answers:
1. Transactional Replication - Yes 
2. Log Shipping - No, because Database will not be available as Read Only or if available for  read only, will kick out active connections when logs are applied on reporting database
3. Always On Availability Groups - No, because the reporting database needs to be on another server. 
4. Mirroring - No, because this feature is being deprecated
5. Clustering Active/Active - No, because the reporting database needs to be on another server. 

It appears as though transactional replication is the only option. 

Please guide if there are other options. 

Thank you. 

-Jeelani

SQL Embedded, In-memory or whatever its called

$
0
0

I am a developer who uses different databases, but SQL Server is my favorite. I have a couple of small portable apps that I have been using a MS Access database to store information. I am interested in using the feature that allows you to embed a SQL database/engine in your .NET app. I saw it first in 2012, and now in 2014, but still a shortage of info, even in MSDN. Is this fringe tech to be avoided? Maybe I should stick with access as it has a front-end for design purposes?


Lee


SQL Server 2008 R2 web edtion return error "A storage engine operation failed with error code 25104"

$
0
0
I have a CMS system that running a schedule sync the data to another server, recently i notice that task failed with the error message "A storage engine operation failed with error code 25104". I check on the internet and forum, this error seem mostly happen in SQL compact only, did anyone facing the same problem web edition before?

Linked Server issue which connects to mainframe

$
0
0

I have a linked server which connects to Mainframe in production. The job was scheduled and running for a long time. This is failing now frequently with below error. But job is able to run manually after this failure.

Any help on this is greatly appreciated.

[SQLSTATE 42000] (Error 7399)  Cannot get the column information from OLE DB provider "MSDASQL" for linked server "TEST". [SQLSTATE 42000] (Error 7350).

Thanks.


difference between "print" statements and "select" statements , TSQL

$
0
0

 

What is the difference between "print" statements and "select" statements when it omces to debugging and watching varibles in the stored procs .....

Maintenance plan for SQL Server 2012 Database in AlwaysOn Availability Group

$
0
0

Hi all,

I need assistance creating a maintenance plan that will backup a databases logs in order to prevent them from filling up the drive they are located on. I have looked at some blogs but they do not specifically show how this is done.

My database is in an AlwaysOn Availability Group.

Thank you very much for your help!

Jake


SQL agent proxy account for Powershell

$
0
0

I am trying to use a sql agent proxy account for PowerShell. Created the ad account, credential and the proxy but because the PowerShell accesses a bunch o sql servers it errors out.Even when I created a login for all the sql servers the powershell is trying to access it still failed so next I'd need to look at what permissions the powershell ad account needs to the objects it accesses. Is this the correct approach?

What is the best way to go here and avoid using a sysadmin account to run the sql agent powershell job? Thanks!


Paula

linked servers force named pipe

$
0
0

Hi,

I use the following syntax to create a linked server with named pipe protocol :

@datasrc=N'np:MyCollectivePI'

The test connection to the linked server failed... 

OLE DB provider "PIOLEDB" for linked server "TEST" returned message "[PI SDK] the requested server was not found in the know servers table. np:MyCollectiveP.

The syntaxlooksgood to me, i think that theproviderdoes not supporttheprotocolis forced...

Thank for help me

Thank for helping

[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application

$
0
0

[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application

I facing this problem while connecting to oracle DB 11g.

                                       my system information:

                                        windows 7 64 bit.

                                       oracle DB 11 g for 64 bit.

                @any one please help me out from this problem.

                     

Log file size is huge and cannot shrink.

$
0
0

I have a live database that is published with merge replication and a couple of push subscriptions. I just noticed that the log file has grown to 500GB. The database is in full recovery. We do weekly full backups, daily log backups. I cannot shrink the log file back down to normal proportions. It should only be about 5GB. The file properties show an initial size equal to the current size, I cannot change that number and I don't know why it is so big now? How do I go about shrinking the log file. the normal DBCC shrink and the SSMS GUI to shrink are not doing anything and say there is 0MB space free!!

Log File Issue In SQL server 2005 standard Edition

$
0
0

We have database of size 375GB .The data file has 80 GB free space within .When trying to rebuild the index we had 450 GB free space on the disk where Log file is residing.The rebuild index activity failed due to space issue.added more space and got the job done successfully

The Log file has grow up to 611GB to complete the rebuild index.

version :SQL server 2005 Standard Edition .Is ther a way to estimate the space required for rebuild index in this version.

I am aware we notmaly allocate 1.5 times of data file.But in this case It was totaly wrong.

Any suggestion with examples would be appreciated.

Raghu

Viewing all 12554 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>