Browser Result Empthy

Mar 11, 2007

hi!
As a newbie quite confused..
Created mesures in my cube which are not working. When I run MDX select-commands in Management studio they do not show any measure calculations(Total sum), just NULL, but the headers are there, as the Month.

The same in Browser: Headers showing but not Measure calculations. They are empthy. How could I solve this?

View 2 Replies


ADVERTISEMENT

Set Variable Based On Result Of Procedure OR Update Columns Fromsproc Result

Jul 20, 2005

I need to send the result of a procedure to an update statement.Basically updating the column of one table with the result of aquery in a stored procedure. It only returns one value, if it didnt Icould see why it would not work, but it only returns a count.Lets say I have a sproc like so:create proc sp_countclients@datecreated datetimeasset nocount onselect count(clientid) as countfrom clientstablewhere datecreated > @datecreatedThen, I want to update another table with that value:Declare @dc datetimeset @dc = '2003-09-30'update anothertableset ClientCount = (exec sp_countclients @dc) -- this line errorswhere id_ = @@identityOR, I could try this, but still gives me error:declare @c intset @c = exec sp_countclients @dcWhat should I do?Thanks in advance!Greg

View 4 Replies View Related

Problem Assigning SQL Task Result To A Variable - Select Count(*) Result From Oracle Connection

Dec 26, 2007



I have an Execute SQL Task that executes "select count(*) as Row_Count from xyztable" from an Oracle Server. I'm trying to assign the result to a variable. However when I try to execute I get an error:
[Execute SQL Task] Error: An error occurred while assigning a value to variable "RowCount": "Unsupported data type on result set binding Row_Count.".

Which data type should I use for the variable, RowCount? I've tried Int16, Int32, Int64.

Thanks!

View 5 Replies View Related

Table-valued User-defined Function: Commands Completed Successfully, Where Is The Result? How Can I See Output Of The Result?

Dec 11, 2007

Hi all,

I copied the following code from Microsoft SQL Server 2005 Online (September 2007):
UDF_table.sql:

USE AdventureWorks;

GO

IF OBJECT_ID(N'dbo.ufnGetContactInformation', N'TF') IS NOT NULL

DROP FUNCTION dbo.ufnGetContactInformation;

GO

CREATE FUNCTION dbo.ufnGetContactInformation(@ContactID int)

RETURNS @retContactInformation TABLE

(

-- Columns returned by the function

ContactID int PRIMARY KEY NOT NULL,

FirstName nvarchar(50) NULL,

LastName nvarchar(50) NULL,

JobTitle nvarchar(50) NULL,

ContactType nvarchar(50) NULL

)

AS

-- Returns the first name, last name, job title, and contact type for the specified contact.

BEGIN

DECLARE

@FirstName nvarchar(50),

@LastName nvarchar(50),

@JobTitle nvarchar(50),

@ContactType nvarchar(50);

-- Get common contact information

SELECT

@ContactID = ContactID,

@FirstName = FirstName,

@LastName = LastName

FROM Person.Contact

WHERE ContactID = @ContactID;

SELECT @JobTitle =

CASE

-- Check for employee

WHEN EXISTS(SELECT * FROM HumanResources.Employee e

WHERE e.ContactID = @ContactID)

THEN (SELECT Title

FROM HumanResources.Employee

WHERE ContactID = @ContactID)

-- Check for vendor

WHEN EXISTS(SELECT * FROM Purchasing.VendorContact vc

INNER JOIN Person.ContactType ct

ON vc.ContactTypeID = ct.ContactTypeID

WHERE vc.ContactID = @ContactID)

THEN (SELECT ct.Name

FROM Purchasing.VendorContact vc

INNER JOIN Person.ContactType ct

ON vc.ContactTypeID = ct.ContactTypeID

WHERE vc.ContactID = @ContactID)

-- Check for store

WHEN EXISTS(SELECT * FROM Sales.StoreContact sc

INNER JOIN Person.ContactType ct

ON sc.ContactTypeID = ct.ContactTypeID

WHERE sc.ContactID = @ContactID)

THEN (SELECT ct.Name

FROM Sales.StoreContact sc

INNER JOIN Person.ContactType ct

ON sc.ContactTypeID = ct.ContactTypeID

WHERE ContactID = @ContactID)

ELSE NULL

END;

SET @ContactType =

CASE

-- Check for employee

