Viewing 15 posts - 1 through 15 (of 29 total)
Try opening http://localhost/reports from browser window in the server m/c. If that works in local machine and does not work from remote m/c, it should be to do...
June 23, 2009 at 8:20 am
Are you able to launch Report Manager in the server where you have installed SSRS?
We had similar issues where we could launch it in server but not from our local...
June 23, 2009 at 3:01 am
As coding standards, we always have a @Debug bit parameter to all the stored procedures that defaults to 0. For App debugging, we can pass this as 1 from client...
May 6, 2009 at 5:59 am
Your requirement can be solved using a Numbers or Tally table.
Refer to the below article on Numbers table and the final example has pointers for your requirement.
May 6, 2009 at 5:32 am
temp table created as part of dynamic query will not be visible outside the scope of the dynamic query. Try creating global temp table if that suits your purpose.
May 5, 2009 at 5:04 am
The set option does the trick in the below code. Set it accordingly.
Insert into #Ord (OrderId, DateEntered)
Values(1, '2009-04-06')
,(2, '2009-04-06')
,(3, '2009-04-08')
,(4, '2009-04-10')
,(5, '2009-04-12')
,(6, '2009-04-13')
,(7, '2009-04-15')
,(8, '2009-04-16')
SET DATEFIRST 1;
SELECT FirstDayOfWeek, COUNT(*)
FROM (
SELECT...
May 5, 2009 at 4:40 am
Note: This is not a generic solution. Adjust the order by clause of rank to get the desired result
SELECT personid, MAX(company) AS company1, MIN (company) as company2
FROM (
SELECT RANK() OVER(PARTITION...
May 5, 2009 at 4:22 am
Use the above query as a subquery and do the conversion in the outer query.
-Arun
April 22, 2009 at 6:44 am
using a cross join
SELECTa.Type, c.MonthYear,
Sum(CASE WHEN c.MonthYear='jan-2008' THEN a.[jan-2008]
WHEN c.MonthYear='feb-2008' THEN a.[feb-2008]
WHEN c.MonthYear='mar-2008' THEN a.[mar-2008]
END) Amount
FROM forecast a
CROSS JOIN (SELECT 'jan-2008' as MonthYear...
April 22, 2009 at 4:50 am
Create table forecast (
typevarchar(10),
[jan-2008]int,
[feb-2008]int,
[mar-2008]int )
Insert into forecast values ('Actual', 100, 200, 300)
Insert into forecast values ('Budget', 200, 500, 800)
Select* from forecast
SELECT *
FROMforecast
UNPIVOT (Amount FOR MonthYear IN ([jan-2008],[feb-2008],[mar-2008] )) AS...
April 22, 2009 at 4:16 am
Check the below article that answers your requirement
http://www.sqlservercentral.com/articles/Advanced+Querying/calculatingworkdays/1660/
April 21, 2009 at 9:42 am
Is it not simple as below. Please state your requirement otherwise
SELECT callnbr,entdte,compdte,
CASE compdte
WHEN '1900-01-01 00:00:00.000' THEN DATEDIFF(day, entdte, getdate())
ELSE DATEDIFF(day, entdte, compdte)
End AS Workdays
FROM svc00200
April 21, 2009 at 7:26 am
You can also use the below to get user name in sql queries.
SELECT SYSTEM_USER
April 21, 2009 at 2:50 am
Try this
Exec sp_MSForEachDB 'SELECT ''?'' AS DataBaseName, * FROM ?..sysObjects WHERE name = ''sp_FindDetails'''
April 17, 2009 at 6:38 am
Create 2 variables for ServerName and DatabaseName and use them in the property expression to form the connection string as below.
"Data Source="+ @[User::ServerName] +";Initial Catalog="+ @[User::DatabaseName] +";Provider=SQLNCLI.1;Integrated Security=SSPI;"
April 17, 2009 at 6:25 am
Viewing 15 posts - 1 through 15 (of 29 total)