SQL Agent won't start
Hi,I tried to start the SQL Agent on my SQL 2008 Server but got this error:TITLE: Microsoft SQL Server Management Studio ------------------------------ Unable to start service SQLSERVERAGENT on server...
View ArticleHow do I run sp_spaceused for all tables in a database?
Hi, I am struggling to understand how to run the sp_spaceused sproc for all tables in a database. I know how to use it for one table but how would I replicate it automatically for each table in a given...
View ArticleWhat is the difference between CTE and temp table and when to use one over...
Hi Everyone,What is the difference between CTE and temp table. I know how to create both and use but would like to know and when to when to use one over the other?RegardsGautam SGautam S
View ArticleLeaning SQL Server 2012
Hi All,i am planning to learn sql 2k12, could you please guide me where can i start...and provide some good links..Thanks,
View ArticleNeed to drop a database with recovery pending flag set
Stuck on this, I think the device where the log is full and I cannot free any space. The Database is in recovery pendingI just want to drop the database, I don't need or want itAny alter database...
View ArticleTable Creation and Storage
I just downloaded SQL Server 2012 and am trying to create new databases with tables inside of them. However, the tables I create in my query don't get stored in my newly created database; they're...
View ArticleError occurred during the login process
Error: A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of...
View Articleinstall Cumulative update in sql 2008
Can any one tell me how to install Cumulative update in sql 2008 r2 ?
View ArticleDatabase Copy to another
I have a SQL database on Server1 called DB1. I need that entire database copied over to a different server (call it Server2) each night. I'd like to schedule a SQL Agent job to do this. I'd prefer not...
View ArticleThe number of client workstations currently connected to the database server
Hi All,I am receiving some alerts for SQL 2000 version saying that "The number of client workstations currently connected to the database server is 650.00". In this scenario what need to check and any...
View ArticleHandling Multiple set result in EXEC from DB2
hi team, i am calling a Stored Procedure which is in DB2 server, using EXEC(...) as LinkServer from a SQL Server 2008 R2how to handle if it is returing multiple resultsetThanks in advance
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 Articlehow to convert a datetime to varchar for comparing a field
I am importing an Excel file into the SQL server table. One of the fields is called DOB and it displays for example as 04141963.However, when the import is completed in the SQL Server table, the...
View ArticleLoop through records
Hi,I have a SP with a subquery which returns multiple rows.I need to select the details from different tables based on the rows returned.How can I do it?
View ArticleGetting started with SQL Server - Java And MS SQL 2008 Remote Access...
Hi Guys..Please Help me to Create a step by step remote access configuration guide for java developers
View ArticleSQL Server 2008 R2 LogShipping Problem
Hey guysI came back from holiday... and during my whole holiday the logshipping went cracy (didnt run for 3 weeks now) ... the transactionlog is now 40GB large and we dont have that much diskspace left...
View ArticleGet ID from database, launching a query from code and set NOCOUNT clause
Hello,I need to extract some id from some table in mydatabase. I launching query from code.I would like to know if it is correct what I doSET NOCOUNT ON SELECT ID FROM tblID SET NOCOUNT OFFit is right...
View ArticleWhen does the given index fire?
Hi Everyone,Suppose there is a table Table1 which has three columns which are not primary keyColumn1Column2Column3If we create an composite index on the columns Column1,Column2 as Idx_C1_C2, then would...
View ArticleUpgrade to 2014.
In the 2008 database I have one monster generic table. Which is being used by entire application. The application sends data in big string. I have a function that parses string put that in to that...
View Article