Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 27th, 2003, 08:19 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default extra tables in MS-SQL Server

Hi there!
I use MS-SQL Server 2000 & C#.NET for my window app.
There are some Stored Procedures in my Database witch I didnt creat them! What are they?! & Why they created!?!?

Always:),
Hovik Melkomian.
__________________
Always,
Hovik Melkomian.
 
Old September 20th, 2003, 12:02 PM
Registered User
 
Join Date: Sep 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

They are called system procedures and they usually start with "sp" or "xp". Think of them as commands that the good ole folks from SQL Server team created for your comfort. They can be very helpful too.
You can query database details using the sp_helpdb system proc or add a user using the sp_addlogin system proc.

here, try this
Code:
exec sp_addlogin 'melvik', 'a_password', 'Northwind'
go
use Northwind
exec sp_grantdbaccess 'melvik'
go
exec sp_revokedbaccess 'melvik'
go
exec sp_droplogin 'melvik'
go
use master
go
exec sp_helpdb 'Northwind
go
see online books for more system/extended procedures





Similar Threads
Thread Thread Starter Forum Replies Last Post
How Run .sql Script file in MS SQL Server 2000? aarkaycee SQL Server 2000 5 October 12th, 2009 05:43 AM
MS SQL Server license dk6607 SQL Server 2005 1 February 7th, 2008 07:32 PM
MS ACCESS 2003 FRONTEND AND MS SQL SERVER 2005 DB mohankumar0709 SQL Server 2005 3 March 23rd, 2007 12:48 AM
Sql Server Temporary Tables itHighway SQL Server 2000 1 July 14th, 2005 12:33 AM
MS SQL Server Replication rodmcleay SQL Server 2000 2 August 12th, 2004 02:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.