sql-server-2005

Reporting Services: Subscription PDF generated Dundas Chart looks different from Preview Chart

Situation: Running a report on SQL Server Reporting Services When I do a Preview of the Report all my charts look fine. No problems. When I run a subscription for the report, the chart look different. Like completely different legends are gone etc. Any ideas what the cause would be? BTW the charts are Dundas Charts. ...

Eclipse Debug Mode disrupting SQL Server 2005 Stored Procedure access

We have a strange problem in our team. When a developer is using Eclipse in Debug mode, SQL Server 2005 blocks other developers from accessing a stored procedure. Debug session typically involves opening Hibernate session to persist an entity which could be accessing a stored procedure used for Primary key generation. Debugging is done i...

Are there any Linear Regression Function in SQL Server?

Are there any Linear Regression Function in SQL Server 2005/2008, similar to the the Linear Regression functions in Oracle ? ...

Retrieving the an SQL Agent job's specific error

I am using msdb..sp_help_job to access whether a job succeeded or failed and can retrieve a general error. But, I want to access the specific error for the step that failed. I cannot seem to find it. It is not in this list of helpful stored procedures provided by MS http://msdn.microsoft.com/en-us/library/ms187763%28v=SQL.100%29.aspx ...

Rotating sql table

my sql talble has the following structure F1 F2 F3 F4 F5 Group 1 2 3 4 Design 5 6 7 8 now i want to read this and return a query result as show below please help F1 Value Group 1 Group 2 Group 3 Group 4 Design 5 Design 6 Design 7 Design ...

is this a problem in the sp_rename function or sql server itself ?

While renaming the column name, the square bracket is included in the column name, which I think is a bug, Here is a sample code snippet, create table [TestTable] (TestColumnName nvarchar(30)) select TestColumnName from TestTable sp_rename '[TestTable].[TestColumnName]', '[RenamedColumnName]', 'Column' select [RenamedColumnName] ...

Get more records that appear more than once

How can I see all the records that appear more than once per day? I have this table: ID Name Date 1 John 27.03.2010 18:17:00 2 Mike 27.03.2010 16:38:00 3 Sonny 28.03.2010 20:23:00 4 Anna 29.03.2010 13:51:00 5 Maria 29.03.2010 21:59:00 6 Penny 29.03.2010 17:25:00 7 Alba 30.03.2010 09:3...

Consolidate data from many different databases into one with minimum latency

I have 12 databases totaling roughly 1.0TB, each on a different physical server running SQL 2005 Enterprise - all with the same exact schema. I need to offload this data into a separate single database so that we can use for other purposes (reporting, web services, ect) with a maximum of 1 hour latency. It should also be noted that thes...

hundreds of databases sql server log shipping

SQL Server 2005 Standard 64x, with 300+ tiny databases currently (5MB each), user base adds databases as needed. Want to implement log shipping for warm standby, but not via the wizard, since that looks like it adds 3 jobs (1 on primary, 2 on secondary) for each log-shipped database. Do I try to write my own or use something like Quest...

SSRS Report Server with Forms Auth Not Working on a Port other than 80

Hello, We setup a custom implementation of an SSRS report server to use forms authentication. Can we use a port other than 80? We are getting 401 unauthorized when we do use another port other than port 80. Any ideas? Thanks. ...

Question on sql syntax: *=

I have some older (broken) code that has a join using a *= table1.ID *= table2.ID Is this a left outer join or a right outer join? (My error message indicates it is one of those) ...

How to count each record in each table in a SQL Server 2005 Database?

I need to know how many records are in each table in a particular database. I don't care what is in the record, they will all need to be counted. I already know how to do this for a single table as SELECT Count(1) FROM [my_table_name], but this gets a little redundant for 200+ tables. ...

Upgrading From Sql Server 2005 to Sql Server 2008

Our company wants to upgrade from Sql Server 2005 to Sql Server 2008 and I wanna ask about: What are the steps I should follow to upgrade from 2005 to 2008 ? At what point should I take care of it while upgrading ? ...

SQL Server Intergration Services 2005 - How do I get a directory listing.

In SQL Server Integration Services 2005, how do I read a directory so I can then process all of the files in that directory? ...

SSIS - How to trigger a restore of a transaction log backup file?

In SQL Server 2005 Integration Services, how can I automatically trigger a restoration of a transaction log backup file? ...

XML Bulk Load into Single Table

Hi all, I've got an XML file which is from the vendor which I can't change at all. Its in the following format. <Archive> <Events> <Event OccurrenceTime="2009-06-15T23:57:50" ArrivalTime="2009-06-28T09:39:34.500" Type="20101" DivisionID="186352" Priority="3" Class="39" Alarm="1" Occurrences="1" Message="ALLISON, ...

bulk insert image from relative path

Hi, I wonder if some can help me out with this little problem. I have the following insert statement: insert into symbol (sy_id, sy_fg_color, sy_bg_color, sy_icon) select 302, 0, 16245177, sy_icon = (select * from openrowset(bulk 'K:\mypath\icons\myicon.png', single_blob) as image) Is it possible to make the path relative in any way? ...

Is it possible to easily convert SqlCommand to T-SQL string ?

I have a populated SqlCommand object containing the command text and parameters of various database types along with their values. What I need is a T-SQL script that I could simply execute that would have the same effect as calling the ExecuteNonQuery method on the command object. Is there an easy way to do such "script dump" or do I ha...

can't insert xml dml expression as a string

Here is the code below that would explain you the problem... I create a table below with an xml column and declare a variable, initialize it and Insert the Value into the xml column, create table CustomerInfo (XmlConfigInfo xml) declare @StrTemp nvarchar(2000) set @StrTemp = '<Test></Test>' insert into [CustomerInfo](XmlConfigInfo) ...

Error when using Transfer in Microsoft SMO namespace

Hi, I'm writing an ASP.NET app in c# that will allow users to upload databases from local sql 2005 server to a remote sql server. The code does not run directly on the local sql server, it runs on an adjacent server. The error I receive when I run the code is: ERROR : errorCode=-1073659874 description=The file name "C:\Documents and...