Stored Procedure with Even or Odd list
Hi All,I have two tables Tbl_Products and Tbl_Keyvalue.I am using the below Procedure,But it printing only Even or Odd.I want all list of Odd and Even with Comma.Create Procedure ProcedureName (@KEY...
View Articlebackup to tape
Sql 2012 maintainence plan has an option to backup to tape. Does this work even if Windows 2012 does not support backup to tape. Can we use this method to bcakup SQL database directly to tape, what are...
View ArticleHow to select and duplicate the records and update some column values using...
I have a table with 920 records, we need to update the end date to 6/30/2014 for 920 records and I need to create all 920 records with start date is 7/1/2014 and update the external value to CCC.Note:...
View ArticleTo execute a script in two different instances simultaneously
Hello All,Is it possible to execute a script on different instances simultaneously?Like, can we create a user on different instances simultaneously using a script?Thanks in advance..!Thanks and...
View ArticleDatabase backup to a remote location
I am new to SQL server and have a small query. When we give the destination for a database backup as a remote location does it create a db backup in the remote server directly or create a temporary...
View ArticleHow to create alert for suspect database
Hi All,i want to create alert or mail for when database goes to suspect mode. if possible please provide Refferal links to create suspect alert.Thanks Advance..
View ArticleThe time has come! Step up SQL Server Gurus! Your community needs heroes like...
TechNet Gurus... we salute you!You're awesome, and we know it!Your knowledge uploads and nifty info nuggets are our life blood at TechNet Wiki.Every awesome article that gets an award is just the...
View ArticleI Need to Learn SQL Server Terminology
I downloaded SQL Server 2012 Express onto my Windows 7 machine, and need to know if an instance is the same as a file. I have a MS Access database (many, actually) and am learning to convert/upgrade...
View ArticleHow to update table with correct information
Hello all, How can I update this table A with the cm_other_id of table B?Table A: Table B:Thanks
View ArticleTable Join Strategy
Hi, Could you please let me know the Join Strategy to achieve best query performance for below scenarios: 1) Joining Large Tables Table1 count is 200,000 Table2 count is 100,000 Table3 count is 90,000...
View ArticleStored Procedure Executed Via SQL Job
I have a scheduled job which runs overnight on a SQL2005 server to execute a number of stored procedures to create transactions in one database from transactions in another server/database. All...
View ArticleDelete values for a range
Hi , I want to delete records only for a given range. Below is the script it deletes the records based on the given MP range.And in this Switch table screen shot i have a switchID and...
View ArticleHow can I add values to these two tables relate to each other
create table tblA( id int identity(1,1) primary key, name varchar(50) not null, CountryId int not null)create table tblB( id int identity(1,1) primary key, countryname varchar(25) not null)alter table...
View ArticleSQL Query Help
I need help figuring out this query. We are taking the latitude and longitude from a table and finding the distance from a set location to convert to miles from location. Then we want to break it down...
View ArticleAuto generating UPDATE queries for identical tables
Hi I need to generate UPDATE queries to update identical tables between two databases. So I need statements like below generated given a list of tables;UPDATE Table1 SET Fld1 = a.Fld1, Fld2 = a.Fld2,...
View ArticleHow to show "Error List" in SSMS ?
Hi,For unknown reason, when we open the SSMS, we get "Error List" in the bottom. There are columns like: Description / File / Line / Column in the "Error List".We just wonder how to turn it on / off...
View ArticleSQL Injection -- DBA role..
Hi all, I'm working as a SQL Server DBA,Now a days we are facing issue with attacks(SQL Injection),most of attacks are taken care by Firewalls but still some attacks hitting Database. As a DBA How to...
View ArticleNeed stored procedure
Can anyone help me out in writing a stored procedure that is used to run other stored proceduresso it should take a character string as a variableand execute a stored procedure that matches the...
View ArticleEFFICIENT Front End for SQL Server
I know there's been many questions about SQL front ends, but I have some specific requirements I haven't seen addressed.I'm an intern for a company with a large database and I've been tasked with...
View ArticleSQL Server (2012/2014)
Hi,Can someone please give me a "101" on how is (SQL) database/ETL is related to CPU, Memory, HDD, Network, and etc? (or point me to an article that explains things well.i.e. I need to know when is...
View Article