Viewing 15 posts - 256 through 270 (of 455 total)
Yes you can do a backup and restore to map the files to a location on your primary hard drive.
September 26, 2006 at 3:32 am
DECLARE @Hours INT
SET @Hours = 25
SELECT CAST((@Hours/24) AS VARCHAR) + ' Day(s) ' + CAST ((@Hours % 24) AS VARCHAR) + ' Hour(s)' AS DateValue
September 26, 2006 at 2:33 am
MyWebService ws = new MyWebService()
ws.TimeOut = time in milli seconds (This value should be set to the approximate SP execution time)
then invoke ws.MyReportFunction(params....)
However you may want to work on optimizing...
September 26, 2006 at 2:31 am
Is it because you don't appreciate using dynamic sql !!! Also I have a question with respect to using BEGIN and END in a SQL where there is no Transaction...
September 26, 2006 at 12:43 am
The better way of handling this would be on the SQL, to retrieve the day and hours in the desired format.
September 26, 2006 at 12:02 am
DECLARE @thisquarter VARCHAR(10)
DECLARE @sql NVARCHAR(4000)
SET @thisquarter = '2006SU'
SET @sql = 'IF NOT EXISTS (SELECT * FROM syscolumns WHERE id=object_id(''mytable'') and name=''TOT_' + @thisquarter + ''')
ALTER TABLE mytable
ADD TOT_' + @thisquarter ...
September 25, 2006 at 6:32 am
The Microsoft documentation has lot of good information on the Disaster Recovery Methodologies and Backup and Restore Strategies.
September 25, 2006 at 6:17 am
And it may be wise to use IF EXISTS or IF NOT EXISTS script to check if the column is already existing on the table just to avoid errors.
September 25, 2006 at 6:05 am
DECLARE @thisquarter VARCHAR(10)
DECLARE @sql NVARCHAR(4000)
SET @thisquarter = '2006SU'
SET @sql = 'alter table mytable add TOT_' + @thisquarter + ' varchar(50) '
EXEC(@SQL)
Dynamic SQL is not recommended, but if you want to...
September 25, 2006 at 6:03 am
When you are using your interactive sort, the report is refreshed and default to Initial Toggle state, so you need to set the InitialToggleState property to Expanded.
September 21, 2006 at 9:25 am
The hotfix should do it but I read from one of the forum that this should give you a solution, try this
At command-prompt on the reportserver type:
C:\Program Files\Microsoft SQL Server\80\Tools\Binn>rsconfig...
September 21, 2006 at 9:19 am
It should take same time, it would be more clear if you can post the exact the script or atleast something near to what your doing.
September 21, 2006 at 9:02 am
As mentioned by Sergiy, there is nothing possible like a part commit and part rollback possible in triggers, once your insert fails, everything is rolledback. If you are using stored...
September 20, 2006 at 11:48 pm
Your solution makes sense and depending on the modelling of the database the best required solution can be put to use.
Thx
September 19, 2006 at 7:59 am
You can wrap the code posted by David and create UDF and call it in your queries.
CREATE FUNCTION dbo.CalDateDiff(@firstdate DATETIME, @seconddate DATETIME)
RETURNS VARCHAR(100)
AS
BEGIN
DECLARE @months int
DECLARE @days INT
DECLARE @DateDifference VARCHAR(50)
SET...
September 19, 2006 at 7:43 am
Viewing 15 posts - 256 through 270 (of 455 total)