The database is red-lined. How to fix the error? [closed] - sql

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 16 days ago.
This post was edited and submitted for review 13 days ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
From the page Move a table from one database to another database SQL Server, I got the way to copy a table from the database, TIMS, to another database, PUBS, as follows.
select * into pubs.course from tims.[dbo].[course]
However, pubs was red-lined with an error message
The specified schema name "pubs" either does not exist or you do not have permission to use it.
I have got the problem fixed. Thus no need to update my qestion.

Related

How to find the last non-null value from an account that is closed currently? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 days ago.
Improve this question
I am trying to figure out how I can retrieve the last balance of an account that is now closed so I can see how much money was left in their account before they closed it. I am trying to figure out how to write a SQL query for this. I have a table called Accounts that has the following columns: AccountNumber,Balance,Production Date,ClosedDate,Balance . I'm not sure how I can go back into time and retrieve users balances in their accounts while also pulling the same ones that are now closed. Any ideas?!
I haven't tried much because everything has failed currently. I'm thinking some type of CTE clause might do it?!

Why is Oracle database tables getting deleted when i close the run sql command line prompt? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
All the tables data is getting deleted when shutting down the run sql and command line. Also there is only one user.
i think, that you are missing commit; Check out Oracle documentation: https://docs.oracle.com/database/121/CNCPT/transact.htm#CNCPT037

Track down the deleted the records in a database [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I Need to track down the records deleted from the tables from a database. Apart from triggers any other way to do it in sql server?
The only way you can do this is to restore the database form a backup and compare the tables, I'd probably go with an EXCEPT query:
select * from restored_db.table
EXCEPT
select * from current_db.table

Cannot update. Database or object is read-only. Error [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I'm getting the following response when trying to enter a record in a database. I recently updated my server from IIS 6.0 to IIS 7.
"Cannot update. Database or object is read-only."
Any help would be much appreciated.
Your problem is probobly permissions check what account IIS is running under, grant acess to IIS_IUSR/networkservice.
And provide more info about your problem.

restore attach sql database [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
My old computer crashed and died a couple of weeks ago(motherboard), and I have been able to copy data from the hard drive over to new computer.
Problem is with sql database, I'm not able to restore or attach as I get the error access is denied
Anybody have an idea as to what I can do.
Thanks
George
After trying to get data via attach/restore, I just went into the data folder and copied and pasted the old db and log files, now works OK.