Showing posts with label job. Show all posts
Showing posts with label job. Show all posts

Sunday, March 25, 2012

Dimension Usage

I have 2 tables: Fct_ServiceJob and Fct_ServiceJobItem. They are linked together by Service Job ID and CompanyID.

In dimension usage, I would specify that their relationship is regular. The thing is, i can only specify the ServiceJobID field as their link and i dunno how i can add the Company ID. Can i?

Should I do the linking of these tables on the SQL views instead and call this view in analysis instead of setting it in AS?

cherriesh

You would need to go into the dimension (which I assume is Fct_SeviceJob) and set the key column property of the key attribute to be CompanyID and ServiceJobID. When you have a composite key for the attribute, it will let you pick multiple columns for the relationship.|||

Hi,

You need to define a composite key on the dimension, if you edit your dimension key. In the properties of the key in your dimension under keycolumns you can add new columns to the key. Your one being company_id. Once you have added one there when you look at the dimension usage it will asked for both ID's.

probably a better walk through:

http://msdn2.microsoft.com/en-us/library/ms175461.aspx

You might want to update the dsv to reflect the composite key of the dimension.

HTH

Matt

didn't see Darren's post but exactly what he said Smile

Wednesday, March 21, 2012

Difficult times deploying a few packages to SQL Server and running as a job

Hi Guys!

I have created a big list of packages, some calling others. They all work fine from my computer using Visual Studio.

When I try to deploy them (building them with deployment turned on and running them either directly from Management Studio or as a job) I get the errors with the password of connection strings. From what I read so far its the encryption process that kills it.

I have tried to add a password to some packages, but it still didnt work (only when run directly on my computer in management studio after deploying to SQL Server, but not as a job).

I have tried to change ProtectionLevel to SecurityStorage, wouldnt let me save in Visual Studio (I understand it is ot allowed in VS because you are saving to File System, how the hell am I supposed to save it to anything else? why is it showing there if its not even valid?).

If anyone can please give me the steps to doing it properly, that would be awesome. I simply need to run the packages from SQL Server! thats all! I have no idea why it has to be soooo difficult :/

A step-by-step guide would be different depending on several factors. Are you planning to store your packages as file system files? Are you using package configuration? How are you going to run the packages (may be via SQL Agent job)?

Personally, I store package as file system files and use something similar to method 4 in this KB article. I hope that helps

http://support.microsoft.com/kb/918760

|||

Hi Refael!

I don't mind saving it to the file system or putting it on SQL Server, as long as it works! :)

How do you actually create this package configuration? and how do you then indicate to the data process that the password is stored there?
I am replicating from Oracle using Microsoft Oracle provider (for which I need the password) to SQL Server.

Thanks so much for your help

Guy

|||

Weird thing: I have changed one package to have a password and when I import it to 'stored packages' or run it from the file system on Management Studio on the server itself (simply copying the files from the development machine to the server) its not asking me for a password and it runs it. does this makes sense?

|||

Just search for package configurations to set connection strings...it would make your packages nicely portables.

|||

I have tried to find out (google) how to make a configuration file in xml but couldn't find much and have no idea what the format should look like.

If you could help me here I would really appriciate it.

|||

guyguy2003 wrote:

I have tried to find out (google) how to make a configuration file in xml but couldn't find much and have no idea what the format should look like.

If you could help me here I would really appriciate it.

http://msdn2.microsoft.com/en-us/library/ms141682.aspxsql

Sunday, March 11, 2012

differential backups

Hi,
Running SQL 7. We have a maintanence plan doing transaction log backups
every hour. Outside of the maintanence plan we have a job that does a
differential backup of the database. My question is, when the differential
backup occurs, is the transaction log truncated? For example if the last
transaction log backup was at 1pm, and a differential at 1:30pm, then
another transaction log backup at 2pm; will the 2pm transaction log backup
contain the transactions at 1:15pm?
Secondly, how can I modify the differential backup job below to:
a) name the filename of the diff backup file to be
<database_name>_diff_MMDDYYhhmmss.bak
b) have the script remove diff backup files older than 1 day.oops! here is the script I need to modify that I referred to below:
BACKUP DATABASE [myDB] TO DISK =N'F:\hot_backups\myDB\myDB_db_latest_diff.BAK' WITH INIT , NOUNLOAD ,
DIFFERENTIAL , NAME = N'myDB latest diff backup', SKIP , STATS = 10,
DESCRIPTION = N'every 5 hour diff', NOFORMAT DECLARE @.i INT
select @.i = position from msdb..backupset where database_name='myDB'and
type!='F' and backup_set_id=(select max(backup_set_id) from msdb..backupset
where database_name='myDB')
RESTORE VERIFYONLY FROM DISK =N'F:\hot_backups\myDB\myDB_db_latest_diff.BAK' WITH FILE = @.i
"aaz" <aaz@.webcapacity.com> wrote in message
news:uSP7mY$SDHA.3188@.tk2msftngp13.phx.gbl...
> Hi,
> Running SQL 7. We have a maintanence plan doing transaction log backups
> every hour. Outside of the maintanence plan we have a job that does a
> differential backup of the database. My question is, when the differential
> backup occurs, is the transaction log truncated? For example if the last
> transaction log backup was at 1pm, and a differential at 1:30pm, then
> another transaction log backup at 2pm; will the 2pm transaction log backup
> contain the transactions at 1:15pm?
> Secondly, how can I modify the differential backup job below to:
> a) name the filename of the diff backup file to be
> <database_name>_diff_MMDDYYhhmmss.bak
> b) have the script remove diff backup files older than 1 day.
>|||Azz
Running a differential backup does not truncate the
transaction log, it just records all the changes to the
database sine the last full backup.
Bear in mind you should not just do differential backups,
you should do a full backup as well as part of you backup
strategy. How often depends on the size of your database
and how dynamic the data is.
If you do not do full backups eventually your differential
will be as large and take as long as a full backup, and
you will still need a full backup to use it.
Regards
John|||yeah we are also doing fulls once a day, diffs 2x, then transaction logs
every hour. I just wanted to make sure that running the differential did not
truncate the transaction logs.
can anyone help with the second 1/2 of my question?
"John Bandettini" <johnbandettini@.yahoo.co.uk> wrote in message
news:093f01c34c3e$2afca6b0$a101280a@.phx.gbl...
> Azz
> Running a differential backup does not truncate the
> transaction log, it just records all the changes to the
> database sine the last full backup.
> Bear in mind you should not just do differential backups,
> you should do a full backup as well as part of you backup
> strategy. How often depends on the size of your database
> and how dynamic the data is.
> If you do not do full backups eventually your differential
> will be as large and take as long as a full backup, and
> you will still need a full backup to use it.
> Regards
> John|||Here is a sample to start from:
-- Separate file for each day of the week --
DECLARE @.DBName NVARCHAR(50), @.Device NVARCHAR(100), @.Name NVARCHAR(100)
IF OBJECT_ID('tempdb..#DBs') IS NOT NULL
DROP TABLE #DBs
CREATE TABLE #DBs ([name] VARCHAR(50),[db_size] VARCHAR(20),
[Owner] VARCHAR(20),[DBID] INT, [Created] VARCHAR(14),
[Status] VARCHAR(1000), [Compatibility_Level] INT)
INSERT INTO #DBs EXEC sp_helpdb
DECLARE cur_DBs CURSOR STATIC LOCAL
FOR SELECT [Name]
FROM #DBs
WHERE [DBID] IN (5,6)
OPEN cur_DBs
FETCH NEXT FROM cur_DBs INTO @.DBName
WHILE @.@.FETCH_STATUS = 0
BEGIN
SET @.Device = N'C:\MVP\Backups\DD_' + @.DBName + '_Full_' +
CAST(DAY(GETDATE()) AS NVARCHAR(4)) +
CAST(MONTH(GETDATE()) AS NVARCHAR(4)) +
CAST(YEAR(GETDATE()) AS NVARCHAR(8)) + N'.BAK'
SET @.Name = @.DBName + N' Full Backup'
BACKUP DATABASE @.DBName TO DISK = @.Device WITH INIT , NOUNLOAD ,
NAME = @.Name, NOSKIP , STATS = 10, NOFORMAT
RESTORE VERIFYONLY FROM DISK = @.Device WITH FILE = 1
FETCH NEXT FROM cur_DBs INTO @.DBName
END
CLOSE cur_DBs
DEALLOCATE cur_DBs
-- Removing Older Backup Files --
DECLARE @.Error INT, @.D DATETIME
SET @.D = CAST('20020801 15:00:00' AS DATETIME)
EXEC @.Error = remove_old_log_files @.D
SELECT @.Error
CREATE PROCEDURE remove_old_log_files
@.DelDate DATETIME
AS
SET NOCOUNT ON
DECLARE @.SQL VARCHAR(500), @.FName VARCHAR(40), @.Error INT
DECLARE @.Delete VARCHAR(300), @.Msg VARCHAR(100), @.Return INT
SET DATEFORMAT MDY
IF OBJECT_ID('tempdb..#dirlist') IS NOT NULL
DROP TABLE #DirList
CREATE TABLE #dirlist (FName VARCHAR(1000))
CREATE TABLE #Errors (Results VARCHAR(1000))
-- Insert the results of the dir cmd into a table so we can scan it
INSERT INTO #dirlist (FName)
exec master..xp_cmdshell 'dir /OD D:\Backups\*.trn'
SET @.Error = @.@.ERROR
IF @.Error <> 0
BEGIN
SET @.Msg = 'Error while getting the filenames with DIR '
GOTO On_Error
END
--SELECT * FROM #dirList
-- Remove the garbage
DELETE #dirlist WHERE
SUBSTRING(FName,1,2) < '00' OR
SUBSTRING(FName,1,2) > '99' OR
FName IS NULL
-- Create a cursor and for each file name do the processing.
-- The files will be processed in date order.
DECLARE curDir CURSOR READ_ONLY LOCAL
FOR
SELECT SUBSTRING(FName,40,40) AS FName
FROM #dirlist
WHERE CAST(SUBSTRING(FName,1,20) AS DATETIME) < @.DelDate
AND SUBSTRING(FName,40,40) LIKE '%.TRN'
OPEN curDir
FETCH NEXT FROM curDir INTO @.Fname
WHILE (@.@.fetch_status = 0)
BEGIN
-- Delete the old backup files
SET @.Delete = 'DEL "D:\Backups\' + @.FName + '"'
INSERT INTO #Errors (Results)
exec master..xp_cmdshell @.Delete
IF @.@.RowCount > 1
BEGIN
SET @.Error = -1
SET @.Msg = 'Error while Deleting file ' + @.FName
GOTO On_Error
END
-- PRINT @.Delete
PRINT 'Deleted ' + @.FName + ' at ' +
CONVERT(VARCHAR(28),GETDATE(),113)
FETCH NEXT FROM curDir INTO @.Fname
END
CLOSE curDir
DEALLOCATE curDir
DROP TABLE #DirList
DROP TABLE #Errors
RETURN @.Error
On_Error:
BEGIN
IF @.Error <> 0
BEGIN
SELECT @.Msg + '. Error # ' + CAST(@.Error AS VARCHAR(10))
RAISERROR(@.Msg,12,1)
RETURN @.Error
END
END
GO
Andrew J. Kelly
SQL Server MVP
"aaz" <aaz@.webcapacity.com> wrote in message
news:Owh8jYHTDHA.2460@.TK2MSFTNGP10.phx.gbl...
> yeah we are also doing fulls once a day, diffs 2x, then transaction logs
> every hour. I just wanted to make sure that running the differential did
not
> truncate the transaction logs.
> can anyone help with the second 1/2 of my question?
> "John Bandettini" <johnbandettini@.yahoo.co.uk> wrote in message
> news:093f01c34c3e$2afca6b0$a101280a@.phx.gbl...
> > Azz
> >
> > Running a differential backup does not truncate the
> > transaction log, it just records all the changes to the
> > database sine the last full backup.
> >
> > Bear in mind you should not just do differential backups,
> > you should do a full backup as well as part of you backup
> > strategy. How often depends on the size of your database
> > and how dynamic the data is.
> >
> > If you do not do full backups eventually your differential
> > will be as large and take as long as a full backup, and
> > you will still need a full backup to use it.
> >
> > Regards
> >
> > John
>

Differential Backup Files

When a new scheduled job is created for a Differential backup, the file specified in the Destination folder is automatically created by SQL Server. After the first time the job runs, is there a way to configure SQL Server to give each Differential file a unique name, including the timestamp (i.e. similar to Full Backup jobs)? I noticed my only options are 'Append to File" and "Overwrite Existing File." If I choose to enable "Backup Set Expiration," the backup job will not run, because it wants to append/overwrite the filename specified.pretty easy to do via T-SQL statement. The following script creates a backup with date and hour as timestamp in file name.

declare @.hour varchar(2), @.date varchar(8)
set @.hour = substring(convert(char(2), getdate(), 108), 1, 2)
set @.date = convert(varchar(8), getdate(), 112)
exec ('use master backup database xxx to disk = ''D:\backup\xxx_db_' + @.date + @.hour + '.bak '' with init')

DIFFERENTIAL BACKUP ERROR

Hi ,
I am running a job for taking a differential back up of a Merge replicated
database.
in week days the differential backup will run and on sunday the normal
backup will overwrite the differential back up.again from monday differential
back up will start.
the backup job is running correctly.when i try to restore the differential
back up it's working upto 4th day.for 5th and 6 th its not working and giving
an error.
here i am listing my backup job code
declare @.Weekday INT
SET @.Weekday=0
SET @.Weekday=datepart(weekday,getdate())
IF @.Weekday<>1
BEGIN
BACKUP DATABASE DIFFBACKUP
TO DISK ='F:\BackUp\DIFFBACKUPBACKUP.DAT' WITH DIFFERENTIAL ,
NOUNLOAD , NAME = N'DIFFBACKUPBACKUP', NOSKIP ,
STATS = 10, NOFORMAT
END
IF @.Weekday=1
BEGIN
BACKUP DATABASE DIFFBACKUP
TO DISK ='F:\BackUp\DIFFBACKUPBACKUP.DAT' WITH INIT ,
NOUNLOAD , NAME = N'DIFFBACKUPBACKUP', NOSKIP ,
STATS = 10, NOFORMAT
END
Please help.i am unable to identify the problem.
thanks,
reddy.
reddy
What is an error that you've got?
"reddy" <reddy@.discussions.microsoft.com> wrote in message
news:057BCACB-136F-42A4-82C4-3613A94B222B@.microsoft.com...
> Hi ,
> I am running a job for taking a differential back up of a Merge replicated
> database.
> in week days the differential backup will run and on sunday the normal
> backup will overwrite the differential back up.again from monday
differential
> back up will start.
> the backup job is running correctly.when i try to restore the differential
> back up it's working upto 4th day.for 5th and 6 th its not working and
giving
> an error.
> here i am listing my backup job code
> declare @.Weekday INT
> SET @.Weekday=0
> SET @.Weekday=datepart(weekday,getdate())
> IF @.Weekday<>1
> BEGIN
> BACKUP DATABASE DIFFBACKUP
> TO DISK ='F:\BackUp\DIFFBACKUPBACKUP.DAT' WITH DIFFERENTIAL ,
> NOUNLOAD , NAME = N'DIFFBACKUPBACKUP', NOSKIP ,
> STATS = 10, NOFORMAT
> END
> IF @.Weekday=1
> BEGIN
> BACKUP DATABASE DIFFBACKUP
> TO DISK ='F:\BackUp\DIFFBACKUPBACKUP.DAT' WITH INIT ,
> NOUNLOAD , NAME = N'DIFFBACKUPBACKUP', NOSKIP ,
> STATS = 10, NOFORMAT
> END
> Please help.i am unable to identify the problem.
> thanks,
> reddy.
>
>
>
|||The error is
can not apply the backup on device 'c:\mssql\test.dat' to database test
restore database is terminating abnormally.
the backup job aim is from monday to saturday differential backup, on sunday
normal backup will overwrite all the differential backups.i am able to
restore differential backups till thursday.after that any backup i am unable
to restore.i am getting the above error.
your help is appreciated.
thanks
reddy.
"Uri Dimant" wrote:

> reddy
> What is an error that you've got?
> "reddy" <reddy@.discussions.microsoft.com> wrote in message
> news:057BCACB-136F-42A4-82C4-3613A94B222B@.microsoft.com...
> differential
> giving
>
>

DIFFERENTIAL BACKUP ERROR

Hi ,
I am running a job for taking a differential back up of a Merge replicated
database.
in week days the differential backup will run and on sunday the normal
backup will overwrite the differential back up.again from monday differentia
l
back up will start.
the backup job is running correctly.when i try to restore the differential
back up it's working upto 4th day.for 5th and 6 th its not working and givin
g
an error.
here i am listing my backup job code
declare @.Weekday INT
SET @.Weekday=0
SET @.Weekday=datepart(weekday,getdate())
IF @.Weekday<>1
BEGIN
BACKUP DATABASE DIFFBACKUP
TO DISK ='F:\BackUp\DIFFBACKUPBACKUP.DAT' WITH DIFFERENTIAL ,
NOUNLOAD , NAME = N'DIFFBACKUPBACKUP', NOSKIP ,
STATS = 10, NOFORMAT
END
IF @.Weekday=1
BEGIN
BACKUP DATABASE DIFFBACKUP
TO DISK ='F:\BackUp\DIFFBACKUPBACKUP.DAT' WITH INIT ,
NOUNLOAD , NAME = N'DIFFBACKUPBACKUP', NOSKIP ,
STATS = 10, NOFORMAT
END
Please help.i am unable to identify the problem.
thanks,
reddy.reddy
What is an error that you've got?
"reddy" <reddy@.discussions.microsoft.com> wrote in message
news:057BCACB-136F-42A4-82C4-3613A94B222B@.microsoft.com...
> Hi ,
> I am running a job for taking a differential back up of a Merge replicated
> database.
> in week days the differential backup will run and on sunday the normal
> backup will overwrite the differential back up.again from monday
differential
> back up will start.
> the backup job is running correctly.when i try to restore the differential
> back up it's working upto 4th day.for 5th and 6 th its not working and
giving
> an error.
> here i am listing my backup job code
> declare @.Weekday INT
> SET @.Weekday=0
> SET @.Weekday=datepart(weekday,getdate())
> IF @.Weekday<>1
> BEGIN
> BACKUP DATABASE DIFFBACKUP
> TO DISK ='F:\BackUp\DIFFBACKUPBACKUP.DAT' WITH DIFFERENTIAL ,
> NOUNLOAD , NAME = N'DIFFBACKUPBACKUP', NOSKIP ,
> STATS = 10, NOFORMAT
> END
> IF @.Weekday=1
> BEGIN
> BACKUP DATABASE DIFFBACKUP
> TO DISK ='F:\BackUp\DIFFBACKUPBACKUP.DAT' WITH INIT ,
> NOUNLOAD , NAME = N'DIFFBACKUPBACKUP', NOSKIP ,
> STATS = 10, NOFORMAT
> END
> Please help.i am unable to identify the problem.
> thanks,
> reddy.
>
>
>|||The error is
can not apply the backup on device 'c:\mssql\test.dat' to database test
restore database is terminating abnormally.
the backup job aim is from monday to saturday differential backup, on sunday
normal backup will overwrite all the differential backups.i am able to
restore differential backups till thursday.after that any backup i am unable
to restore.i am getting the above error.
your help is appreciated.
thanks
reddy.
"Uri Dimant" wrote:

> reddy
> What is an error that you've got?
> "reddy" <reddy@.discussions.microsoft.com> wrote in message
> news:057BCACB-136F-42A4-82C4-3613A94B222B@.microsoft.com...
> differential
> giving
>
>

DIFFERENTIAL BACKUP ERROR

Hi ,
I am running a job for taking a differential back up of a Merge replicated
database.
in week days the differential backup will run and on sunday the normal
backup will overwrite the differential back up.again from monday differential
back up will start.
the backup job is running correctly.when i try to restore the differential
back up it's working upto 4th day.for 5th and 6 th its not working and giving
an error.
here i am listing my backup job code
declare @.Weekday INT
SET @.Weekday=0
SET @.Weekday=datepart(weekday,getdate())
IF @.Weekday<>1
BEGIN
BACKUP DATABASE DIFFBACKUP
TO DISK ='F:\BackUp\DIFFBACKUPBACKUP.DAT' WITH DIFFERENTIAL ,
NOUNLOAD , NAME = N'DIFFBACKUPBACKUP', NOSKIP ,
STATS = 10, NOFORMAT
END
IF @.Weekday=1
BEGIN
BACKUP DATABASE DIFFBACKUP
TO DISK ='F:\BackUp\DIFFBACKUPBACKUP.DAT' WITH INIT ,
NOUNLOAD , NAME = N'DIFFBACKUPBACKUP', NOSKIP ,
STATS = 10, NOFORMAT
END
Please help.i am unable to identify the problem.
thanks,
reddy.reddy
What is an error that you've got?
"reddy" <reddy@.discussions.microsoft.com> wrote in message
news:057BCACB-136F-42A4-82C4-3613A94B222B@.microsoft.com...
> Hi ,
> I am running a job for taking a differential back up of a Merge replicated
> database.
> in week days the differential backup will run and on sunday the normal
> backup will overwrite the differential back up.again from monday
differential
> back up will start.
> the backup job is running correctly.when i try to restore the differential
> back up it's working upto 4th day.for 5th and 6 th its not working and
giving
> an error.
> here i am listing my backup job code
> declare @.Weekday INT
> SET @.Weekday=0
> SET @.Weekday=datepart(weekday,getdate())
> IF @.Weekday<>1
> BEGIN
> BACKUP DATABASE DIFFBACKUP
> TO DISK ='F:\BackUp\DIFFBACKUPBACKUP.DAT' WITH DIFFERENTIAL ,
> NOUNLOAD , NAME = N'DIFFBACKUPBACKUP', NOSKIP ,
> STATS = 10, NOFORMAT
> END
> IF @.Weekday=1
> BEGIN
> BACKUP DATABASE DIFFBACKUP
> TO DISK ='F:\BackUp\DIFFBACKUPBACKUP.DAT' WITH INIT ,
> NOUNLOAD , NAME = N'DIFFBACKUPBACKUP', NOSKIP ,
> STATS = 10, NOFORMAT
> END
> Please help.i am unable to identify the problem.
> thanks,
> reddy.
>
>
>|||The error is
can not apply the backup on device 'c:\mssql\test.dat' to database test
restore database is terminating abnormally.
the backup job aim is from monday to saturday differential backup, on sunday
normal backup will overwrite all the differential backups.i am able to
restore differential backups till thursday.after that any backup i am unable
to restore.i am getting the above error.
your help is appreciated.
thanks
reddy.
"Uri Dimant" wrote:
> reddy
> What is an error that you've got?
> "reddy" <reddy@.discussions.microsoft.com> wrote in message
> news:057BCACB-136F-42A4-82C4-3613A94B222B@.microsoft.com...
> > Hi ,
> >
> > I am running a job for taking a differential back up of a Merge replicated
> > database.
> > in week days the differential backup will run and on sunday the normal
> > backup will overwrite the differential back up.again from monday
> differential
> > back up will start.
> > the backup job is running correctly.when i try to restore the differential
> > back up it's working upto 4th day.for 5th and 6 th its not working and
> giving
> > an error.
> > here i am listing my backup job code
> >
> > declare @.Weekday INT
> > SET @.Weekday=0
> > SET @.Weekday=datepart(weekday,getdate())
> >
> > IF @.Weekday<>1
> > BEGIN
> > BACKUP DATABASE DIFFBACKUP
> > TO DISK ='F:\BackUp\DIFFBACKUPBACKUP.DAT' WITH DIFFERENTIAL ,
> > NOUNLOAD , NAME = N'DIFFBACKUPBACKUP', NOSKIP ,
> > STATS = 10, NOFORMAT
> > END
> > IF @.Weekday=1
> > BEGIN
> > BACKUP DATABASE DIFFBACKUP
> > TO DISK ='F:\BackUp\DIFFBACKUPBACKUP.DAT' WITH INIT ,
> > NOUNLOAD , NAME = N'DIFFBACKUPBACKUP', NOSKIP ,
> > STATS = 10, NOFORMAT
> > END
> >
> > Please help.i am unable to identify the problem.
> >
> > thanks,
> > reddy.
> >
> >
> >
> >
> >
>
>

