Viewing 15 posts - 1 through 15 (of 18 total)
try to copy and paste into word first and then paste it to notepad to see if the off characters are removed then copy it to management studio.
March 1, 2012 at 12:54 pm
A sample if you need it
--SQL2008++
DECLARE @i INT = 5,
@k INT = 6
GO
--SQL2005++
DECLARE @i INT,
@k INT
SELECT @i...
February 28, 2012 at 11:29 am
sql 2005 does not allow assigning values to a variable during declaration. You can have the declare done first and then assign the values to the declared variables.
I have not...
February 28, 2012 at 11:22 am
There may be are pieces useful that works also in SQL 2005, I put bunch of counters from all over the place together to see all of them in one...
January 31, 2012 at 12:13 pm
I don't know sybase
January 31, 2012 at 10:41 am
Actually remove code "SELECT
???? @SQLServerCPU = SQLServerCPU,
???? @ServerCPU = ServerCPU
FROM Util.dbo.GetCPUUsage(1)", it's redundant. See below.
[font="Courier New"]USE [master]
GO
IF OBJECT_ID('dbo.sp_SysMon') IS NULL
EXEC('CREATE PROCEDURE dbo.sp_SysMon AS SELECT 1...
January 31, 2012 at 6:45 am
Sorry, my original version uses many functions in my Util database, I thought replaced them all with the source code version. GetCPUUsage is an inline table valued function and needs...
January 31, 2012 at 6:40 am
I use redgate sql prompt too. I also check every version of apexsql refactor (free), they have many options but I still cannot get it format the way I want...
September 21, 2011 at 7:27 am
I prefer the below code not to change when I format
-- OBJECT transview HAS NOT BEEN LOCATED. DOING A GENERAL SEARCH
GO
ALTER PROCEDURE Template.[DataFolder-TransformTransActionTransViewIns]
@CntyCdList VARCHAR(MAX)
AS
SET NOCOUNT...
September 20, 2011 at 3:15 pm
It gets complicated, I guess more options will be necessary. In my case I do not want the full insert statement that has 100+ columns followed by comma space but...
September 20, 2011 at 2:41 pm
I like the tool a lot. I was looking for a tool to batch format sql scripts for the longest. I would like to drop some feedback after playing with...
September 20, 2011 at 1:57 pm
If you want to find out the actual statement executed at the start of the sql call stack than you can get it (up to 4000 characters) by calling DBCC...
June 23, 2011 at 11:55 am
You can always retrieve more information from system views or dmv's as below. Whatever information you will want to pull out by testing local session and whatever is available, then...
June 23, 2011 at 11:48 am
For months I had done the whole data generation from within costly triggers, when the cost became very expensive I went back to using CDC but having done all kind...
June 20, 2011 at 8:09 am
Users are granted create procedure rights on purpose and not given rights to the table on purpose (and specifically denied rights to drop table). But in their procedures they can...
April 22, 2011 at 6:55 am
Viewing 15 posts - 1 through 15 (of 18 total)