SQL 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 ArticleStored Procedure Issue
Hi All,Please help me.I need a stored procedure's for below Scenario:tblProduct is a parameter table that has values list of Products and every product has code (Eg, PEN A, BOOK B , PENCIL C and so on)...
View ArticleNeed to recover dropped indexes from SQL Server 2008 R2
Hi All,we are reestablishing the transaction replication all non-clustered indexes dropped due to this activity now we are suffering from performance issue is there any way ,we can recover all the...
View Articledatabases named with trailing SID
I I have 5 databases visible each named WSS_AdminContent with trailing identifiers like a07991a0f45544d596xxxxxx on 4 of them. What is this , why , and what if anything should I do about it. PS I'm a...
View Articledownload sql server 2012 developer edition
where to download sql server 2012 developer editionOn MS site everything goes to 2014 or std, ent editions only
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 ArticleAttaching a database without its log file
Hello All,I am trying to attach a database without its log file using the below command."CREATE DATABASE TestDb ON(FILENAME =N'C:\Program Files\Microsoft SQL...
View Article"Network-related or instance specific error", Works OK for Administrator
I've been handed a legacy .Net Windows application that was previously used on Windows XP, and asked to debug a few problems encountered on Windows 7 clients. The original developers are all gone....
View ArticleCan't install sql server express
HElp!!!I'm trying to install any recent free sql server.. to practice with vs2012 and asp.net mvc.. and the install keeps failing. THis is my personal desktop running 64bit Windows 7. sql server...
View ArticleSelect and Insert statements in Sql server 2005 stored procedure
Hello, I'm using SQL Server 2005 - stored procedures. Stored procedure - select statement : ----------------------------------------- The select statement inside the stored procedure doesn't return...
View ArticleHow to write the query using pivot table?
Hi,I am using the below query using pivot table. i have year column and employee id column in one tableSelect...
View ArticleInner Query relating to calculated field in main query
I have a query that has calculating fields in it.What I am trying to do is Create another inner SELECT query similar to the one above but using the FP_Qty_Required calculated field in the main query?Is...
View ArticleStored 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 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 Article