Quantcast
Channel: SQL Server Database Engine forum
Browsing all 5123 articles
Browse latest View live

alias and log shipping

is it a best practice to use aliases (aliases that you define via SQL Server config manager - not the DNS alias) with log shipping? what could be the advantage or disadvantage?SQL Pro

View Article


Automate the steps to restore the DB from SnapshotDB

I am trying to automate the steps to restore a DB from Snapshot but not able to find a solution for this.

View Article


Adding column in middle of the Table

Hi I would like to know how to add few columns in the middle of the table without truncating the table data

View Article

Converting Date columns

Hi, I have a date column that has values in this format:- JOURNAL_DATE 2015-10-13 00:00:00.0000000. How do we get the same column in the manner that says YYYYMMDD. So for ex this column should be...

View Article

Severity 016, 20 : An error occurred in a Service Broker/Database Mirroring...

Hi, Today morning I got an error log as, the first error : Length specified in network packet payload did not match number of bytes read; the connection has been closed. Please contact the vendor of...

View Article


Cannot obtain the required interface ("IID_IDBSchemaRowset")

I hope some oone can help with this.I have a sql 2005 32 bit sp3 STD Edi running on Windows 2003 sp2 Std EdiI am using a domain account and am local admin on the box. The SQL and the SQL agent are both...

View Article

How to know the record count in each data page?

Hi, I can list the data pages allocated to a table via DBCC IND. But the result does not including the number of records in each page. It is possible to use DBCC PAGE on each data page individually,...

View Article

SQL Server Service Terminated Unexpectedly

I have a production server that had the SQL Server service terminate unexpectedly last night. I have had no luck identifying the cause and am in need of assistance or ideas on either how to prevent in...

View Article


Transaction Rollback Operation is taking longer

Hi All,I stopped a procedure which was in the middle of a update process and it was in cancelling state. After 30 minutes, I tried to kill the SPID and later on closed the SP running window. Now...

View Article


Index optimization job failed with the error , database cannot be opened...

Hi Experts,index optimization job failed from the last 4 days. we have 5 databases in our instance, in that 2 databases are online and remaining are in offline. we are using Ola index job to rebuild...

View Article

sql server 2012 add multiple instances

how to add  multiple instances on sql server 2012 express edition on windows 10

View Article

SQL server RAM utlization

Hi,I have SQL server 2008 standard edition (10.50.1600.1) With sql server we are using one of the IBM ECM product we are using. The problem is the constant increase of RAM when the application is...

View Article

Why User define functions recompile every time

  Why User define functions recompile every time?Regards Vikas Pathak

View Article


Getting error while sending DB mail from SQL SERVER 2008 R2(RTM)

Hi All,We are getting error while sending DB mail at sql server 2008 r2(RTM) and SQL Server 2008 R2(SP2).We are working in Cluster environment, previously it was working fine, suddenly from last night...

View Article

SQL 2012, Two instances on same machine, different IPs, Same Port

I've read many posts on many forums that say you can do this.  But it's always an older version of SQL server.   (like this one...

View Article


SQL Agent job fails for user with sysadmin role

Hi I am trying to setup a sql agent job that does DBCHECK on user databases.The steps in the job are tsql and run  by user with sysadmin role but I keep getting [SQLSTATE 01000] (Message 50000)  The...

View Article

Attach database failed for server 'msserver'.(Microsoft.sqlserver.smo) on...

hii have error i run administrator right on sqlserver 2012but i meet the errorMy error is Attach database failed for server 'msserver'.(Microsoft.sqlserver.smo) on SqlServer 2012An exception occurred...

View Article


SERVER AUDIT SPECIFICATION for DATABASE_CHANGE_GROUP capturing RESTORE...

I created a serveraudittowatchdatabasecreationusingonly DATABASE_CHANGE_GROUP but the auditiscapturingRESTOREVERIFYONLY.WhyISit capturing this?CREATESERVERAUDIT[ServerAudit-Audit Database...

View Article

GETTIME() Has an incorrect time value

Hi,I'm running SQL a on Windows 10 PC.  This SQL is SQL 2008 R2 and is fully installed on that PC.  The PC reports 7:10AM.  When I do execute SELECT GETDATE() I receive the hour with 5 minutes more...

View Article

update getting blocked?

Hi experts,I have a job that most of the times takes seconds, but sometimes takes 40, 50 minutes to run… I am pretty sure is because of a blocking… The code has a couple of selects and then:...

View Article
Browsing all 5123 articles
Browse latest View live


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