SQL Server

Technical Article

RE: How to reverse engineer role membership

  • Reply

Thanks Jurgen. But if I'm not wrong this command will script the roles : sp_addrole..... The kind of script I would like to obtain would look like : if not exists (select * from dbo.sysusers where name = N'xxxxxx' and uid < 16382) EXEC sp_grantdbaccess N'xxxxxx', N'xxxxxx' GO exec sp_addrolemember N'db_datareader', N'xxxxxx' GO exec sp_addrolemember […]

You rated this post out of 5. Change rating

2003-06-06

Technical Article

RE: Logins

  • Reply

Thanks. I am aware of the sp_password option. However you mentioned the application. If this is the way it needs to be done. How do you integrate this into the application side where the user is prompted to change it..?

You rated this post out of 5. Change rating

2003-06-04

1 reads

Technical Article

RE: MSDB suspect

  • Reply

You can use the sp_resetstatus system proc. That will try to force the database online/healthy. You have to stop/start the server to take affect, which may be a problem from what you said. ...If that doesn't work, you can force the DB into emergency mode by setting the "status" field for that DB in sysdatabases […]

2003-05-29

1 reads

Technical Article

RE: return value from exec(string)

  • Reply

The example I gave was not the best in that it immediate brought up questions of why I was trying to generate the key in that way in the first place. The situation is more one of coming into a place where they keys are generated in this way, but for each table and I […]

You rated this post out of 5. Change rating

2003-05-22

2 reads

Technical Article

RE: Nesting Stored Procedures

  • Reply

I'm thinking of implementing centralised validation of input at a database level for protecting against sql injection. I do not trust this only be done at application level. Nested stored procedures might be a way to do this. Any thoughts on this? Cheers, Frank

You rated this post out of 5. Change rating

2003-05-22

1 reads

Technical Article

RE: primary key definition

  • Reply

table_pk is the primary key constraint name. In this case they are using the table name plus "_PK" to make up the name. Therefore if your table was called tblEmployee, the Primary key of that table would be "tblEmployee_pk" using their format. If a constraint name is not specified, the database will automatically generate one […]

You rated this post out of 5. Change rating

2003-05-15

Blogs

EightKB 2024 – Schedule and Registration

By

Hello Hello, We. Are. Back! The schedule for EightKB 2024 Edition has been announced!...

Inside SQL Server Backup and Restore History Pruning with sp_delete_backuphistory

By

I had a customer that was looking to document a restore that had occurred...

T-SQL Tuesday #176: That Piece of Technical Advice for the Past Me

By

DIVERSIFY! We devote a lot of time to mastering the technology that we are...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers