Viewing 15 posts - 2,221 through 2,235 (of 3,489 total)
You have to modify the connection to the database.
How to use a stored procedure for the source of a table in PowerPivot.
1. Go to the DATA tab.
2. Go to From...
October 27, 2015 at 11:17 pm
Are you using PowerPivot? Sounds like a homework assignment... what have you tried?
October 27, 2015 at 5:52 pm
Best way? Honestly, I would split off the date to a separate column, and then maybe index it. Then you can just use regular date math. The problem...
October 27, 2015 at 2:51 pm
The easiest way would probably be to use a calendar table and mark each holiday. Then you could just exclude those from your MAX query. Lynn Pettis posted a...
October 21, 2015 at 5:17 am
Here's a grid showing the differences... well, some of them:
http://www.fmsinc.com/MicrosoftAccess/SQLServerUpsizing/express/index.html
So it kind of depends on what you need SQL Server to do. The free versions are okay if you're just...
October 8, 2015 at 8:45 pm
If you're using the database primarily for storage, you could probably get by with SQL Server Express, which is free. I would suggest downloading Ola Hallengren's scripts to manage...
October 8, 2015 at 8:05 pm
If you are lucky and have 2012, then you can use LAG, something like this:
SELECT Client_ID
, EFF_FR
, EFF_To
, LAG(EFF_To,1) OVER (PARTITION BY Client_ID ORDER BY Eff_Fr) AS Prev
FROM (
SELECT 1001...
October 8, 2015 at 11:47 am
This should work for SQL2008.
Note: I cheated and created a table of dates, so that I could force the existence of every date in the range, regardless of whether there...
October 8, 2015 at 1:38 am
If this is beginner homework (which I doubt!), then someone is really yanking your chain.
I would probably write a stored procedure to link up the Login to the Logout times......
October 7, 2015 at 9:55 pm
Just wondering, who is putting you up to something like this? I can see this going sideways very fast. Without understanding what you're really trying to achieve, I'm hesitant...
October 6, 2015 at 10:30 pm
could you post the structure of the table and some sample data? Should be fairly easy. You might have to do a summary query to do the counts and then...
October 6, 2015 at 8:36 pm
Use a TRY/CATCH block and return the message in the CATCH block?
October 5, 2015 at 6:15 pm
Here's another option... use the OUTPUT clause to insert some/all of the records inserted in your stored procedure to another table:
Basically imitates a trigger without all the nasty side effects.
October 2, 2015 at 10:13 pm
How are you doing the insert into the first table? Is it a bulk insert or one at a time? You might be able to create a variable...
October 2, 2015 at 6:54 pm
Did you look in the Articles section for Calendar tables?
Todd Fifield's articles
http://www.sqlservercentral.com/articles/70482/%5B/url%5D
http://www.sqlservercentral.com/articles/T-SQL/70743/%5B/url%5D
http://www.sqlservercentral.com/articles/T-SQL/72345/%5B/url%5D
Then you'd just add your rule(s) to the Calendar table so that you could roll up your data any...
September 30, 2015 at 1:56 pm
Viewing 15 posts - 2,221 through 2,235 (of 3,489 total)