Knowledge on Transaction log ?
Hi All, I have couple of questions? Question-1: I need to know will running import/export wizard increase the T-log growth? OR will running simple select statement increase the T-log. To my little...
View ArticleDateTime Conversion in SQL Server
Hi ,I have dates in the format "3/22/2010 4:28:23 PM", which I want to convert to a format like "3/22/2010 16:28".Could some one help how to achieve this?Thanks,M
View ArticleSQL Update Question
A B Name Name --------- ------------ RingSouth Ring South or Ring.South or Ring_South (One of them wuld be in the B Table field...
View ArticleHow to sort numbers that are in varchar type under GROUP BY GROUPING SETS in...
I have a column called UPC (varchar type) that only contain numbers. I also have a GROUP BY GROUPING SETS on UPC.Currently, it's sorted as varchar, which result the numbers not sorted from smallest to...
View ArticleBacking up Database with Simple recovery mode
Hi All, I have shooted by a question which I dont have idea. can anyone help on belowWhat are the actions we need to take on the Database which is in simple recovery mode when putting it in to backup...
View ArticleExcel to SQL connection
Hi,Is there a way to extract/import the output of a query made in SSMS (MS SQL Management Studio) into excel using vba? Basically, I am pulling data from different databases using an innerjoin...
View ArticleINSERT statement
The customer_id is INT type.Which one is correct between following two INSERT statement? (difference is only customer_id value 1 and '1' in the VALUES(.....))INSERT INTO customer (customer_id,...
View ArticleSELECT statement
This SELECT statement works fine with MS Access SELECT MAX(FORMAT(exam_date, 'yyyymmdd') & RIGHT("000" & exam_seq, 3)) FROM (SELECT exam_date, exam_seq FROM surgical_exam WHERE patient_id=1...
View ArticleBackup job is getting failed
ERROR backup for DBs: * - running CMD: C:\Progra~1\Tivoli\TSM\TDPSql\tdpsqlc backup "*" full /tsmoptfile=C:\Progra~1\Tivoli\TSM\TDPSql\dsm.opt...
View ArticleHow to set focus to specific textboxes under different conditions in C#.net...
I have four textboxes grouped to two:txtbox_date_starttxtbox_date_endtxtbox_value_starttxtbox_value_endAll these four textboxes have AutoPostBack = true.if (Page.IsPostBack) { //copy value of...
View ArticleHow to sort a varchar column that contains numbers and letters in SQL Server?
I have a varchar column that contain numbers (1-99999) and letters (AM0001-BF9999).Since it has letters so i can't just convert it to int.Is there a way to maybe use grouping_id to sort this column by...
View ArticleJuly TechNet Guru Winners Announced
Below are the results for last month's Guru Competition - TechNet Guru Awards, July 2014The full version can be found here:...
View ArticleSQL Server Logs
Hi,I am getting an errors in SQL Server Logs.Its eating up all my space from C: Drive.now it says 0 bytes left.What could be an issue???Please help. its urgent.Regards, Kunjay Shah
View ArticleSuggestions for how to execute file maintenance in SQL Agent Job
I need to create a SQL Agent Job (it has to be a SQL agent job) to zip all files in a directory, delete all files in the directory but the zip file and then copy the zip file to another location across...
View Articleneed help to attach database?
I am trying to attach database but did not go through, need to fix this issue?CREATE DATABASE AdventureWorks2012 ON (FILENAME = 'C:\Users\arjun\Downloads\AdventureWorksDW2012_Data.mdf') FOR...
View ArticleUpdate statistics
Hi AllWe are wanting to update the statistics EXEC sp_updatestats’ on the ABCD database. However this runs serially and we are concerned at the amount of time it may take to complete (affecting...
View ArticleBackup DB with dynamic sql - want to substitute in dbname and disk file path
Re: Backup DB with dynamic sql - want to substitute in dbname and disk file pathHope I can explain this. Below is a small snippet of code. I want to set @SQLTemplate_TSQL once at the top of the script...
View Articlealternate backup drive
Hi,Does this image means that the system would backup to G: drive if H: is not present???Please advice...Regards, Kunjay Shah
View ArticleSQL SERVER 2014 Error :40
""A network-related or instance-specification error occured while establishing a connection to SQL Server "" Windows Firewall is on ! what should i do , or change to connect , please help , please
View ArticleCASE Question
I have a case statement that pulls days, hours and minutes from a number that represents total minutes: CASE CAST(m.multi AS VARCHAR) WHEN '1' then CAST(m.elapsedtime/1440 as varchar(20)) + ':' +...
View Article