Batch file script to run query against multiple servers
Hi All,I'm using the below batch file script to run a query(select name,state_desc from sys.databases) which i saved in sqlquery1.sql and the output gets exported to an excel file when i run the below...
View ArticleLogin failed for user domain\servername$
Hi,Fro an AP.NET web application, I'm trying to access my sql server DB using the following connection string, but I get an error.Connection string:<add name="ConnectivityAccessDBEntities"...
View ArticleReturning day of week from a bigint field
Hi All,This is my first post on this forum. I am a beginner in MS SQL server and this question is probably quite simple for others, but I cannot work it out.Basically, I have a field in a table on my...
View ArticleHelp with two goofy queries
This is for SQL 2005 - 2012. I was given these specs. There are no indexes on the two tablesThis first one I have working, but wondering if anyone has any ideas to try and make it more efficient IF...
View Articlesystem error 1453 upon userdatabase integrity job failure.
I have a userdatabase integrity check job fail for first time in five months. Error log shows , system operator error 1453? Anyone have experience with this? I see some posts, but not sure same issue....
View ArticleSQL SERVER SERVCIES STOPPED SUDDENLY STATING ERROR EVALUATION SERVICE EXPIRED !
SQL SERVER SERVCIES STOPPED SUDDENLY STATING ERROR EVALUATION SERVICE EXPIRED !
View Articlenested query value used as comparison in second nested query
Hi,What would be the best way of writing the following:I have a simple SELECT statement which includes two nested queries used to get the start and end dates from two different tables (if the first...
View ArticleTransactional Log file is increasing sustantially
Hi All,I have installed SQL Server 2008 R2 in our production environment and facing an storage issue as the log file is consuming upto 165GB of data.How can i know if i can purge the logfile or not as...
View ArticleHow to find Installation Date for each SQL installation
Dear All,I need a basic info. How to find installation date of each SQL instance (My environment running with multiple standalone/cluster instances)?So, I need a query to find installation date easily...
View ArticleQuestion about full backup and Transaction Log file
I had a query will taking full backup daily won't allow my log file to grow as after taking the full backup I still see the some of the VLF in status 2. It went away when I manually took the backup of...
View ArticleWhat is the syntax of the Sever Name
What is the syntax of the Sever Name for the following screen in Sever Management studio I tried to use Server\SQLServer\INSTANCENAME and several variations of that with and without parts. also is...
View ArticleStore Procedure is not displayed
I am using SQL Server Management Studio 2012. In my database there is a store procedure, in this store procedure there are many store procedure (More than one store procedure), the problem is in...
View ArticleAccidentaly installed SP4 for Express Edition 2008 (express edition 2008 only...
SQL 2008 SErvice pack 4: Microsoft SQL Server 2008 Service Pack 3 is not a prerequisite for installing SQL Server 2008 Service Pack 4. These packages may be used to upgrade any of the following...
View Articlesql join with junction table and normal table together on sql server
I am going to build an app similar to twitter. I have three tables. user, userprofile and followers. user -> id, username, email, password, active userprofile -> id, userid, firstname,...
View ArticleHow can I delete duplicate records but keep one record
Hello,I have a list of account records that are being duplicated in the system. From SQL, there are two tables related to the account records, AccountBase and AccountExtensionBase.I need to delete all...
View ArticleHow long has the current SPID/Agent Job been running
I have a SQL Agent Job that has 15 steps. Each step executes the same CLEANUP sproc against a database. STEP1 executes CLEANUP against DB1, STEP2 executes CLEANUP against DB2, etc. These 15 databases...
View ArticleProblems installing SQL Server 2014 Dev on Windows 7 64 bit
I just purchases Microsoft SQL Server 2014 Dev edition from the Microsoft store, downloaded the 64bit version, and tried to install it. The install fails consistently on the Install File Setup (after...
View ArticleMaintenance plan announce ?
HiI would like to know what's the microsoft Policy/communication about the maintenance plan (VM for example including SQL Server)?ThanksBest regards
View ArticleBe 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 ArticleSQL licensing - server+cal on an internal website
Hi.We have a internal web site connected to a SQL server. The website requires a login to access information. It's forms based so the website it self are configured for anonymous access.I know that a...
View Article