back up & restore
Hi,I am trying to restore the same .mdf and .ldf files into the newly created database.But its giving me an error that its already in use and I cannot complete my task.Is it possible to do the same??...
View ArticleUnable to uninstall sql server 2012 from Windows 7(ultimate) 64-bit SP1 version.
I am trying to install sql sever 2012 on my m/c but it's giving me error after partial installation. Now I have successfully installed Sql Server 2008 R2 on my machine but when I am trying to uninstall...
View ArticleMicrosoft SQL Server 2008 R2 SP2 - Express Edition
Hi,I am not able to install Microsoft SQL Server 2008 R2 SP2 - Express Edition on my Windows 8.1 Single Language OS.I get the following error."Your SQL Server 2008 R2 installation completed with...
View ArticleDuration of restore time.
Hi All,How to find out the "how much time my database is taking to restore" as i could see my database is restoring from Friday.In short "How to find since how long my database is taking to...
View ArticleConversion failed when converting the varchar
This line returns the above error. The value in the database is an in, but I am putting it into a text label, (hours), so why does it fail? The value of multi (1 or 0) determines whether you divide...
View ArticleHow to run queries on 47 SQL Servers
I have to run following queries on 47 SQL Servers, how can I run them on so many servers?Thank you.=========================================================================Courtesy of Ashwin...
View ArticleHow to get columns which have values greater than 0
Dear all,I have following output in sql server But i only want the columns which has data > 0. as i m using these columns as aliases e.g. SUM(CASE SizeBreakupDetail.Size WHEN 'XS' THEN...
View ArticleSet out of range value to a time datatype in sql server 2008
Hi,I have a variable set to time datatype in SQL server 2008. I need to set a value more than 24 hrs to that. Is there any way? I get an error like Conversion failed when converting date and/or time...
View ArticleWho 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 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 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 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 Article