user in database are not login after restoring the database [closed] - sql

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
When i restored database from one server to other server the user's are not login in database but its shown in database then i delete it and make it again through sql/server/security/login and then its work. is someone tell me how can i restore database and do not define user every time...

Maybe this helps: How to move databases between computers. Especially Step 2: How to transfer logins and passwords.

Assuming logins exist, you have the "orphaned users" situation
Either use sp_change_users_login or ALTER USER ... WITH LOGIN .. for SQL Server 2005 +

Related

update a table on my website [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Hey all and thank you in advance for any help, I have my website I'm building as a hobby I have an java app I wrote sitting on my comp, it updates certain tables and the the end result is a table shown to users, now I update the tables manually using phpmyadmin.
The question is how do I set a connection to import tables into my website DB?
I googled it before I asked, haven't found related stuff....
There are many ways to do what you want (dozens in fact). One way, that I personally use is through PHP and the $mysqli class.
Read more on mysqli here
You will need to setup a database conection, and from here you would use this connection to query your database by building SQL queries and using the $mysqli class to send them to the database.

only one record sql [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
When I have for example only one record for administrators (only one administrator) with id and password, is it necessary to create a table administrator or not? Why?
There's nothing inherently wrong with a one record table. It's a function of your design. For example, an administrator is not a type of user so you wouldn't stick an administrator in the user's table. But that's a design decision.

My database's table cleaning itself (SQL Server 2008 Express) [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I got an epic problem about my datas that in my tables. I insert some data into a table and I wait 5 or 10 mins and table clears itself. I don't know why. My application doesn't have a code bug, but I think SQL Server has a bug. PLease help...
My best guess is that your code creates the database or the table each time it runs, thus seemingly deleting the data inserted.
Make sure you commit your changes. It is my guess that the tool you are using is not committing your changes automatically because of its settings.

How to encrypt all existing views in SQL Server 2005 after it has been created? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
How to encrypt all existing views in SQL Server 2005?
I can encrypt them while creating it WITH ENCRYPTION clause but do not know how to do it after creating it.
You can recreate all the views WITH ENCRYPTION,
BUT
notice - that it is very weak protection and actually works well only against "honest people"
SO
you cannot encrypt the views and SPs in sql server with appropriate level of security, try to manage the access to sql server instead - look to VIEW DEFINITION and similar permissions

SQL Database deletion [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Problem:
I updated the wrong table in the database.
Is there any way to get the original database back?
Please help
Thanks
UPDATE As SET Name = 'A',
Server: sql server 2005
I have already committed the update statement.
Sorry for not including it earlier.
If this is SQL Server, and you don't have any backups in place then I don't believe so.
SQL Server doesn't automatically do any data backups for you.
However, if you do have a backup stored, you can restore this using SQL Server Management Studio.