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

TRIGGERS TOPIC I AM GETTING ERROR AS Msg 213, Level 16, State 1, Procedure...

/*FIRST TABLE*/create table Employee1( empid int, empname varchar(20), salary int, gender varchar(10), depid int) insert into Employee1 values(1,'jitendra',500000,'m',100)/*2 ND TABLE*/create table...

View Article


restore newest backup

HiThis restore script works fine:ALTERDATABASETest1SETSINGLE_USERWITHROLLBACKIMMEDIATERESTOREDATABASE[Test1] FROMDISK= N'\\Server\BackupStorage\Test1_20140201_9_14_14.bak' WITHFILE= 1,MOVEN'Test1'...

View Article


delete transaction log file

Hi,I have three T-log files in my database, Now I want to delete 2 Transaction log files. Can I do the below action:1. dbcc shrinkfile(log1,truncateonly) 2 dbcc shrinkfile(log2,truncateonly)2. Then...

View Article

Query Timeout expired

Dear All, I am having a serious problem. I have a system running in VB6 and SQL 2008 in the backend.  It was running smooth for last three years. But for last three months all on a sudden I am facing a...

View Article

Slow Insert, very non-linear scaling with size

I have an INSERT whose source is a SELECT that has 17500 rows. The INSERT is taking roughly 6 minutes. The SELECT by itself takes < 2 seconds. The odd thing is that if I restrict the SELECT to 3000...

View Article


Image may be NSFW.
Clik here to view.

Spread the Love! Be our SS DBE TechNet Guru, this Valentine's

TechNet loves you! We love your contributions at TechNet Wiki sooo much that we give you more than just love in return...We give you NOTORIETY, GLORY... and VIRTUAL MEDALS!That's not all, this love we...

View Article

How can I retrieve the comments at table-level using SYS.*

hi ya,Is it possible to get all the comments for my tables? For every table defined I have declared description using Extended Properties. I am looking for some SQL statement which give me all those...

View Article

What is impact to MDF file size if change database to simple recovery mode

Hi,Currently I have a Database with 27GB MDF and 80GB LDF.If I change from Full recovery to Simple recovery mode, would LDF information be transfered to MDF file and makeMDF file size exceed 100GB?

View Article


Image may be NSFW.
Clik here to view.

does this a sign for memory pressuer?

View Article


Help with Dump files from other server.

Hello!I'm having a problem with reading Dump files. The issue is this: I'm working with a great number of SQL Servers installed in a big number of virtual/physical servers. The problem is that I can't...

View Article

Defining Default Values for a column in a view

Hi guys,Please can you set a default value while creating a view in the database.me

View Article

looking for a function doing what the difference one does but using soundex...

hi,I'm looking for a function which count the number of matching characters in a string, like the difference function do it.http://msdn.microsoft.com/en-us/library/ms188753.aspxIn my case the input...

View Article

Restore Database to multiple data files and its failing?

I have a db size is 250gb and need to restore to multiple file  to different drives on server.when i try to do i got below error message?"Conflicting file relocation have been specified for file...

View Article


Error : Process ID attempted to unlock a resource it does not own: HOBT:...

I am using sql server 2012. Microsoft SQL Server 2012 (SP1) - 11.0.3393.0 (X64) Oct 25 2013 19:04:40 Copyright (c) Microsoft CorporationStandard Edition (64-bit) on Windows NT 6.2 <X64> (Build...

View Article

Disabling Resource Governor via trace flag 8040 is failing

Hi,I am attempting to disable resource governor completely via trace flag 8040 (specified at startup in windows server) for SQL Server 2012 is faling. DBCC TraceStatus (8040) does show status as "1"...

View Article


Stop a query if cross database queries are requested in the command?

Hi,is there a way to raise an error if a user run a SELECT statement which contains specific keywords?here my scenario:I want to insure that if a user open a connection to a specific database and try...

View Article

LDF file recovery?

May I know how to perform point in time recovery? Currently the only backup we perform every 4 hours is the server OS snapshot.Example : 1. Now is 6pm and some error transaction occurred.2. We can...

View Article


This backup cannot be restored using WITH STANDBY because a database upgrade...

Version ServerMicrosoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (Intel X86)   Jun 17 2011 00:57:23   Copyright (c) Microsoft Corporation Enterprise Edition on Windows NT 5.2 <X86> (Build 3790:...

View Article

Image may be NSFW.
Clik here to view.

SQL Server jobs run dates

Hi, I have a doubt. I created a "Test10" job in SQL Server 2012 to run as per below attached schedule. As per the schedule, job is supposed to run till 03-Feb-2014 2:00 AM but it stopped at 1:50 AM....

View Article

Attempt to fetch logical page ERROR

Hi all !! there are many read error from my error log :Attempt to fetch logical page (1:106) in database 6 failed. It belongs to allocation unit 196608 not to 281474980642816.I read DBCC checkDB.......

View Article
Browsing all 12963 articles
Browse latest View live


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