L Drive Full - How to clear it
SQL Server 2008 R2L drive is full on my SQL Server 2008 R2. Please see attached pic. How can I free space in that drive ?Thanks.
View ArticleGrant permission - backup and restore
Hello Everyone,Please help. I would like to give permission for the domain user to a particular database in SQL Server 2014 so that it can perform backup and restore it. User should take SQL Management...
View ArticleHelp rewriting a WHERE IN query
I am writing a stored proc to open all the symmetric keys/certificates needed to encryptbykey some credit cards. But really, that is besides the point. I just need a more efficient query.This is my...
View ArticleSql Agent Job Failed after changing job name to sa Error(The job owner does...
I changed job owner to sa and it worked well, But now it fails saying job owner does not have sever access and shows job owner as previous owner Name even after it changed to sa?Help......
View ArticleSum function
Hi, I tried to sum the values present in a column.The column contains a lot of nulls,0s and other numeric values. According to me when we sum numeric values containing NULLs then the result is null....
View ArticlePrint a message inside while loop
Hi, I want to track the iteration of the loop while loop run. So I print a message for each iteration.But print message appears only after the loop completes , it does not print values for each...
View ArticleStored Procedure, "WITH EXEC AS CALLER"
I'm reviewing a stored procedure some one else wrote. Right before the variable declarations (DECLARE) and right after the parameters they wrote the following:WITH EXEC AS CALLER ASWhat does this do,...
View ArticleRE: Retrieving an Output value by passing in stored procedure
I have written the following stored procedure to retrieve a special list of numbers from an ID Generating table.I want the out put to be the new ID number... I am trying to pass in the parameter use a...
View ArticleMsg 22051 Database Mail Attachment file is invalid
Hello,I'm testing a trigger to output a text file and then attach it to an email in Database Mail. So far, I've gotten the correct text file to export to a TEMP folder, but when I try to attach it to...
View Articlecant see tables i created when querying.
I cant see the tables i created,when iam making a query.but the table is there in my object explorer window.iam using MSSql server 2012.help is much appreciated.
View Articleconvert ms access query view to sql server 2012 query
hello every one am new in vb.net i have a experience in access query but now i want to switch on sql server 2012 and vb.nethow can i convert this access sql view to sql server query SELECT...
View ArticleSQL Server & Shadow copies
Hello, I have a question... Is it ok to have shadow copies on all drives on the SQL Server? Can be there any problem if we are not talking about performance? Thank you...
View ArticleFind SQL Server 2000 version details
Hi Guys,I am working on migrating a SQL Server 2000 to 2008, for this I should migrate the SQL Server 2000 to SP 4, when I checked the version I am getting the below output both via SQL Server logs and...
View ArticlePermissions to User Account
SQL Server 2008 R2I need to provide following permissions to a user account and SQL user. We have purchased a DB that requires the following: xyz services require the following object permissions:...
View ArticleHow to install SQL Mgmt Studio on the front end
SQL 2008 R2I need to install SSMS on the front end server. On the SQL Windows Server 2008 R2, When I click on START -->ALL PROGRAMS-->MICROSOFT SQL SERVER 2008 R2I see the following: SQL...
View ArticleWanted: Help writing Script to Configure Sql Svr 2014
As I recall from previous versions of SQL Server, TCP/IP is turned off by default and I had a lot of trouble with the user interface to get it turned on. What about named pipes?Can someone show me how...
View ArticleCreating a Trigger and some Database Design
Here is the scenario, we have the following tablesOrders, OrderDetails, Products, ProductsToInventory, Inventory, and InventoryDetailsOrders is where the orders are saved and their details are in...
View ArticleShrink Log Files
Hi,Can shrinking the log file rather than the database cause problems?CheersPaul
View ArticleCreating Custom Stored Procedure
i am trying to create a stored procedure that would accomplish a few different things. the stored procedure will be an automated job that runs aevery 5 minutes or so. The main purpose of the SP is for...
View Article