sql server logshipping monitor
1)sys.sp_check_log_shipping_monitor_alert Is this system store procedure created automatically after log shipping setup?If it is automatic, what does this store procedure do?It runs every 5 minutes on...
View ArticleReturning multiple result sets from a procedure
Hello all,Can we return more than one result set from a procedure?Thanks and Regards, G Srikar Reddy, Junior SQL Server DBA, Miracle Software systems, Inc.
View ArticleHost name
Hello, <o:p></o:p>Recently we had to rebuild a sql server and we followed below steps. we replaced server 1 with server 2<o:p></o:p>1. Server 1 is live. Meaning DB's are...
View ArticleCatch exception and continue the execution
Hi Team,I require the action(such as insert/Update/Delete) for each row of table/table variable and also Error/Exception details as new column if occured any.Please refer below sample input and...
View ArticleReport Builder - LookupSet - Finding specific data inside of a LookupSet
First, I am sorry of this is in the wrong forum. I am surprised that there does not seem to be one for Report Builder. The other times I tried to find Report Builder answers they seemed to end up in...
View Article'CommandType' is not declared. It may be inaccessible due to its protection...
In an ASP.NET web page I am trying to use a set of variables to create a new row in a database using just SQL. The variables are: Dim strDescription as String Dim decUnitCost, decRetailPrice,...
View ArticleNot able to attach Adventure works Database to SQL server 2012 Management studio
Hellowhile i try to attach AdventureWorks2012 database to SQL Server 2012 Management Studio i am getting the following errorMsg 1813, Level 16, State 2, Line 1 Could not open new database...
View Articleright click database and the click properties-have error on sql server 2005
error message:Cannot show requested dialog.Additional information: cannot show requested dialog (SqlMgmt) Property owner is not available for database '[abc]'. This property may not exist for this...
View ArticleSQL Server 2005 performance decreases with DB size while SQL Server 2012 is fine
Hi,We have a C# windows service running that polls some files and inserts/updates some fields in database.The service was tested on a local dev machine with SQL Server 2012 running and performance was...
View ArticleSelect random record from each category
I have searched for the answer but did not get my type of question. My problem is I need to select random school record depending on division,district from a table. That means I random record for each...
View ArticleYou can be our next Spring SQL Server Guru !!
In the northern hemisphere at least, Spring is here! (apparently)And at TechNet Wiki, we're hoping you're all hatching new ideas for this month's TechNet Guru competition!We're looking for more shoots...
View ArticleIn VS SQL Server Object Explorer, the server's properties are disabld
I have Visual Studio 2013. I am attempting to install DNN locally and the setup needs to connect using the sa account. The server is still set to integrated for the authentication mode, so I need to...
View Articletroubeshoot full transaction log
micrsoft scom alert:The transaction log for database 'ABC' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databasesHow to troubleshoot?Thanks
View Articlehow to add the scalar varibles and store the result in another scalar variable
declare @Maxamount int, @month varchar, @Duration int, @iReturn int set @month = (select DATEPART(MM,start_date) from TC_Project_Referal where id_tc_projuser...
View ArticleHow to improve the performance of Database
Hi all, Reporting Database backup from OLTP database daily morning,from reporting DB users are spooling the report.But Reporting DB is always slow (Death).User can't spool any reports.Here details:-DB...
View ArticleNeed help..
I have an int value : 20140102I want to get the value a as 2014 and b = 01 and c as 02
View ArticleThere are currently no logon servers available to service the logon request.
Hi,I have quit some experience with SQL Server 2008 BI projects, but I am not a system administrator.I just installed a trial version of SQL Server 2012 on my laptop (Windows 7) in order to figure out...
View Articleexec sp_db_increased_partitions
what doesexec sp_db_increased_partitions do?what does exec sp_db_increased_partitions '<SID>' do?
View ArticleInvalid length parameter passed to the substring function
I have a sql job which will execute the below stored proc.Basically it Refresh the data by truncating the tables and using BCP to import the data. Job was running fine but today got a error...
View Articleoptimizing the stored procedure
Hi,I am new to the optimizing stored procedureI am posting my procedure, please give me tips to optimize thatSET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE procedure...
View Article