Friday, February 24, 2012

different image source for online and PDF reports?

In my current job, I've inherited a website and some ReportViewer
reports, and I've figured out how to poke around and make some changes
requested by my employer, but there's still a lot that I don't
understand. Any input would be appreciated.
Here's the current problem: the reports that we make available on our
website are mostly made up of images. Up until now, we've been saving
the images at the size that they need to be when the reports are
viewed online at 100%. Of course, this means that when exporting the
report to PDF, or printing it, the quality is unacceptable. I've tried
saving larger images and scaling them proportionately in the reports,
which results in beautiful PDFs and illegible online reports due to
resampling. Naturally, and reasonably, my employer wants our reports
to look good online AND when they're printed. I've looked around
online and found that other people have wrestled with this problem,
with no clear solutions.
The one idea that I've come up with is to use different images for the
online and printed versions (so the online report would use /preview/
image01.png and the PDF would use /print/image01.png or something). Do
you think this is possible? Any idea where I would start?
Thanks in advance for any advice.
SarahOn Jun 4, 2:37 pm, "s. o." <sarah.oh.li...@.gmail.com> wrote:
> In my current job, I've inherited a website and some ReportViewer
> reports, and I've figured out how to poke around and make some changes
> requested by my employer, but there's still a lot that I don't
> understand. Any input would be appreciated.
> Here's the current problem: the reports that we make available on our
> website are mostly made up of images. Up until now, we've been saving
> the images at the size that they need to be when the reports are
> viewed online at 100%. Of course, this means that when exporting the
> report to PDF, or printing it, the quality is unacceptable. I've tried
> saving larger images and scaling them proportionately in the reports,
> which results in beautiful PDFs and illegible online reports due to
> resampling. Naturally, and reasonably, my employer wants our reports
> to look good online AND when they're printed. I've looked around
> online and found that other people have wrestled with this problem,
> with no clear solutions.
> The one idea that I've come up with is to use different images for the
> online and printed versions (so the online report would use /preview/
> image01.png and the PDF would use /print/image01.png or something). Do
> you think this is possible? Any idea where I would start?
> Thanks in advance for any advice.
> Sarah
That sounds like the best option. You should have one report that can
be viewed and then when the user goes to export it, change the report
behind the scenes in the application to point to the smaller imaged
report. This should be fairly straight forward in terms of pointing to
one report in a report viewer and then pointing to another report once
the user selects something like a print preview aspx page or
something. Hope this helps.
Regards,
Enrique Martinez
Sr. Software Consultant

