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

HOW TO SOLVE MULTIPLE ROWS RESULT FROM INNER JOIN QUERY

i have 3 tables: TABLE [dbo].[Tbl_Products]([Product_ID] [int] IDENTITY(1,1) NOT NULL,[Product_Name] [nvarchar](50) NOT NULL,[Catagory_ID] [int] NOT NULL,[Entry_Date] [date] NOT NULL,[User_ID] [int]...

View Article


Temp configuration

Hi All, Seeking for your guidance on Tempdb We have tried to optimize Tempdb is out env. Below are the ones we have taken care. •    enabled instant file initialization •    pre-sized the data files....

View Article


Transaction log growth based on update or delete count.

Ok, Can someone please explain this in a detail so every sql developer/dba will never have to guess :)Lets say I am updating  10% of a table's data in a transaction. It is a situation which needs a...

View Article

SQL Server 2012 syspolicy_purge_history fails step 3 "Erase Phantom System...

I recently installed SQL Server 2012 Ent (x64). The install is a stand alone default instance.The syspolicy_purge_history job fails on step three with the following error:Executed as user:...

View Article

Backup database without some tables.

Hi I have a database called mydb. The size of the database is 200 GB. In my database userdetails table have 150 GB of data. Now I need to backup this database exclude Userdetails table. Please help me...

View Article


What is Name Pipes and what is the difference between Name pipes and tcp/ip...

Hi, I am a junior DBA, I want to know about Name pipes in SQL Server and what is the difference between name pipes and TCP/IP sockets?

View Article

SQL mirroring tools

i want to ask if there is tool for SQL mirroring because the way for sql mirroring with microsoft sql server management studio is not easy hard to fix the error 1418. i already watch the tutorial and...

View Article

How to insert a row in a specific position in a table

Hi,I have a table with million records an d I want to insert a record at a specific position for example lets say 50th position, I don't even want to delete records and reinsert them.please provide me...

View Article


SQL Logs details.

Hee,If I will insert or update some value in my Table. Will it directly be updated in my mdf file or first it will be in ldf file and changes will be made when the check point will be created?Please...

View Article


Is there a way to verify the integrity of the log file?

SQL Server 2012 SP 2 on Windows 2012. Yesterday a transaction log backup against the largest database (50 GB database, 5 GB log) failed with the error below. SAN admin tells me everything is...

View Article

Why does INSERT hang on S mode (shared) locks?

I thought INSERTs used "X"  mode (exclusive) locks. Does it also acquire "S mode (shared) locks?Here's why I ask. I'm capturing extended events for lock_acquisition > 1 second and see lots of waits...

View Article

OLE DB provider "SQLNCLI11" for linked server "LINK_NAME" returned message...

Hi All,I am getting the above error msg when querying data from SQL 2014 SP1 to SQL 2014 SP1.The issue is only with few tables and when we fetch the same data through a Stored procedure it works fine,...

View Article

SQL Server 2012 encounter unexcepted dump and crash

Checked system event viewer, no error message through out, many SQL server dump file generated.SQL Server Version: Microsoft SQL Server 2012 (SP1) - 11.0.3000.0 (X64)  Oct 19 2012 13:38:57  Copyright...

View Article


Error: 17053, Severity: 16, State: 1

We have been getting this message in the error log for past few weeks and trying to see if anyone had this problem;Error: 9001, Severity: 21, State 1The log for the database ‘ARSystem’ is not...

View Article

Moving data file from to a new location

Hi All, Need some suggestion from experts. We are using Microsoft SQL Server 2012 (SP1) . Database has 6 data files and we have decided to move one of the data file to a new physical disk/driver....

View Article


Configuring Gmail fails in my Sql12k

Hi all of you,I run 2012k trial version 180 day and after set up Mail I get this message after viewing history and doing the usual test...mail could not be sent to the recipients because of the mail...

View Article

How to track login on SQL Server 7.0

Is there anyway we can track logins on sql server 7? Your help is appreciated.

View Article


Image may be NSFW.
Clik here to view.

maxdop config on datamart

Yet another question about maxdop! Sorry!So, I had this server (a datamart), not so many users, but a lot!! of jobs running at night pulling data from the DW to the DM.It had maxdop: 4, and Cost...

View Article

how to select null values and restrict '0' values

Hi all, I have a query to select column values having NULL and restrict data having 0..i have a table name invoice with column number , having values 1,0,8,15,'DEBIT',"CREDIT',NULL and many int...

View Article

Run an external program from stored procedure

I need to write an external program that will be run from within a stored procedure and will accept variable. What is the best to do, exe? DLL? how will I interduce it to the SQL?

View Article
Browsing all 5123 articles
Browse latest View live


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