using PowerShell Functions in t-SQL scripts
experts,Can I use a power shell function that gets file size given file path by cross applying it to a table in SQL Server that holds file path of files?fileID filepath 1...
View Articlesql login unable to connect?
How can a SQL Login that by default gets "Public" server role not able to connect?Everything else was fine and the only way I had to make the SQL Login(test) connect was by clearly assigning a connect...
View ArticlePerfmon Issues
I added Performance Counters that are available under \MSSQL$<Instance>\GeneralStatistics through Data Collector. But, values of those counters are not actually capturing and also not getting...
View ArticleProblem sending Email attachments in Sp_send_dbmail in SQL server 2012 (SP1)
We have a stored procedure which calls in "Sp_send_dbmail" Stored Procedure in MSDB database to send out email attachments.Sp_send_dbmail seems to work for attachments 2 MB or less, but for more than 2...
View ArticleTesting SQL By Edition e.g. SQL Standard Edition Mode
Hi all,I'm running SQL 2012 developer edition. Is there any way I can run my version in SQL standard edition 'mode'.I would like to be able to test my database scripts for client running those...
View ArticleChanges Tracking for SQL Server 2008 - Compatibility 80
Hi everyone, May I ask you a question about changes tracking? I know that Database with Compatibility 80 won't working with Changes Tracking. But my company still use it, and we cannot change at least...
View ArticleSQL 2008 Maintenance Plan Backup to UNC drive
I have a SQL 2008 maintenance plan backing up to a shared drive \\servername\folder but I am not able to backup databases to that shared drive. My sql server and sql agent accounts are using service...
View ArticleProblems with backing up to HP 3par disks
Hi,We have a SQL2012 SP1 build 3412 availability group cluster that recently moved the backend SAN to HP 3par. Since the move we have had the disk array setting changed to high performance for 3par but...
View Articleresilient file system on SQL 2014
I know that you were not able able to run SQL 2012 with ReFS. It seems that this has been fix with SQL 2014. Is it still recommend to use NTFS or can the SQL Engine & databases now reside on a...
View ArticleSQL Cluster failures
Hello,On a SQL Cluster I have two nodes and one seems to be weak... Anytime I am on B Node with all instances it works for 48 hours at least but on Node A after 1 hour it fails...1. cannot access the...
View Articleformula for calculating aggregate percentage and percenatge of gender
hi alli have a sp from which i get result columns gender,percentage,studentcount,yearmy sp is like this..IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[usp_GetState]') AND type in...
View ArticleClean up unnecessary space
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
View ArticleGenerate If Exists (drop) + Create DDL with each object in a separate file
Hi all,Is there a 3rd party tool that anyone is aware of that'll script out selected objects from a database into individual .sql files for each object in the same/similar format as doing a 'right...
View Articlesql server 2008 service pack
hello, I have sql server 2008 and 2012 installed on my windows 8 machine.but sql server configuration manager is showing up only for ver 2008.on 2008 configuration manager, SQL Server Services is...
View ArticleInstances
What is instance.Maximum how many number of instances can be created in Sql Server?And what are the major difference between Default Instance And Named Instance?Thanks in Advance.
View ArticleSQL Server Agent Log showing errors [298] SQLServer Error: 10061, A...
Hi All, I have started receiving this error in the logs for the last 10 days and the Schedules Jobs for the database have stopped running. My MS CRM application is working fine.Can anyone guide me what...
View ArticleTimeout expired. The timeout period elapsed prior to completion of the...
Hello,I have a problem with SQL server connection. I can't connect with remote connection and I use remote desktop connection to connect to the server and I have the same error . and Server Firewall...
View ArticleLoading IO stalls and wait type counters into table
Hi,I ran into strange issue on our sql server 2008r2 server. While running analysis of how fast our SAN is, I put together stored procedure that captures IO stalls and wait types counters (and some...
View ArticleSQL keeps losing service credentials on server restart
Hi, I have a sql instance that I have to manually reenter the SQL service credentials every time the server is restarted, or the service will not start. I have verified that the SPN is correct. What...
View Article