WHEN EXISTS(SELECT * FROM HumanResources.Employee e

WHERE e.ContactID = @ContactID)

THEN 'Employee'

-- Check for vendor

WHEN EXISTS(SELECT * FROM Purchasing.VendorContact vc

INNER JOIN Person.ContactType ct

ON vc.ContactTypeID = ct.ContactTypeID

WHERE vc.ContactID = @ContactID)

THEN 'Vendor Contact'

-- Check for store

WHEN EXISTS(SELECT * FROM Sales.StoreContact sc

INNER JOIN Person.ContactType ct

ON sc.ContactTypeID = ct.ContactTypeID

WHERE sc.ContactID = @ContactID)

THEN 'Store Contact'

-- Check for individual consumer

WHEN EXISTS(SELECT * FROM Sales.Individual i

WHERE i.ContactID = @ContactID)

THEN 'Consumer'

END;

-- Return the information to the caller

IF @ContactID IS NOT NULL

BEGIN

INSERT @retContactInformation

SELECT @ContactID, @FirstName, @LastName, @JobTitle, @ContactType;

END;

RETURN;

END;

GO

----------------------------------------------------------------------
I executed it in my SQL Server Management Studio Express and I got: Commands completed successfully. I do not know where the result is and how to get the result viewed. Please help and advise.

Thanks in advance,
Scott Chang

View 1 Replies View Related

Saving Query Result To A File , When View Result Got TLV Error

Feb 13, 2001

HI,
I ran a select * from customers where state ='va', this is the result...

(29 row(s) affected)
The following file has been saved successfully:
C:outputcustomers.rpt 10826 bytes

I choose Query select to a file
then when I tried to open the customer.rpt from the c drive I got this error message. I am not sure why this happend
invalid TLV record

Thanks for your help

Ali

View 1 Replies View Related

End Result Is Main Query Results Ordered By Nested Result

May 1, 2008

As the topic suggests I need the end results to show a list of shows and their dates ordered by date DESC.
Tables I have are structured as follows:

SHOWS
showID
showTitle

SHOWACCESS
showID
remoteID

VIDEOS
videoDate
showID

SQL is as follows:

SELECT shows.showID AS showID, shows.showTitle AS showTitle,
(SELECT MAX(videos.videoFilmDate) AS vidDate FROM videos WHERE videos.showID = shows.showID)
FROM shows, showAccess
WHERE shows.showID = showAccess.showID
AND showAccess.remoteID=21
ORDER BY vidDate DESC;

I had it ordering by showTitle and it worked fine, but I need it to order by vidDate.
Can anyone shed some light on where I am going wrong?

thanks

View 3 Replies View Related

CASE Function Result With Result Expression Values (for IN Keyword)

Aug 2, 2007

I am trying to code a WHERE xxxx IN ('aaa','bbb','ccc') requirement but it the return values for the IN keyword changes according to another column, thus the need for a CASE function.

