Save (Not Permitted) Dialog Box. Tables will need to be dropped and re-created
18-Jan-1010 Leave a comment
IT and business subjects
18-Jan-1010 Leave a comment
13-Jan-1010 Leave a comment
The following example shows how to activate AWE and configure a limit of 1 GB for min server memory and 6 GB for max server memory.
First, configure AWE:
Copy Code
sp_configure 'show advanced options', 1 RECONFIGURE GO sp_configure 'awe enabled', 1 RECONFIGURE GO
After SQL Server restarts, the following message is written to the SQL Server error log: "Address Windowing Extensions enabled."
Next, configure memory:
Copy Code
sp_configure 'min server memory', 1024 RECONFIGURE GO sp_configure 'max server memory', 6144 RECONFIGURE GO
06-Jan-1010 Leave a comment
05-Jan-1010 Leave a comment
EXECUTE msdb.dbo.sysmail_add_principalprofile_sp
@principal_name = 'ApplicationUser',
@profile_name = 'AdventureWorks2008R2 Administrator Profile',
@is_default = 1 ;
30-Dec-0909 Leave a comment
09-Dec-0909 Leave a comment
03-Dec-0909 Leave a comment
ALTER
PROCEDURE [Testing].[uspFindText]@DatabaseName
nvarchar(50) = ‘EFI’AS
DECLARE
@SQL nvarchar(500)–SELECT @SQL = @SQL + ‘ AND ROUTINE_TYPE=”PROCEDURE”’
26-Nov-0909 Leave a comment
"When I set out to do this, someone reminded me of the "check syntax" feature in SQL Enterprise manager. If I could replicate this functionality, this would be ideal, as I didn’t want to actually compile the database objects – just simulate compilation. So I pulled out SQL profiler and recorded the statements that are executed when you press the "Check Syntax" button. Interestingly what happens when you press this button is the following:
SET NOEXEC ON GO CREATE PROC....etc GO SET NOEXEC OFF GO SET PARSEONLY OFF GO
I had not come across these SET commands before. Looking them up in BOL tells me what you have already guessed:
SET NOEXEC "compiles each batch of Transact-SQL statements but does not execute them"SET PARSEONLY "Checks the syntax of each Transact-SQL statement and returns any error messages without compiling or executing the statement"25-Nov-0909 Leave a comment
Actually this is because Objects are cached. You can refresh cache using
Edit -> Intellisense -> Refresh Local Cache (CTRL+Shift+R)
25-Nov-0909 Leave a comment
Other ways exist. For instance in code.
CREATE
PROCEDURE [dbo].[uspViewsSchemaBound]DECLARE
@SQL nvarchar(200)