Microsoft Network Monitor
http://www.microsoft.com/en-us/download/details.aspx?id=4865
Fiddler
http://www.fiddler2.com/fiddler2/
HttpWatch
http://www.httpwatch.com/download/
Wednesday, July 15, 2009
Wednesday, July 8, 2009
HTTP Response Status Code Group
1xx: Informational. The request was received and server is continuing to process.
2xx: Success. The action was successfully received, understood and accepted.
3xx: Redirect Command. The client must access a different resource.
4xx: Client Error. The server does not know how to fulfill the request. The request may have syntax error.
5xx: Server Error. The server failed to fulfill the request that appears to be valid.
2xx: Success. The action was successfully received, understood and accepted.
3xx: Redirect Command. The client must access a different resource.
4xx: Client Error. The server does not know how to fulfill the request. The request may have syntax error.
5xx: Server Error. The server failed to fulfill the request that appears to be valid.
Thursday, May 28, 2009
Use sp_refreshview to refresh view
When a table schema is updated the view does not update on its own.
sp_refreshview updates metadata of the specified view
To update a specifiec view
EXECUTE sp_refreshview '[VIEWNAME]'
To update all views that are dependent on a specified object
SELECT DISTINCT 'EXEC sp_refreshview ''' + name + ''''
FROM sys.objects AS so
INNER JOIN sys.sql_expression_dependencies AS sed
ON so.object_id = sed.referencing_id
WHERE so.type = 'V' AND sed.referenced_id = OBJECT_ID('[OBJECTNAME]');
sp_refreshview updates metadata of the specified view
To update a specifiec view
EXECUTE sp_refreshview '[VIEWNAME]'
To update all views that are dependent on a specified object
SELECT DISTINCT 'EXEC sp_refreshview ''' + name + ''''
FROM sys.objects AS so
INNER JOIN sys.sql_expression_dependencies AS sed
ON so.object_id = sed.referencing_id
WHERE so.type = 'V' AND sed.referenced_id = OBJECT_ID('[OBJECTNAME]');
Tuesday, May 12, 2009
Get List of All Triggers in a Database
SELECT trigger_name = name, trigger_owner = USER_NAME(uid), table_name = OBJECT_NAME(parent_obj),
isupdate = OBJECTPROPERTY( id, 'ExecIsUpdateTrigger'), isdelete = OBJECTPROPERTY( id, 'ExecIsDeleteTrigger'),
isinsert = OBJECTPROPERTY( id, 'ExecIsInsertTrigger'), isafter = OBJECTPROPERTY( id, 'ExecIsAfterTrigger'),
isinsteadof = OBJECTPROPERTY( id, 'ExecIsInsteadOfTrigger'),
status = CASE OBJECTPROPERTY(id, 'ExecIsTriggerDisabled') WHEN 1 THEN 'Disabled' ELSE 'Enabled' END
FROM sysobjects
WHERE type = 'TR'
isupdate = OBJECTPROPERTY( id, 'ExecIsUpdateTrigger'), isdelete = OBJECTPROPERTY( id, 'ExecIsDeleteTrigger'),
isinsert = OBJECTPROPERTY( id, 'ExecIsInsertTrigger'), isafter = OBJECTPROPERTY( id, 'ExecIsAfterTrigger'),
isinsteadof = OBJECTPROPERTY( id, 'ExecIsInsteadOfTrigger'),
status = CASE OBJECTPROPERTY(id, 'ExecIsTriggerDisabled') WHEN 1 THEN 'Disabled' ELSE 'Enabled' END
FROM sysobjects
WHERE type = 'TR'
Wednesday, April 29, 2009
Using Apply: CROSS APPLY and OUTER APPLY
The APPLY operator allows you to invoke a table-valued function for each row returned by an outer table expression of a query.
http://msdn.microsoft.com/en-us/library/ms175156.aspx
http://msdn.microsoft.com/en-us/library/ms175156.aspx
Thursday, April 23, 2009
Save (Not Permitted) Dialog Box in MS SQL 2008
The Save (Not Permitted) dialog box warns you that saving changes is not permitted because the changes you have made require the listed tables to be dropped and re-created.
The following actions might require a table to be re-created:
Adding a new column to the middle of the table
Dropping a column
Changing column nullability
Changing the order of the columns
Changing the data type of a column
To change this option, on the Tools menu, click Options, expand Designers, and then click Table and Database Designers. Select or clear the Prevent saving changes that require the table to be re-created check box.
http://msdn.microsoft.com/en-us/library/bb895146.aspx
The following actions might require a table to be re-created:
Adding a new column to the middle of the table
Dropping a column
Changing column nullability
Changing the order of the columns
Changing the data type of a column
To change this option, on the Tools menu, click Options, expand Designers, and then click Table and Database Designers. Select or clear the Prevent saving changes that require the table to be re-created check box.
http://msdn.microsoft.com/en-us/library/bb895146.aspx
Subscribe to:
Posts (Atom)