Viewing 15 posts - 76 through 90 (of 388 total)
Hi,
This article is based on a new feature introduced in SQL Server 2008. It is not available in SQL Server 2005.
regards
Jacob
February 13, 2009 at 7:44 am
"dtexec.exe" can be used to execute an SSIS package from command prompt. If you want to execute an SSIS package from a stored procedure, one option is to create a...
February 6, 2009 at 10:17 am
You can run the following query to see the queries/procedures currently being executed.
select object_name(objectid) as ObjectName,
SUBSTRING(st.text, (statement_start_offset/2)+1,
((CASE statement_end_offset
...
February 5, 2009 at 12:13 pm
I did not understand the question. Are you trying to track the execution of stored procedures?
February 5, 2009 at 12:04 pm
cast the VARCHAR value to DECIMAL and then cast to INT.
DECLARE @t TABLE (data varchar(10))
INSERT INTO @t(data) SELECT 'abc'
INSERT INTO @t(data) SELECT '5'
INSERT INTO @t(data) SELECT '7.0'
INSERT INTO @t(data)...
February 5, 2009 at 11:55 am
You can use COUNT(*) OVER ('') to get the total count.
For example:
SELECT
name,
count(*) over (partition by '') AS TotalCount
FROM sys.tables
February 4, 2009 at 8:03 am
I dont think there is a way to add any custom scripts to achieve this. Wait for a while and see if some one can give a hint on...
February 4, 2009 at 5:30 am
And it would be helpful if you can post a repro-script.
February 4, 2009 at 4:32 am
How many seconds does it take when you execute it from SSMS with a sample XML document?
Also, make sure that you release the document handle before you exit the...
February 4, 2009 at 4:16 am
Why do you want to do that? Probably there must be other ways of achieving what you are looking for. What is the reason why you need such a feature?
February 4, 2009 at 4:10 am
One option is to run "sp_lock" which returns a list of all the locks currently active.
February 4, 2009 at 4:08 am
Where is 'date2' coming from? Is that a variable?
It is not advisable to apply a function over a column in your WHERE clause. For example
WHERE date_column BETWEEN '2008-01-01' AND...
February 4, 2009 at 3:56 am
try this:
DECLARE @dt VARCHAR(10)
SELECT @dt = 'AUG2007'
SELECT CONVERT(VARCHAR(6),CAST(LEFT(@dt,3) + ' ' + '01 ' + RIGHT(@dt,4) AS DATETIME), 112) AS DT
/*
DT
------
200708
*/
February 4, 2009 at 3:52 am
Do you always want to run the query for a single ID? Or do you intend to run a single query and get the result for all the IDs? If...
January 30, 2009 at 6:41 am
Viewing 15 posts - 76 through 90 (of 388 total)