Who is the default owner of a table?
Assuming a table is created as dbo.Customers, who owns this table?Who is the owner of the dbo schema - and isn't he the owner of the table?And what if it's a different schema, a table created as...
View ArticleRegarding OUTER JOIN
I'm reading a SQL Server book.I don't understand LEFT OUTER JOIN and RIGHT OUTER JOIN.According to this book, LEFT OUTER JOIN is illustrated like following.A LEFT OUTER JOIN will preserve all of the...
View ArticleIs it advisable or practical to run SQL Agent with Account from another domain?
A SQL Server in domain A needs to mount databases downloaded on a weekly basis to a second SQL Server, in domain B.Right now, the two domains, which were deliberately separated for security, have no...
View ArticleError: 1204
Hi Team,How to resolve thisThe SQL Server cannot obtain a LOCK resource at this time. Rerun your statement when there are fewer active users or ask the system administrator to check the SQL Server lock...
View ArticleHelp with Sql query
I am writing a sql statement for a report when i run the query it doesn't execute i have left it running for over an hour and to no availHeres the code: select DISTINCT user_firstname +' '+...
View ArticleWeb Edition Download link
I want to download sql server 2008 r2 webedition on my system but couldn't find any desired link for same.Will appreciate if anyone can provide the linkHS
View ArticleViewing log files of SQL 2008R2 Database
Hi folks,I wonder could someone help me!I have been asked for a list of users who performed an update statement on a specific database between a particular date and time and I’m not sure how to produce...
View ArticleActual Query Plan not running
I am using SQL Server 2012 (11.0.5058.0) and I am trying to learn Execution Plan Basics. One of the tasks is to run the "Actual Query Plan" by CTRL+M. When I try this nothing happens. I can do the...
View ArticleChecking for existing duplications in a column
HI There I want to pick someones brain I am using a Trigger to search for existing values in a column in a table to look if the value is already in the table before inserting: here is my statement to...
View ArticleSingle instance with multiple IP's - Cannot connect to DB
Hi!I'm running SQL Server 2005 on a Windows Server 2008R2 server.The Windows server has two IP's on the same NIC (one is used for network alias). So basicly the server has two network names with...
View ArticleWhy Does SSIS Make It So Difficult to Import a Fixed Width File?
Importing a fixed width file into an Access table is a five-second task - why is it such a headache in SSIS? Is SSIS unable to count blank spaces? It would seem so, because it can't seem to align the...
View ArticleSQL Server Setup Failure 0x84B10001 (SQL 2012 SP2 and SQL 2014 Standard)
I'm having a problem with SQL Server Setup. I had SQL Server 2012 R2 SP1 installed, and the SP2 installer would fail.I decided to just get SQL Server 2014. The setup (and system configuration checker)...
View ArticleDeposit generated PDF to SQL DB using Entity Framework
Hello,I am the system admin and have no real experience with .NET and/or SQL. My task is to make a change to existing application so the PDF file it generates using ASPpdf.Net (Persits.PDF) functions...
View ArticleBackup of mirrored database is not possible?
Hi Please correct me,backup of mirror database is not possible right?ThanksShashikalaShashikala
View Articlehow to get all records from department wise having max salary?
i have a Employee table which consist id | name | dept_id | Salary 1 A 1 20 2 B 1 25 3 C 2 30 4 D 2 25 Search max salary department wise with all details like below result. id | name | dept_id | Salary...
View ArticleUnable to install SQL Server Express 2008 R2 - Errors "Failed to retrieve...
As domain admin I am attempting to install "SQL Server 2008 R2 with SP2" but it keeps failing with "Failed to retrieve data for this request".The installation never actually starts, it errors before...
View Articlesqlcmd -L
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow...
View ArticleService Accounts - Your Ideas
I have been tasked to install SQL 2012 on a new machine(2012 R2) which we will move all current 2008 R2 databases over too (approx. 26). This machine will also hold a new instance of SharePoint (not...
View Articleforce sqlcmd mode automatically on managment studio
Hello Experts, Could you please let me know how to enable SQLCMD mode through TSQL Script.I am trying run the script on SQLCMD Mode. If sqlcmd mode is not enabled, I want to automatically enable...
View Article