473,386 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

setup rights on the database from client side



I have a form that allows me to create a new database on the server from
client side. I get everything to work except for adding users and assigning
rights to the tables. How do I do that?

Thanks
Nov 18 '05 #1
2 826
Funny you should ask that, Grant...

Just GRANT them permission. Look it up in BOL.

Of course, you have to create the logins and database users first. This
list is straight out of SQL Server Books Online. A review of these stored
procedures should give you all you need to know.

sp_addrole
sp_addrolemember
sp_adduser
sp_defaultdb
sp_defaultlanguage
sp_droplogin
sp_grantlogin
sp_helpuser
sp_password
sp_revokelogin
xp_logininfo
GRANT

Dale Preston
MCAD, MCSE, MCDBA

"Grant" <no****@nospam.com> wrote in message
news:en**************@TK2MSFTNGP11.phx.gbl...


I have a form that allows me to create a new database on the server from
client side. I get everything to work except for adding users and assigning rights to the tables. How do I do that?

Thanks

Nov 18 '05 #2
duh, the answer was right in front of me....


"Dale" <da************@msndotcomNot.Net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Funny you should ask that, Grant...

Just GRANT them permission. Look it up in BOL.

Of course, you have to create the logins and database users first. This
list is straight out of SQL Server Books Online. A review of these stored
procedures should give you all you need to know.

sp_addrole
sp_addrolemember
sp_adduser
sp_defaultdb
sp_defaultlanguage
sp_droplogin
sp_grantlogin
sp_helpuser
sp_password
sp_revokelogin
xp_logininfo
GRANT

Dale Preston
MCAD, MCSE, MCDBA

"Grant" <no****@nospam.com> wrote in message
news:en**************@TK2MSFTNGP11.phx.gbl...


I have a form that allows me to create a new database on the server from
client side. I get everything to work except for adding users and

assigning
rights to the tables. How do I do that?

Thanks


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Don | last post by:
I want the server-side php script to return a browser page that is essentially a copy of the original client page that contained the <form> which referenced the php script in the first place....
18
by: cjl | last post by:
Hey all: I know that it is silly in the age of Google to 'lose' something on the internet, but I recently checked out a project that had implemented a database with a subset of SQL in pure...
5
by: George | last post by:
VB.net 2003 standard, XP windows home edition. Installed first application OK today. When I removed the application via Control Panel, there were no problems and the app folders were deleted. ...
0
by: Mark Rae | last post by:
Hi, I'm just finishing off a WinForms app for a client, and need to provide an installation for it - the client has requested an MSI... The app is an (32-bit) update to .NET of a VB6 app I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.