Viewing 12 posts - 1 through 12 (of 12 total)
Charles Kincaid (3/30/2012)
March 30, 2012 at 3:51 pm
wayne.mcdaniel (3/30/2012)
then we hit the 120 gigabyte database that wouldn't backup before the command timeout
You can set CommandTimeout property to 0 and then SQLCommand will wait for statement's completion indefinitely.
March 30, 2012 at 9:28 am
There are two more reasons for not using SMO for this type of project:
1) Microsoft tends to change them with every next version of SQL Server, thus...
March 30, 2012 at 7:55 am
Chong Yuan (1/7/2008)
objCMD.CommandText = "{? = call Calculate_BW_Dslam(?, ?, ?, ?, ?, ?)}"
objCMD.CommandType = 4 'adCmdStoredProc
objCMD.Parameters.Append objCMD.CreateParameter("New_BW", adSingle, adParamReturnValue)
objCMD.Parameters.Append objCMD.CreateParameter("BW_Down",adInteger,adParamInput,objAdoRs("BW_Down"))
objCMD.Parameters.Append objCMD.CreateParameter("AccessArea_ID",adInteger,adParamInput,objAdoRs("AA_ID"))
objCMD.Parameters.Append objCMD.CreateParameter("Order_ID",adInteger,adParamInput,objAdoRs("ID"))
objCMD.Parameters.Append objCMD.CreateParameter("QoS_ID",adInteger,adParamInput,objAdoRs("QoS_ID"))
objCMD.Parameters.Append objCMD.CreateParameter("Current_BW",adInteger,adParamInput,objAdoRs("Current_BW"))
objCMD.Parameters.Append objCMD.CreateParameter("Num_Dslam_AA",adInteger,adParamInput,objAdoRs("Number_DSLAMs"))
objCMD.Execute
----------------------------------------------------------------------------------------------
CREATE PROCEDURE dbo.Calculate_BW_Dslam
@IntBW_Down Integer,
@IntAccessArea_ID...
January 17, 2008 at 8:59 am
For importing and parsing delimited text files you can try to use ODBC Microsoft Text Driver or OLEDB Microsoft Jet 4.0 provider in text mode.
As a result you will see...
January 16, 2008 at 3:28 pm
DonaldW (12/21/2007)
I agree. According to BoL the sp_addserver even allows for named instances. I suspect that this also worked with MSDE but I have not tried it myself.
Proven...
December 21, 2007 at 8:31 am
majorbloodnock (12/21/2007)
That wouldn't be Quest's otherwise excellent ActiveRoles software, would it? We're currently facing exactly that problem, and it's a pain.
In our case it was Lyris ListManager which had direct...
December 21, 2007 at 8:15 am
If an application has embedded SQL statements and they are referencing system tables directly that may be the case of application being compatible only with a particular SQL Server version...
December 21, 2007 at 7:41 am
Jim,
There also is a misuse of @@ERROR function - it's value is reset by ANY next statement executed including conditional statements (in your example it is IF statement). If you...
August 7, 2007 at 8:56 am
In order to shrink log file when database is in FULL recovery mode you need to perform two consecutive actions:
1. Backup transaction log.
2. Immediately after step 1 run...
July 17, 2007 at 10:24 am
Jason Striker said:
"Is there any way to access/modify a row like a variable? Or does SQL Server have array variables?"
T-SQL doesn't have array variables and it is not possible...
July 12, 2007 at 2:24 pm
There is very simple and fast way without using any temporary table or subquery. Steps to implement it:
1. Alter table to add an additional column for sequence numbers.
2. Update this...
July 12, 2007 at 8:30 am
Viewing 12 posts - 1 through 12 (of 12 total)