Viewing 15 posts - 316 through 330 (of 358 total)
Here is a cool article about dynamic workflow.
June 10, 2008 at 8:09 am
Here is a script that will return all of the information. Do you have to use SMO?
June 10, 2008 at 7:49 am
You can backup your master database just like any other. There is also a rebuildm utility.
http://msdn.microsoft.com/en-us/library/aa214014(SQL.80).aspx
June 10, 2008 at 3:14 am
It is MySql. The oj stands for Outer Join.
The { OJ ... LEFT OUTER JOIN ...} syntax shown in the join syntax description exists only for compatibility with ODBC.
June 9, 2008 at 10:06 pm
The byte array is just a string of compressed data. You should be able to store it in a varchar(max) column.
June 9, 2008 at 12:32 pm
Try this. You may want to add more conditions like last batch time.
declare @spidstr varchar(8000)
select @spidstr=coalesce(@spidstr,'')+'kill '+convert(varchar, spid)+ '; '
from master..sysprocesses WHERE dbid=db_id('master') and open_tran =...
June 9, 2008 at 10:40 am
If you do it in code, you could convert the xml to a dataset and use the following compression functions.
http://www.icsharpcode.net/OpenSource/SharpZipLib/
http://www.icsharpcode.net/OpenSource/SD/forum/forum.asp?FORUM_ID=16
Imports ICSharpCode.SharpZipLib.GZip
Imports System.IO
...
June 9, 2008 at 1:21 am
1.Make sure you have enabled Remote Connections in the Surface Area Configurations.
2.Make sure the SQL Server Browser service is started in the Sql Server Configuration Manager.
June 9, 2008 at 1:10 am
I think this should do what you want, but I did not test it.
SELECT datename(month,v.SchedBegin) MonthN,
SUM(B.NC) NC,
...
June 8, 2008 at 4:14 pm
It really depends on the situation, but if you do a left join on the primary table and look for nulls in the secondary table it will return all rows...
June 8, 2008 at 7:38 am
select * from sysprocesses where open_tran = 1
Or
Select B.text, A.* from sys.sysprocesses A
cross apply sys.dm_exec_sql_text(sql_handle) as B
where open_tran = 1
June 8, 2008 at 7:17 am
--Create this function and call it from your query passing it
--dbo.udf_NumXWeekDaysinMonth(CreationDate)
CREATE Function dbo.udf_NumXWeekDaysinMonth(@Date datetime)
RETURNS smallint
AS
BEGIN
Declare @dte varchar(10)
Declare @TestDate varchar(10)
Declare @i smallint
Declare @iNumDays smallint
Set @dte = Convert(varchar(10),@Date,101)
Set @i = 1
Set...
June 7, 2008 at 8:02 am
Viewing 15 posts - 316 through 330 (of 358 total)