How many levels a trigger can be nested? Explain about nested triggers.
How optimisation and performance in SQL server 2000 can be achieved?What are the steps involved?
Which one is better windows authentication mode or a SQL server authentication mode?
Definitely Windows Authentication Mode. Firstly, the Windows security policy is used to authenticate is employed at user login reducing extra overhead. Secondly, if we implement any extra group policy...
Error while creating backup:i am creating fullbackup for one database named postings.I executed below query and I am getting the below error message.Use mastergoexec sp_addumpdevice 'disk','postingsbac','e:backuppostingsbac.Bak'backup database postings to postingsbacerror:'device created'one row effected.Server:...
This is basically a problem with the physical path of the Backup device, I suppose. Be sure the physical path that you are giving has full access from your Windows user Account or not.
How logical architecture of DBMS differs from physical architecture
Architecture is the frame work of the Database Management System. They are simply classified into logical and physical.
How to change the default date of the SQL server?
When I am starting MySQL server ,dbserver is not getting initialized ?How to check that.
You have to connect your database first than you can open asly.....
On which tcp/ip SQL server works and how can it be changed
SQL Server runs on port 1433. It can be changed from the Network Utility TCP/IP properties > Por number, both on client and the server.
If a Trigger is having Insert/Update/Delete statement of a table which is also having a trigger defined on it for Insert/Update/Delete, then Trigger1 would cause Trigger2 to get fired when a data Manipulation has occured. This is called nested trigger.
How to make all the field values to sentence case
Ex. Smith,john,india
Save the query results to .csv file.
Create Procedure TestExport
as
Begin
xp_cmdshell 'bcp "SELECT * from YourDatabase.dbo.YourTable" QueryOut d:Temptest.xls -S alexissqlsrv01 -U dpi -P Value*() -c -T'
EndCreate Procedure TestExport
as
Begin
xp_cmdshell 'bcp "SELECT * from YourDatabase.dbo.YourTable" QueryOut d:Temptest.xls -S alexissqlsrv01 -U dpi -P Value*() -c -T'
EndIt is to know the no of rows feched from cursor
It is used in situations like
We have to do the modifications up to five rows
Their is some situations to print up to no of rows fetched from cursor
In pl/sql table it is used like an array index to store values
In the stored procedures to the total counts of the rows affected by the query.
How is a database table managed, if it is being modified by two or more user's simultaniously?
use TableLocks or RowLocks to prevent the other user from modifying the data when the previous user is using the same data.
See if two user are updating same time at same time it will affect one by one!! it means 1st user changes will accept then 2nd user changes it iwll accept
How can we implement caching in SQL server?
Large stored procedure formatting
We have used a stored procedure having large code in it. If we try to alter the sp again then the entire code seems to be scrambled - why ?
How could I send mails using ms. SQL server 2000 and ASP.Net
How to convert a column binary data file (with .Cbi extn.) to an ascii data file?
There are up to 32 nested trigger levels.