Friday, February 17, 2012

differences in SSIS file locations in SQL Server Agent step

When adding an SSIS step to a SQL Server Agent job, when selecting the location of a config file, the dialog lets you select from the database server you're working with. If selecting the location of the package itself (when the source is File System), the dialog lets you select from the machine where Management Studio is sitting instead of from the database server. Is that intentional? And if so, why? Should I just use a fully qualified file name for the package location rather than one using a drive letter?
Hmmm... Yeah, I don't like that. Though I always deploy by storing the packages in SQL Server versus the file system.

Let's let some of the other guys chime in.... I do know that some of the folks around here never use the SSIS step type in Agent and instead use the Command Line type. That allows them to build the DTEXEC statement the way they need it to be.|||

Phil Brammer wrote:

I do know that some of the folks around here never use the SSIS step type in Agent and instead use the Command Line type. That allows them to build the DTEXEC statement the way they need it to be.

That's might be the way I go. In production we'll be using Control-M anyway, so I might as well just have the command-line all prepped and ready to go for that.
|||

Phil Brammer wrote:

Let's let some of the other guys chime in.... I do know that some of the folks around here never use the SSIS step type in Agent and instead use the Command Line type. That allows them to build the DTEXEC statement the way they need it to be.

And it lets us get the full output of DTEXEC, which is handy for troubleshooting.