Hi,
how can I remove newline characters and tabs from a char field in sql.
We are directing the results from a query to an excel and having the newlines in one of the columns is messing up the whole output.
thanks
Zoey
Using System Role Assignment I grant a domain user account "System Administrator" & "System User" within Reporting Services.
Then I connect via IE7 to Report Server with the domain account that has been granted the above rights. The page comes up but the "Contents" and "Properties" tabs are missing. This user can use "Site Settings" and perform admin though.
If I assign the users domain account to the local Administrator group on the Win 2003 Server, then when they reconnect to Reporting Services the missing tabs appear.
We are a development shop, need some of our qa testers and developers to have admin rights within Reporting Services but don't want to grant them local Administrator rights on the server. This could also be an issue upon deployment at customer sites.
So how to get round this. I have been trying ACL's on the Reporting Services directorys, ASP.Net security etc but with no success.
I'm in Management Studio right now and I have two tabs called : "Table -dbo.contact".
As is the case, one tab is actually for the Schema of the table while the other shows the data in the table. (I'd also guess that if I was looking at a "contact" table from another database or server it would also be listed as "Table -dbo.contact").
Is there an option in Studio to provide more detailed tab descriptions?
I want to rename the worksheet tabs when I export the report to excel. The answer is NO with SQL Server 2005 but any luck with SQL Server 2005 Service Pack 2? Please help.
I want a query which is used in sql server like access query
TRANSFORM Sum(Q_DayBook.Debit) AS SumOfDebit SELECT Q_DayBook.Purticular, Sum(Q_DayBook.Debit) AS [Total Of Debit] FROM Q_DayBook GROUP BY Q_DayBook.Purticular PIVOT Q_DayBook.CDate;
SQL query windows saves all the tabs in numerical sequence after you close each window. SO for example if you are typing query in window 1 and close it and open a new query windows it labels the new windows as SQL Query2 and so on.
What is the purpose of saving the SQLQuery windows like this? And how to retrieve all the windows.
I know this is an easy one. I have some how made the message and results tabs disapear. Now when i run somethinbg in the query window i don't see my results or errors.
I know from experience that the Excel connection mechanisms are somewhat limited. I was wondering if anyone has come across a solution to this problem.
We receive an excel file from a business line. Basically a list of account mods for a given month. Due to the tabular nature of Excel, sometimes the amount of mods exceeds the limits of one tab and has to roll over into a second tab. The names of the tabs reflect the file creation date, which often is the last day of the month, but not always. Here is a question related to this-
Is there a way to "query" a the list of tabs in an Excel file, so that I could store that record set in an SSIS variable, use it to loop through all the tabs? If no, can you think of a way to somehow get the value of the tab name or names so that I can use it to dynamically set the OpenRowset value of the Excel Data Source?
Hello All, I am viewing the report in Reporting Manager. It has four tabs at the top viz. View, Properties History and Subscription. When I click any one of Properties, History or Subscription and click the View tab again, I loose my dataset that was there before I started clicking the tabs. It prompts for the parameters again. Is that by design? I find this a nuisance to enter the parameter again and run the report just because I navigated to a different tabs. Any suggestions to alter this behavior to make the data sticky in the report?
SSMS 2012: when you open up many sql files in the IDE, it starts hiding some tabs and you have to click on the drop down at the right to navigate to the tab you want. Is there a way to make it display more than one row of tabs, so that tabs are not hidden and always displayed?
I liked the default appearance of SSMS in 2005 and 2008. 2012 is lousy by default.
My quesion is whether it can be made to approximate the way it behaved in 2008.
What I liked: Registered Servers and Object Explorer resided on nested vertical tabs on the left-hand side of the screen. Queries stacked up on the right-hand side of the screen.
I managed to get the Registered Servers and Object explorer to display with nested vertical tabs (tabs at the top, rather than the bottom - that's ok). But if there aren't any other vertical tabbed displays, then the tab on top fills the screen. There's no point to that. Both Registered Servers and Object explorer are narrow trees. The rest of the screen is white nothingness.
If a query is opened, it then fills the screen - empty. If I want that in a vertical tab I have to manually make it one (right click, choose New Vertical Tab Group).
s there a way to make the doggone thing behave?
The way I got the Registered Servers and Object explorer to behave this way was to right click on a tab and play with the vertical tabbing options.
Ever since I installed Internet Explorer 7 I have recieved an error message when closing the browser tabs. It doesn't matter if I am closing one or all of the open tabs. Here is the message I recieve,
"Access violation at address 02050200 in module iesdsg.dll Read of address 25202E67"
This message didn't occur until I installed IE7. When I uninstall IE7 the message does not show up. Any insight would be appreciated.
is there a way to avoid closing and reopening tabs in mgt studio when one task conflicts with another? For instance, I sometime look at a stored proc by scripting it as a create to a new query window. If I need to alter the db it is on, in a way that conflicts with a separate connection that is looking at a stored proc, I have to close the tab in which I was viewing the sp, run the alter, close that tab and then rescript the sp as a create in a new window.
I had to re-image my computer and reinstall SQL 2014. Now, when I open a table (edit top 200 rows) a tab opens (of course). But if I do not hit something like Show Criteria Pane and try to open another tab the first tab is replaced by the second table's tab.
How do I keep both open before hitting Show Criteria Pane?
My company is trying to convert existing reports to Reporting Services 2005... we need to have reports that export to excel with multiple sheets have the group name as the tab label. I can't find anywhere how this can be done. Can someone please tell me when this will be available? We have the latest service pack and still can't get this done... Our large customers are used to getting their reports this way, and the document map with sheet1,sheet2..etc.. will not be a suitable option. Any help with this is greatly appreciated.... seems I am not the only one waiting on this one...
In my SSIS package I have a loop container that I am running the same code against 4 servers. I have the package export the SQL data to an Excel spreadsheet that has multiple tabs.
Is there a way I can change the tab on the fly or do I need to create a Connection for the same spreadsheet 4 times Each Connection pointing to a different tab?
I tried to set up a expression for the Excel Connection Manager to use the InitialCatalog for the tab and change it based on the script in the loop however this causes the following error:
An OLE DB error has occurred. Error code: 0x80040E21. An OLE DB record is available. Source: "Microsoft Native Client" Hresult: 0x80040E21 Description: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.". Cannot create an OLE DB accessor. Verify that the column metadata is valid.
I've inherited a SSRS project from a former employee. I've gotten the reports moved to the Report Server on my local machine (which runs Sql Server 2005 with SSRS), and other users are having no problems viewing reports.
However, when I try to create a new Report Project using the Business Intelligence Project type in VS 2005, I can't view the RDL files in any way except plain-old XML. I have no Data | Layout | Preview tabs. If I create the RDL using the Report Wizard, I can still take the rdl files and deploy them successfully. But I can never edit them in Layout mode. Is something misconfigured or not installed properly? Thanks for your help.
I have two local boxes. On one I have ssis 2008 r2, the other a new install of 2014 enterprise. I have an excel file that both machines can open (ext .xlsx) with 64 bit excel 2010 on the same share location.On my 2008 r2 installation, when I create a dft then go thru adding an excel source and let ssis create a conn mgr, ssis can see the one and only tab in the source's "name of excel sheet" drop down.On my 2014 installation, I see a message "no tables or views could be loaded" in the drop down after going thru the same steps. I don't know if it matters in 2014 but I set 32 bit mode on both.Am I missing some sort of addin on my ssis 2014 install? I cant say for certain what version of excel created this file.
While looking forward to design a multi-columnar cross-tab query I am anxious to know if there could be a way to change the default names of the pivot columns? In other words for the query like the following can there be a way to apply anAS type command to reflect some other names, instead of having the four dates in heading? Something like Month_A, Month_B?
SELECT * FROM (SELECT X.REP_DT, X.CUST_ID AMOUNT_1 FROM X) P PIVOT (SUM(AMOUNT_1) FOR REP_DT IN ([2014-12-31], [2015-01-31], [2015-02-28], [2015-03-31])) PVT_01
When I am trying http://localhost/Reports/Pages/Folder.aspx
I am not seeing the all too familier "Contents" and "Properties" tabs along with deployed reports. Once in a while, I see that, but most of the time it is missing. Reporting Services got installed correctly though.
I got an error while deploying my report: The permissions granted to user machineNameuserName are insufficient for performing this operation. After reading the posts in the forum, I realized that my RS setup may be incorrect. On http://localhost/reports, Contents and Properties tabs are missing... Please let me know how I can correct the problems. I am using SQL Server 2005, and I have admin rights on my local machine
I love SQL Server Reporting Services (SSRS), but it doesnt let me name the tabs when exporting to Excel. The feature is well documented as not being available.
So I figured I can use the cell(1,1) on each tab to contain the tab name, and have an SSIS job poll a file share, open the file, read the cell, rename tabs, rename the file, and then email out the file. Polling the directory and emailing is a piece of cake, but I can't find any way to rename a tab without having Excel loaded on the SERVER. Not to mention instantiating an entire instance of Excel on the SERVER every time I want to do this.
I want to leverage SSRS, and preserve the formatting of the excel file, which is why I don't just dump the data in with SSIS to begin with.
I am rewriting several stored procedures that originally had lots of "multiplicated" code. I am aware that references to objects within dynamic SQL do not create dependencies, so I intend to add code that will generate the dependencies but will NOT produce any output in both the Results and Messages tabs, not be overly "messy" or complicated, and have the least impact on execution plan creation as possible.
As we use a dependency list of tables used to our support staff pinpoint possible data issues associated with each of these stored procedures.
I have tried a few methods already, including this:
SET @SQL = N'SELECT Column1,Column2 FROM dbo.TableName'; ... /***************************************************************************************/ /* This code block is only to establish dependency of objects used within dynamic SQL. */ /* */ /* SET statements are used so that no output is produced in Results or Messages tabs. */ /* Object existence check avoids error 208, "Invalid object name" message. */ /***************************************************************************************/ DECLARE @DependentObject SQL_VARIANT; IF OBJECT_ID(N'dbo.TableName', N'U') IS NOT NULL SET @DependentObject = ( SELECT TOP (1) Column1,Column2 FROM dbo.TableName); /* End code for dependency of objects used within dynamic SQL */
Grrr!I'm trying to run a script:print 'Declaring cursor'declare cInv cursor forward_only static forselectdistinctinv.company,inv.contact,inv.address1,inv.city,inv.state,inv.postalcode,inv.cmcompanyidfromdedupe.dbo.ln_invoice as invleft joindedupe.dbo.customerid as cidondbo.fnCleanString(inv.company) = cid.searchcowhere((inv.customerid is nulland cid.searchco is null)and (inv.date >= '01/01/2003' or (inv.date < '01/01/2003' andinv.outstanding > 0.01))and not inv.company is null)print 'Cursor declared'declare@contact varchar(75),@company varchar(50),@address1 varchar(75),@city varchar(30),@state varchar(20),@zip varchar(10),@cmcompanyid varchar(32),@iCount int,@FetchString varchar(512)open cInvprint 'cursor opened'fetch cInv into@company,@contact,@address1,@city,@state,@zip,@cmc ompanyidprint 'Cursor fetched @@Cursor_rows = ' + cast(@@cursor_rows asvarchar(5))All the prints are there to help me figure out what's going on!When I get to the Print 'Cursor fetched @@cursor_rows....the value is 0 and the script skips down to the close and deallocate.BUT, if I just highlight the Select...When section, I get over 2,000rows. What am I missing?Thanks.
We are running 2014 enterprise. Our users love to see related report sections saved in separate tabs of the same spreadsheet. Is there a way to control how ssrs will save a report to excel when it comes to tabs?
Are subreports a/the way (and only way) to do this?
By sections I mean they might have a grid, then another grid, then a graph then another graph and so on.
What property controls the tab name? What if they want to combine 2 or more sections into one tab?
Installed SQL Server 2008 with Reporting Services to a Windows Server 2008 box. Tried to open the Report Manager and had no tabs and no Site Settings link - just a blank home page. I am logged onto the server with local administrator rights, so it shouldn't be a permissions issue.
Thinking the installation was bad (IIS was not installed before installing SSRS), I uninstalled and re-installed SSRS after setting up IIS 7 on the server. Still the same issue - just a blank home page in report manager with no ability to add users or assign roles or see anything except the links for "Home", "My Subscriptions", and "Help".
Happy 2008!!!! I am inserting data into a tab delimted text file using SSIS package. After data insetion some extra tabs get added between columns in some rows in the text file. Can we programmatically delete the extra tabs from the text file, if so how to use/implement the code inside the SSIS package? Any pointer/suggestions are welcome.
Hi, I'm trying to conver an Access database to SQL 7, but I can't find a easy way to replicate the aggregate function FIRST in SQL, can anyone give me some advise on how to "fake" the FIRST agg function in SQL7? Thanks