WHERE GROUP.GROUP_ID = 2 AND DEPT.DEPT_ID = 'D' AND WORK_TYPE_ID IN ( CASE DEPT_ID WHEN 'D' THEN 'A','B','C' <---- ERROR WHEN 'F' THEN 'C','D ELSE 'A','B','C','D' END )

I kept on getting errors, like

Msg 156, Level 15, State 1, Line 44Incorrect syntax near the keyword 'WHERE'.
which leads me to assume that the CASE ... WHEN ... THEN statement does not allow mutiple values for result expression. Is there a way to get the SQL above to work or code the same logic in a different manner in just one simple SQL, and not a procedure or T-SQL script.

View 3 Replies View Related

SQL Browser

Oct 3, 2007

I just installed SQL 2005 Express, and I do not see the SQL browser and the Administration tool anywhere in my computer. Does anyone know what I need to do?

View 4 Replies View Related

How To Get Browser Time

Apr 14, 2008

i need to get the browser Time in client side

Regards,
Prabu R

View 1 Replies View Related

Object Browser

Jan 6, 2006

Most of the times I cant see my database tables from the query analyser in the object browser window... There are some times that appear normally...but in mosto of cases they just dont appear at all...I can only see the master database and msdb... I am connecting giving the proper password...

bear in mind that I can write and execute queries to my database although I cant see the tables

Why could this be happened??? Is a matter that i have discussed with my hosting provider or I am missing something here???

View 4 Replies View Related

Browser As Front-End

Jan 9, 2006

Hi!I'm trying to build an app. for my parents' office. They have a smalloffice (5 PCs), and they currently work with a very old program that'sbased on DOS. The program doesn't work well under XP, so they still useWin 98. They had their network upgraded about a year ago. They hadMicrosoft SBS 2000 installed, it includes SQL Server. I've written afew DB's in Access before, and now I'm just learning how to use SQL.Before I start work on their app., I have a question:I know it's possible to create an interface that can be put on theirnetwork and accessed via a browser. How is this done exactly?It would be very beneficial for me, because it would mean that the newapp. would be platform independent, so that they can upgrade to XPeasily. It would also save us the cost of licensing front-end software(e.g. Access) for each machine.Any comments would be appreciated.Noam Nelke, Israel.

View 2 Replies View Related

Browser Performance

Jan 24, 2007

Greetings,

I have noticed a change in how the new version Internet Explorer renders.

I have a couple of simple matrix reports with textbox buttons that use a drill through to the same report with the reportdate parameter being incremented or decremented by one day.

The report cells calc font and color based on data, nothing to elaborate. In IE 6 the report was displayed quickly. When I upgraded to IE 7 the same report's performance has degraded greatly. In IE 7 the data is returned in the same time frame as before and the report is rendered quickly then my CPU pegs out to 95% for about 5 seconds making it seem as though the browser has locked up. It doesn€™t matter if I have 5 rows or 500 rows.

This is happening to all my reports with jump to report functionality but only if the report to jump too is the same report with different parameters.

Anyone else having a similar problem?

View 4 Replies View Related

SQL Server Browser

Apr 29, 2008

Hello there,
We have a Windows Server 2003 where SQL Server 2005 is installed. The problem is that SQL Server browser cannot be started. When I try to connect to any instance of SQL Server, the connection fails. I have to try to start SQL Server browser and try to connect again to the particular instance of SQL Server after each attempt to start the browser. I succeed after several such attempts to connect, but SQL Server browser will still not start.
Can anyone tell me what can be wrong with SQL Server browser?
Thanks in advance
Hemant

View 6 Replies View Related

Return Subquery Result For Only First Row In Result

Apr 7, 2015

I'm using a subquery to return a delivery charge line as a column in the result set. I want to see this delivery charge only on the first line of the results for each contract. Code and results are below.

declare @start smalldatetime
declare @end smalldatetime
set @start = '2015-03-22 00:00' -- this should be a Sunday
set @end = '2015-03-28 23:59' -- this should be the following Saturday

select di.dticket [Contract], di.ddate [Delivered], di.item [Fleet_No], di.descr [Description], dd.min_chg [Delivery_Chg], dd.last_invc_date [Delivery_Invoiced],

[code]....

In this example, I only want to see the delivery charge of 125.00 for the first line of contract HU004377. For simplicity I have only shown the lines for 1 contract here, but there would normally be many different contracts with varying numbers of lines, and I only want to see the delivery charge once for each contract.

View 6 Replies View Related

Strange Result - Minus Result -1

Mar 2, 2008

help strange result whan i do this



Code Snippet
SELECT unit_date, unit, ISNULL(NULLIF ((unit + DATEDIFF(mm, GETDATE(), unit_date)) % 4, 0), 4) AS new_unit
FROM dbo.empList




i try to get next unit value to next month
why i get this -1
on date




01/01/2008
1
-1

unit_date unit new_unit



01/02/2008
2
1

01/02/2008
1
4

01/01/2008
1
-1

01/02/2008
1
4

21/01/2008
1
-1

21/01/2008
1
-1

01/02/2008
1
4


TNX

View 3 Replies View Related

Browser Updateable Recordsets ?

Mar 26, 2000

I think it whould be simpler to explain what I am trying to accomplish.
I wish to pull a query to return multiple records from a SQL 7.0 database.
The query is a customers standing order.
I wish to make edits to multiple records then return those records for update.
The HTML pages that I have seen all seem to display tables on a singular record format.
Is it possible to display records in a 'Table' format and allow it to be updated.
Can any one answer this or direct me to a site with the relevent info.
Thanks Stuart
Indtec@eircom.net

View 2 Replies View Related

Session Browser In SQL Server

Jan 30, 2008

Hey,

Does SQL Server have a session browser similar to Oracle and if so, how can I use it? I am looking to retrieve the SQL being ran when users are running particular reports from a gui tool.

Thanks

View 1 Replies View Related

Accessing Report Using Browser

Feb 14, 2007

Hi,
I have created a sample report called Report1 in SSRS 2005. This currently is running locally on my workstation.
I can even browse to it using the http address i.e. http://localhost/Reports
The question is: How can someone else access this report on my machine. They can not browse to my machine by typing http://12.32.2.344/Reports

Do I need to do any configuration in my local IIS?
Thanks

View 2 Replies View Related

SQL Browser Warnings In A Cluster

Nov 23, 2007

We have a 6 node cluster with 4 SQL Server named instances in the cluster. I am noticing a lot of warnings in the event log with the following information:
Event Type: Warning
Event Source: SQLBrowser
Event Category: None
Event ID: 3
Description:
The configuration of the AdminConnectionTCP protocol in the SQL instance
<instance name> is not valid.
The event occurs for all four instances.
Additional Information:
* OS is Windows 2003 R2 Enterprise x64 Edition w/SP2
* SQL Server 2005 Enterprise Edition w/SP1, hot fix level 2221
* All SQL services runs under the same domain user account

I did some internet searches and found several others who have had this problem. However, I didn't see any solutions. There also seems to be a similar problem with SQL Express but that is not what I am using.

Any thoughts are appreciated.

View 7 Replies View Related

Problems With SQL Browser Service

Feb 8, 2008

I am using SQL Server 2005 developer edition and Visual Studio 2005. I am working on local computer and when I define a cube I am using data sources to which I can connect without any problem using "Test connection". However, when I want to perform calculation or browse a cube I get a message of either I am as a user do not have permission to access source database (in reality I do have this permission) or source database does not exist (in reality it exists). I check the SQL Server Browse Service and it is not running and the option of starting it is disabled (Start mode is undefined and only properties option can be used). I already have enabled the TCP/IP and Named Pipes protocols but I still cannot browse cube data.
Any help SUPER welcome.
Elka

View 2 Replies View Related

Help With Accessing Reportserver With Web Browser

Apr 25, 2007



I am using sql express w/ advanced services on xp pro with IIS 5.1 installed. On the local machine named 'Tester' i am able to access reportserver using a web browser and the url: http://localhost/reportserver. But when i go to another machine on the same network and domain and try to access the reportserver with url: http://Tester.domain/reportserver or http://<ip address of Tester>/reportserver ie tells me page cannot be found and does not give me any errors. How do I set up network access to reportserver on the machine Tester? Help would be greaty appreciated.

View 1 Replies View Related

Can You Access Remotely Using A Browser?

Jun 13, 2007

Currently I am being told that for someone to remotely view reports that are stored in RS an individual needs to login to a PC's OS with the correct domain and user name. When they launch the browser it will them allow them access to the reports stored in RS.



This seems to limit the capabilities for a remote access

Can you go to any PC anwhere, type in the URL, and get a prompt for user name and password for access?
Will the user name and password allow restrictions to what you can see?
Is there anwhere where I can see an example of this? Like a dummy site or something?

I really appreaciate the help!



Mark

Phoenix





View 1 Replies View Related

Cannot Start Server Browser

Nov 5, 2008

I installed SQL Server 2008 Express lastnight, and the server is running but I am unable to get Server Broswer, or Server Agent to start, when either is tried I get the following error:WMI Provider error.The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.

View 5 Replies View Related

TCP, SQL BROWSER, Express Edition

Aug 6, 2007



Hi all,

i installed two servers, one instance SERVER05 and second SQL SERVER EXPRESS called SQLEXPRESS.

my SQL Server Browser service is in state "Change Pending" i dont know if it is ok?

I setup SERVER05:
TCP/IP in Conf Manager Enabled, listen all yes, and IPAll TCP Dyn. ports nothing = blank, TCP PORT 2001
i think that SERVER05 is listening on port 2001 now.
i restart SERVER05 and try this command:
SQLCMD -E -S MACHINEASERVER05,2001
connect successful

I want to do this with SQLEXPRESS
i set TCP enabled, Listel all, Dyn port blank, TCP PORT 2002 restart and get error:

Unable to start service MSSQL$SQLEXPRESS on server MACHINEA
Additional information
The MSSQL$SQLEXPRESS service on MACHINEA started and then stopped. (ObjectExplorer)

Can u help where is problem?

Thnx for help.

Jakub.








View 11 Replies View Related

Hyperlink To Open In New Browser?

Oct 15, 2007

I have some hyperlinks on different rows of a table in the report. Currently when I click on these, they open the links on the same page. I want the link to open in a new instance of IE.

I tried using "javascript:void(window.open('http://www.google.com','_blank'))" as the URL, but this will virtually do nothing.

Can somebody help please?

Thanks,
Steven

View 6 Replies View Related

Association Browser Error

Jun 3, 2007

Hello Developers,



I used the add mining model to mining structure to modify a model so that maximum itemset =2, min prob=.01, min support= 2.



When i select maximum rows to anything higher than 2000 (default) i get duplicate rules.



The maximum rules returns is exactly16000 even though i set it higher than that.



Any ideas on the causes?



Thanks



Davy

View 4 Replies View Related

Can't Log In To Reporting Services In My Browser

Jan 16, 2007

I've installed the Developer's edition of SQL05 on my PC at home. I am able to open the reporting services via the Manager Studio and Windows login under my username and password, however I cannot open it in my browser when I enter the

http://computername/reports address. I get a login dialog and enter "computername/myloginID" for the user and my local login password. It will not accept the login and reprompt until I exceed 3 tries.

I also tried logging in with the PC's admin id and password as well as the sa account name and password.

Any ideas on what I missed in the setup or security?

Thanks for any assistance anyone can provide

mike...

View 7 Replies View Related

Issue Printing Through Browser

May 2, 2007

I'm having an issue where I print a reporting services report through a browser be it IE or Firefox and the report page is being split into two pages for a single page. A report that is 3 pages ends up being six pages when printed. Does anyone know of a fix or workaround for this problem.



Thanks

View 2 Replies View Related

Cannot Start SQL Server Browser

Feb 12, 2007

Hello,

I use SQL Server 2005 for multi-user access. In the Surface Area Configuration, I changed the protocol from TCP/IP to Named Pipes and restarted the service. Then I went to SQL Server Browser, stopped it and clicked on Start to restart. I am getting a message "An error occurred while performing this operation". I am not able to get the Browser started.

Any help would be greatly appreciated.

View 24 Replies View Related

Rendered Report On The IE Browser

Aug 20, 2007

Hi,
I have deployed my report to the report server and send a link to the users to view the report on the browser. But when the report is viewed, it shows up as "restore down" instead of "full screen". For example, the report shows up in the browser with all the information below.

SQL Server Reporting Services

Home > school > hwal> test >
Proficient By Ethnic within School and Grade Rdg and Math

How do I set up the report to make it show up as full screen report without all the details above?

View 7 Replies View Related

Reports Viewing In Browser

May 10, 2007

Hi,



Does anyone know how to browse a report in a new browser window?



regards

Josh

View 1 Replies View Related

SQL Browser Service Won't Start

Feb 10, 2006

I tried the instructions in sqlexpress's WebLog to connect to a remote database.

Using SQL Server Configuration Manager I enabled TCP/IP and then tried to start the browser service.

When I right clicked the icon, all the options (Start,Stop,etc) are grayed out.

Can anyone help me with this, please?

Thank you

View 5 Replies View Related

Views Not Appearing In Browser Page...

Aug 14, 2006

Hi all, newbie here (to SQL Server and Visual Studio)...
After a few days of configuring and setting things up, I finally got visual studio 2005 to connect to my sql server 2005 express database.  I used server management studio to construct a database with 8 linked tables for my first main application.  I plugged in some data and, after setting up proper permissions, was able to get visual studio to connect and return data.
I set up a simple gridview on a page with a sql server connection object to test things out.  When I set the connection string to return data from a single table, everything works fine.  When I test the connnection within visual studio, I get the results I expect.  I build the page and load it up in my browser through the localhost, and I get the expected results. 
The problem comes when I try to use a view rather than a table.  I build the view in server management studio, and from within visual studio, when I test the connection I get the expected results.  However, after building the pages (and rebuilding the site), I get a blank grid in my broswer when I test through localhost.  I added another gridview to the page set to a table with a different connection string, and that grid appeared in my browser.  I modified that connection string in visual studio to the sql server view, and again, nothing appears in my browser.
I'm not sure if, during all of my tinkering with security and setups I may have inadvertantly shut off the abilty to use views, but I'm not receiving an error messages.  I just get a blank page.
Any ideas?Brian

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved