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

Filestream - SqlFileStream constructor throws "Access is denied"

SQL Server 2012, IIS 7.0, .Net 4.5Everything is fine when I stream a document on my dev machine (IISExpress), but on the staging server I getSystem.ComponentModel.Win32Exception (0x80004005): Access is...

View Article


Receive a notification if xp_cmdshell is being enabled

Hi all,I want to receive a notification if someone, member of the sysadmin role, enables the xp_cmdshell on a SQL Server. Is there a way to accomplish this task?

View Article


Log File Rotation

I needed help with the log file rotation and cleanup script and how to remove the log file older then x days.

View Article

multiple partitions causing create index performance issues

We are observing that creating partitionaligned indexes on a table having few (approx. 50-100) partitions takes only 10-15 seconds but if we add large number (1500+) ofempty partitions the same create...

View Article

Image may be NSFW.
Clik here to view.

Sql services are not able to start in server

We have rebooted inactive the server due to rolling maintenance.  Sql is not running and sql services are not able to start. Getting the below error message while starting the services. please suggest...

View Article


Is it risk the data lost switch from Full Recovery mode to Simple Mode?

Please click the Mark as Answer button if a post solves your problem!

View Article

Multiple partition schema on a single table in SQL Server

Hi All,i want to  create multiple partition schema on a single table.for example - i need to create partition  base on region id and Territory Id.Regards,Manish

View Article

How to find the database growth rate?

Wanted to do the forecasting of disk growth for one year. How to find the database growth rate?Rahul

View Article


Differntial Vs Transactional log backup

Hi,   I have a scenario where my database (SQL 2012) is in simple and after a data load there is 30% of change in extents from last full backup.  If i run a differential is about 20 GB.  Is there a way...

View Article


What is the performance impact of updating fixlength non indexed field vs var...

Does an update in place occur if an update only affects a fixlenth field?create table ages ( Id integer, age integer);insert into ages values ( 0, 20);insert into ages values ( 1,40);---  does a the...

View Article

SQL Server jobs

Hi ,There are multiple jobs on my SQL Server and I want to list the jobs. 1: When i execute 'exec msdb..sp_help_job ' I get 64 jobs listed2: When i execute below query, I get 66 jobs listedSelect...

View Article

Image may be NSFW.
Clik here to view.

SQL TimeOut Exception after 15-20 Hours of Continuous Run

Hi,I am getting SQL Time out exception after long run of 15-20 Hours, Please find the attachment for more details.My SQL queries  are not taking much time for execution , simple Update /Insert...

View Article

How to copy the file from firebird database to SQL server

Hi all,I have a file in Fire bird Database (30 GB with .ydb extension).  which needs to be restored to SQL Server. I Have created a linked server and done it but it is taking very long time to update...

View Article


change sql server 2014 server name

HiThis works on sql 2008 r2, but not on sql server 2014sp_dropserver 'old_server' ---------Msg 15015, Level 16, State 1, Procedure sp_dropserver, Line 42 The server 'old_server' does not exist. Use...

View Article

dbo.sp_addlinkedserver, how to point the linked server to a specific...

Hi group,I am useing Linked Server in SQL Server 2008R2 connecting to a couple of Linked Servers.I was able to connect Linked Servers, but I cannot point to a specific database in a Linked Server,...

View Article


Redshift Linked server Performance behavior issues.

Hi bit of a shot in the dark here but open for offers.We have a Redshift database versionPostgreSQL 8.0.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3), Redshift...

View Article

What is the recommended static port range for SQL Server 2008 to SQL Server...

I want to assign a static port to SQL Server 2008 to SQL Server 2014 named instance.   Should the port be greater than 49151?  The following links give contradicting...

View Article


extract configuration to replicate an installation

Say I inherit from an undocumented installation of SQL server.  Is there a way to extract all features, configurations and such to apply them on a different installation?For instance, if the setup was...

View Article

Comparision Merge clause vs If not exists

Hi Team, There exits various stored procedures, wherein developer has used if exists then update and if not then inserted records.I would like to know, what is good option, considering with the fact...

View Article

how to pass values with comma to comma seperated param in sp

hi all, i have one sp which has param name as cordinatorname varchar(max)in where condition of my sp i passed ascoordinator=(coordinatorname in (select ltrim(rtrim(value)) from...

View Article
Browsing all 5123 articles
Browse latest View live


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