Year Wise Data in SQL Express
Hi...
Can any one help for How to maintain year wise data in sql server.
In my project i manage year wise data i.e 1st April to 31 march.
At the end of the year the current year closing balances need to update as opening balance for the next year and previous data wont be changed.
And i dont know how to create year wise folders in one database....
Please show me some suggestion...
Hi
According to your description, we got that you want to manage year wise data in one database. You can try to create a partitioned table with a Year column to store all the data. The partitioning feature is supported in SQL Server 2005 and later versions of
SQL Server. There are four major steps for implementing partitioning.
1. Create a filegroup or filegroups and corresponding files that will hold the partitions specified by the partition scheme.
2. Create a partition function that maps the rows of a table into partitions based on the values of a specified column.
3. Create a partition scheme that maps the partitions of a partitioned table to the new filegroups.
4. Create or modify a table and specify the partition scheme as the storage location.
For how to create a partitioned table, please review the following links:
Create Partitioned Tables and Indexes:http://msdn.microsoft.com/en-us/library/ms188730.aspx
Creating a table with horizontal partitioning in SQL Server:
http://www.mssqltips.com/sqlservertip/1796/creating-a-table-with-horizontal-partitioning-in-sql-server/
Thanks
Lydia Zhang
Similar Messages
-
Export/Import data in SQL Express 2014
Hello,
I have SQL Server 2008 on the network server and 'central' DB. To workaround cases when the network is down I decided to implement 'local' design on all clients. Actually I have 5 clients. I installed SQL Express 2014 on each client and created exact as
'central' empty database on each client.
Now during network outage I'm able to continue collect data and populate it in each of 5 db's.
When the network is up again I have to copy/move collected data from each client to 'central' db. Unfortunately 'central' and 'local' db's are on the different network and can't see each other hence I have to somehow export package from each 'local'
db and then import it into 'central'.
The problem that I hit is that in SQL Express there's not an option to save package i.e. it allow only immediate export which would not work for me.
Do you have an idea how to handle this situation?
Thanks
EVHi,
I agree with Ronen and Scott. You can use SQL Server Replication to
copy the data.
Replication is a set of technologies for copying and distributing data and database objects from one database to another and then synchronizing between databases to maintain consistency. Using replication, you can distribute data to different
locations and to remote or mobile users over local and wide area networks, dial-up connections, wireless connections, and the Internet.
Replication processing resumes at the point at which it left off if a connection is dropped.
Please check out the following links for more information about SQL Server Replication:
SQL Server Replication Step by Step
http://www.codeproject.com/Articles/715550/SQL-Server-Replication-Step-by-Step
SQL Server Replication
http://msdn.microsoft.com/en-us/library/ms151198.aspx
Thanks.
Tracy Cai
TechNet Community Support -
Extract Data Using SQL Expression
Hello, I've created a staging table and just realized that I need some new extra fields.
Should I create them in the stage or in the target table?
I want to use the SQL expression COUNT so to fill these new fields with edited source data,
but don't know exactly how to do it. I am a bit amateur.
Thank you.I' ve just realized that I am reading your book! Oracle Warehouse Builder 11gR2: Getting Started 2011.
What If I need the rest of the fields not to be changed? Fields like Name or whatever.I can't figure it out. Thanks again.
For example, I have these two fields Name and Date and I want to use the count expression through the aggregation operator for the Date field and create a new field Quantity to store the reaults. But I need the field Name to remain intact.
How can I manage this? Thank you.
Edited by: 928543 on 11 Ιαν 2013 1:35 μμ
Edited by: 928543 on 11 Ιαν 2013 1:44 μμ -
Filtering "created on" date using SQL Expressions
Hi there!
I want to build a filter for opportunities "created on" date.
I need to find all opportunities that were created over 30 days ago in lead stage.
I was trying:
Created on date is Not equal to or is not in:
1) NOW()
2) TimeStampAdd(SQL_TSI_DAY,-30,CURRENT_DATE NOW())
I keep getting an error message.
Any help is appreciated.I am in the historical opp area, here is the error:
Error getting drill information: SELECT Opportunity."Sales Method Name" saw_0, Territory."Territory Name" saw_1, Opportunity."Sales Stage" saw_2, Opportunity.Name saw_3, Opportunity."Opportunity ID" saw_4, Account."Account Name" saw_5, Account."Account ID" saw_6, Opportunity."Created Date" saw_7, "- Opportunity Custom Attributes".DATE_26 saw_8 FROM "Opportunity Lists" WHERE (Territory."Territory Name" IN ('AC - Mid-Atlantic', 'AC - North Central', 'AC - Northeast', 'AC - Ohio Valley', 'AC - South', 'AC - South Central', 'AC - Southeast', 'AC - Southwest', 'AC - Western', 'Acute Care Sales')) AND (Opportunity."Created Date" <> TimeStampDiff(SQL_TSI_DAY,Opportunity."Created date", VALUEOF(NQ_SESSION.CURRENT_DT)) <= 30) AND (Opportunity."Sales Stage" = 'Lead')
Error Details
Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
Odbc driver returned an error (SQLExecDirectW).
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <<=>: Syntax error [nQSError: 26012] . (HY000)
SQL Issued: {call NQSGetLevelDrillability('SELECT Opportunity."Sales Method Name" saw_0, Territory."Territory Name" saw_1, Opportunity."Sales Stage" saw_2, Opportunity.Name saw_3, Opportunity."Opportunity ID" saw_4, Account."Account Name" saw_5, Account."Account ID" saw_6, Opportunity."Created Date" saw_7, "- Opportunity Custom Attributes".DATE_26 saw_8 FROM "Opportunity Lists" WHERE (Territory."Territory Name" IN (''AC - Mid-Atlantic'', ''AC - North Central'', ''AC - Northeast'', ''AC - Ohio Valley'', ''AC - South'', ''AC - South Central'', ''AC - Southeast'', ''AC - Southwest'', ''AC - Western'', ''Acute Care Sales'')) AND (Opportunity."Created Date" <> TimeStampDiff(SQL_TSI_DAY,Opportunity."Created date", VALUEOF(NQ_SESSION.CURRENT_DT)) <= 30) AND (Opportunity."Sales Stage" = ''Lead'')')} -
help me..urgent..
how set query to select year from date by using expression where.
ex: select sum(salary)
from table
where year(date)=2007
group by name;
just something like that..help me.plezz..select *
from (
select 1 as rn, to_date('09052007','ddmmyyyy') as dt from dual union all
select 1 as rn, to_date('09052006','ddmmyyyy') as dt from dual
where to_char(dt,'yyyy') = '2007'; or
select *
from (
select 1 as rn, to_date('09052007','ddmmyyyy') as dt from dual union all
select 1 as rn, to_date('09052006','ddmmyyyy') as dt from dual
where extract(year from dt) = 2007; -
SQL Query base Finish goods year wise report
Hi
I want to make query base year wise report of Finish Goods.
example like :
Item Name Year2010-11 Year2011-12
abc Sep Oct Nov Sep Oct Nov
xyz 5 0 10 2 5 0
Why this report is need to me because i want to see How old Finish Goods are in the Stock. so that when a delivery make, the person can delivery from old stock first.
Our FY is from September to August
Please help me
Regards,
Mizan
Edited by: mizan700 on Nov 15, 2011 3:28 PMHi Eva,
As Sybrand mentioned, you can't create DDL inside a procedure, and you probably don't need a temporary table. Temporary tables in SQL server used to be used to create a read consistent view for the duration of the procedure, but Oracle's multi version concurrent consistency model eliminates this as a need in all but the most remote cases.
Your create table only seems to be used to take arguments from the user, which I don't see in your code.
If I am looking at your code correctly, all you really want to ask the database is the following:
select nvl(sum(dc.daily_count),0)
from daily_counts_summary dc, branch br, division div
where dc.branch_ky = br.branch_ky
and br.division_ky = div.division_ky
and dc.transaction_dt = t.trndt
and dc.commission_cd = 'R'
and div.division_ky = nvl(v_div_ky,div.division_ky)
and dc.member_type_cd, 'P'
and dc.expiration_dt between v_exp_start_dt and v_exp_end_dt;You can do this in Crystal Reports by writing a procedure that has an out parameter of type sys_refcursor. All you have to do is:
create or replace procedure my_proc(p_curs in out sys_refcursor,v_exp_start_dt date,v_exp_end_dt date) is
begin
open p_cur for
select nvl(sum(dc.daily_count),0)
from daily_counts_summary dc, branch br, division div
where dc.branch_ky = br.branch_ky
and br.division_ky = div.division_ky
and dc.transaction_dt = t.trndt
and dc.commission_cd = 'R'
and div.division_ky = nvl(v_div_ky,div.division_ky)
and dc.member_type_cd, 'P'
and dc.expiration_dt between v_exp_start_dt and v_exp_end_dt;
end;
/...or something close to that, with perhaps calls to your date functions to extract what you need.
You also have several syntax errors in your code. I would recommend you get two books if your are going to work with Oracle:
Anything by Tom Kyte
Anything by Steven Feuerstein
These would both be available on amazon.com
HTH,
Steve -
Entity DATE type attribute : Derieved From SQL Expression for date format
Hi,
I want to set one of the Entity's Date Attribute with specific format , for e.g DD-MM-YYYY
I see a Derieved From SQL Expression checkbox, how can I define the SQL Expression
can I use TO_DATE(EMP_START_DATE,'DD-MM-YYYY'), I want to insert a date in that format, when I am creating a row using viewObject.createRow()
Java Type is oracle.jbo.domain.Date which take YYYY-MM-DD as a string, I do not want to use this format
Thanks,Here is a solution, but I am sure it is not the best one. It will work in a hurry. Maybe you can create a helper method to generalize this conversion until something more succinct comes along for US:
This code assumes an import of jbo.oracle.domain.Date.
public void updateDateTest () {
AddressesViewImpl lVO = (AddressesViewImpl)this.getAddressesView1();
AddressesViewRowImpl lRow = (AddressesViewRowImpl)lVO.first();
System.out.println("create date for current record is currently: " +
lRow.getCreationDate());
java.util.Date today = new java.util.Date();
SimpleDateFormat dateFormat =
new SimpleDateFormat("dd-MM-yyyy");
SimpleDateFormat jboDateFormat =
new SimpleDateFormat("yyyy-MM-dd");
String lSampleDateString = "15-04-2010";
java.util.Date lSampleDate = null;
try {
lSampleDate = dateFormat.parse(lSampleDateString);
} catch (ParseException e) {
System.out.println("Parsing exception thrown: " + e.getMessage() +
"\n ==> caused by \n==>"+ e.getCause().getMessage());
lRow.setCreationDate(new Date(jboDateFormat.format(lSampleDate)));
System.out.println("about to commit; create date for current record is currently: " +
lRow.getCreationDate());
this.getDBTransaction().commit();
System.out.println("resetting to some other date; create date for current record is currently: " +
lRow.getCreationDate());
lRow.setCreationDate(new Date(jboDateFormat.format(today)));
this.getDBTransaction().commit();
}I defined this code in my Application Module Impl file and ran it with the BC tester. Here was its output:
Mar 18, 2010 8:27:54 AM oracle.jbo.jbotester.MainFrame main
INFO: BC4J Tester started.
Source breakpoint occurred at line 66 of FusionExperimentsAMImpl.java.
create date for current record is currently: 2009-02-02 12:09:54.0
about to commit; create date for current record is currently: 2010-04-15
resetting to some other date; create date for current record is currently: 2010-04-15I spent a little time looking around the forum for additional solutions. I think several years ago I even wrote a blog entry on this subject. If I remember how to do this right I will amend with more information. -
Hi All;
I have a field called createdon
Using this field i need to create the SSRS expression for the table as below
Any help much appreciated
Thanks
Pradnya07use expressions as below
assuming this is to be done in SSRS
Today
=COUNT(IIF(
DateDiff(DateInterval.Day,Cdate("01/01/1900"),Fields!createdon.Value) = DateDiff(DateInterval.Day,Cdate("01/01/1900"),Now()),Fields!YourRequiredField.Value,Nothing))
Yesterday
=COUNT(IIF(
DateDiff(DateInterval.Day,Cdate("01/01/1900"),Fields!createdon.Value) = DateDiff(DateInterval.Day,Cdate("01/01/1900"),Now())-1,Fields!YourRequiredField.Value,Nothing))
LastWeek
=COUNT(IIF(
DateDiff(DateInterval.Week,Cdate("01/01/1900"),Fields!createdon.Value) = DateDiff(DateInterval.Week,Cdate("01/01/1900"),Now())-1,Fields!YourRequiredField.Value,Nothing))
Last fortnight
=COUNT(IIF(
(DateDiff(DateInterval.Week,Cdate("01/01/1900"),Fields!createdon.Value) = DateDiff(DateInterval.Week,Cdate("01/01/1900"),Now())-1)
Or (DateDiff(DateInterval.Week,Cdate("01/01/1900"),Fields!createdon.Value) = DateDiff(DateInterval.Week,Cdate("01/01/1900"),Now())-2),Fields!YourRequiredField.Value,Nothing))
Last Month
=COUNT(IIF(DateDiff(DateInterval.Month,Cdate("01/01/1900"),Fields!createdon.Value) = DateDiff(DateInterval.Month,Cdate("01/01/1900"),Now())-1,Fields!YourRequiredField.Value,Nothing))
Year To Date
=COUNT(IIF(DateDiff(DateInterval.Year,Cdate("01/01/1900"),Fields!createdon.Value) = DateDiff(DateInterval.Year,Cdate("01/01/1900"),Now())
And
DateDiff(DateInterval.Day,Cdate("01/01/1900"),Fields!createdon.Value) <= DateDiff(DateInterval.Day,Cdate("01/01/1900"),Now()),Fields!YourRequiredField.Value,Nothing))
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Using an expression in SSRS to display rolling 12 month and year to date volumes
I need some help in writing an expression in SSRS. I have a table that contains date columns and rows that contain different types of data groups. (e.g. total number of items received during the month, total dollars for the month, etc.) I want to add two
new columns to the end of the report that will display a rolling twelve month total for each of the different rows of data. Plus a column that would show year to date totals for the same rows.
I was thinking I could accomplish this by adding expressions for each row in the new 'rolling twelve month' and 'YTD' columns in my report however, I'm not sure how to structure the expressions to achieve this.
Here is an example of how my report currently looks. (I added a pipe delimeter in case the formatting changes once this is submitted.)
Jan-2014 | Feb-2014 | Mar-2014 | Apr-2014 | Rolling 12 mth | YTD
Items received 100 | 35 | 45 | 12 | 192 | 192
Dollars $50.00 | $25.00 | $120.00 | $15.00 | $210.00 | $210.00
Any guidance you can provide would be appreciated.
Thank youThis example shows how to get what you need. It'll take modifying your query to add two cased columns onto the end.
DECLARE @forumTable TABLE (periodYear INT, periodMonth INT, periodMonthName VARCHAR(12), periodDollars MONEY, periodItems INT)
DECLARE @i INT = 0
SET NOCOUNT ON
WHILE @i < 24
BEGIN
INSERT INTO @forumTable (periodYear, periodMonth, periodMonthName, periodDollars, periodItems)
VALUES (YEAR(DATEADD(MONTH,-@i,GETDATE())), Month(DATEADD(MONTH,-@i,GETDATE())), DATENAME(MONTH,DATEADD(MONTH,-@i,GETDATE())), 1000-@i, 100-@i)
SET @i = @i+1
END
SET NOCOUNT OFF
SELECT *,
CASE WHEN CONVERT(VARCHAR,periodYear) + '-' + CONVERT(VARCHAR,periodMonth) + '-01' > DATEADD(MONTH,-12,GETDATE()) THEN periodItems ELSE 0 END AS ytdItems,
CASE WHEN CONVERT(VARCHAR,periodYear) + '-' + CONVERT(VARCHAR,periodMonth) + '-01' > DATEADD(MONTH,-12,GETDATE()) THEN periodDollars ELSE 0 END AS ytdDollars
FROM @forumTable -
Displaying diff dates using PL/SQL expression for 'display only' item ?
Hi ,
I am having a display only item -- :P2_FROM_Date . If its Thu,Fri,Sat or Sun I want to set the date as the last Monday's date . If its Mon,Tue or Wed then it should be the present Monday's date .
E.g: Today is Friday and the last Monday was on 18th .
So for yesterday , today,tomorrow and Sunday , the date should be displayed as 18-JUN-2012.
From the coming Monday to Wednesday , the date should of be the coming Monday i.e , 24-JUN-2012
I tried it doing under 'Source ' of item using PL/SQL expression and PL/SQL function body. Not working
Can someone help ?
Thanks & Regards
UmerNice1 wrote:
declare
lv_date number;
begin
select to_char(sysdate,'D') into lv_date from dual;
if lv_date=2 then
:P2_FROM_DATE := to_char(sysdate-1);
end if;
end;I tried this under " PL/SQL function body " in "Source " tab of the item P2_FROM_DATE
When I run this , nothing is displayed corresponding to the item P2_FROM_DATEExactly as expected. This code will only set a value for <tt>P2_FROM_DATE</tt> when run on Mondays in territories where the first day of the week is Sunday, and when run on Tuesdays where Monday is the first day of of the week:
SQL> var P2_FROM_DATE varchar2(30)
SQL> alter session set nls_date_format='Dy DD-MON-YYYY';
Session altered.
SQL> select sysdate from dual
SYSDATE
Mon 25-JUN-2012
SQL> alter session set nls_territory='AMERICA';
Session altered.
SQL> declare
2 lv_date number;
3 begin
4 select to_char(sysdate,'D') into lv_date from dual;
5 if lv_date=2 then
6 :P2_FROM_DATE := to_char(sysdate-1);
7 end if;
8 end;
9 /
PL/SQL procedure successfully completed.
SQL> print p2_from_date
P2_FROM_DATE
Sun 24-JUN-2012
SQL> alter session set nls_territory='UNITED KINGDOM';
Session altered.
SQL> exec :p2_from_date := null
SQL> declare
2 lv_date number;
3 begin
4 select to_char(sysdate,'D') into lv_date from dual;
5 if lv_date=2 then
6 :P2_FROM_DATE := to_char(sysdate-1);
7 end if;
8 end;
9 /
PL/SQL procedure successfully completed.
SQL> print p2_from_date
P2_FROM_DATE
SQL>Hence the questions about language above.
>
I am having a display only item -- :P2_FROM_Date . If its Thu,Fri,Sat or Sun I want to set the date as the last Monday's date . If its Mon,Tue or Wed then it should be the present Monday's date .
E.g: Today is Friday and the last Monday was on 18th .
So for yesterday , today,tomorrow and Sunday , the date should be displayed as 18-JUN-2012.
From the coming Monday to Wednesday , the date should of be the coming Monday i.e , 24-JUN-2012
>
The coming Monday is 25-JUN-2012.
Aren't these rules equivalent to "Monday this week, where Monday is the first day of the week"? In which case the PL/SQL Expression you require is:
trunc(sysdate, 'iw')For example:
SQL> with t as (
2 select date '2012-06-21' + level d from dual connect by level <= 17)
3 select
4 d
5 , trunc(d, 'iw') monday
6 from
7 t;
D MONDAY
Fri 22-JUN-2012 Mon 18-JUN-2012
Sat 23-JUN-2012 Mon 18-JUN-2012
Sun 24-JUN-2012 Mon 18-JUN-2012
Mon 25-JUN-2012 Mon 25-JUN-2012
Tue 26-JUN-2012 Mon 25-JUN-2012
Wed 27-JUN-2012 Mon 25-JUN-2012
Thu 28-JUN-2012 Mon 25-JUN-2012
Fri 29-JUN-2012 Mon 25-JUN-2012
Sat 30-JUN-2012 Mon 25-JUN-2012
Sun 01-JUL-2012 Mon 25-JUN-2012
Mon 02-JUL-2012 Mon 02-JUL-2012
Tue 03-JUL-2012 Mon 02-JUL-2012
Wed 04-JUL-2012 Mon 02-JUL-2012
Thu 05-JUL-2012 Mon 02-JUL-2012
Fri 06-JUL-2012 Mon 02-JUL-2012
Sat 07-JUL-2012 Mon 02-JUL-2012
Sun 08-JUL-2012 Mon 02-JUL-2012
17 rows selected.
SQL> alter session set nls_territory='AMERICA';
Session altered.
SQL> alter session set nls_date_format='Dy DD-MON-YYYY';
Session altered.
SQL> with t as (
2 select date '2012-06-21' + level d from dual connect by level <= 17)
3 select
4 d
5 , trunc(d, 'iw') monday
6 from
7 t;
D MONDAY
Fri 22-JUN-2012 Mon 18-JUN-2012
Sat 23-JUN-2012 Mon 18-JUN-2012
Sun 24-JUN-2012 Mon 18-JUN-2012
Mon 25-JUN-2012 Mon 25-JUN-2012
Tue 26-JUN-2012 Mon 25-JUN-2012
Wed 27-JUN-2012 Mon 25-JUN-2012
Thu 28-JUN-2012 Mon 25-JUN-2012
Fri 29-JUN-2012 Mon 25-JUN-2012
Sat 30-JUN-2012 Mon 25-JUN-2012
Sun 01-JUL-2012 Mon 25-JUN-2012
Mon 02-JUL-2012 Mon 02-JUL-2012
Tue 03-JUL-2012 Mon 02-JUL-2012
Wed 04-JUL-2012 Mon 02-JUL-2012
Thu 05-JUL-2012 Mon 02-JUL-2012
Fri 06-JUL-2012 Mon 02-JUL-2012
Sat 07-JUL-2012 Mon 02-JUL-2012
Sun 08-JUL-2012 Mon 02-JUL-2012
17 rows selected.Also note that using the item source properties will only set the <tt>P2_FROM_DATE</tt> in the rendered page, not in session state. -
How to get data with out having any date/timestamp columns by year wise
hi,
how can i select years wise rows from tables,if that have not any date/timestamp column.Well Govind it quite depends on what is the data type of that column and the format in which it is stored.
If the data type is varchar2/varchar and all the values are in a uniform format then there is no problem. All you need to use is the to_date function to convert the supplied strings to default date format and then use to_char function to only extract the YY or YYYY or RR or RRRR aspect of the data.
For example: If the column is called 'hire_date' and it's data type is varchar2 and the entries in this column are all in a uniform format, say month,date,year like January,12,1999. What you need to do is convert this string to a default date value using to_date function, like to_date(hire_date,'format_model') In the format model mention the format of the hire_date string. The out put of this function can be fed into to_char to extract the year, like to_char(output_of_to_date,'YYYY')
I hope you got what I meant. Let me know if it was of any use. -
SQL Expression for date conversion - version XI
I am trying to convert a number field to a date field in order to use it in a date parameter in Infoview. The database field is in a 15 digit DTM format but is stored as a number. There is also a zero stored in the database field. When I try to create the date SQL Expression I get this error: Error in compiling SQL Expression: Failed to retrieve data from the database. Details: ORA-01840: input value not long enough for date format. How can I get the SQL Expression to not look at the zero? I tried putting a statement in my Record Selection to not pull any zero fields but that doesn't work. Any ideas? Thanks! Kelley
Hi Kelly,
It's been a while since I used Info View, so if it's about registering, etc. I won't know the
answer.
Did you link it ? Have you tested that it should even return data ?
Check the filtering, etc in a query builder to make sure.
Have you tested the sub report by running it by itself ? (just add a value to the parameter
field request)
Do you have suppression formulas in the sub report ?
Is the section of the main report that is holding the sub report
free of "suppresion" formulas ? -
Pl/sql Year to Date Function
Dear All!
Its very urgent task for me. i'm working on Oracle discoverer. i'm creating Project Year to Date report. i need one year to date function. i've only period name. The scnerio is this, in our company financial year is starting from (April to March i.e 01-April-2011 to 31-mar-2012). i need to apply YTD function on Period name. when any user select any period it will show from 01-apr-2011 to select mont. for example if user select Feb-12 then it must be from 01-apr-2011 to 29-feb-2012.
Please this is urgent.. give Query for function. please
Regards
Ahmed....Hello,
Can you put an example on apex.oracle.com and provide a link, it will be much easier to help you out?
Regards,
Carl
blog : http://carlback.blogspot.com/
apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5 -
Accessing Data on a Locally Installed SQL Express
I'm an extreme newbie to SQL Express. Actually I'm new to SQL as a whole.
I'm attempting to connect to an Access database that is located in a sub-folder on my C drive (c:users/myname/music/music collection.accdb).
What I don't understand is how to set up the local server to send it to. I've tried using the Server Migration Assistant for Access, but when I get to the point where I have to "send" it to a server, I'm not sure what to do.
I know this is a very basic question, but would appreciate if anyone can help or provide a link to information that could help me.
Many thanks,
LisaYou need to give the right servername localhost\sqlexpress in the destination
You can watch this video
http://www.youtube.com/watch?v=q2eBNHTj86M
-Prashanth
Prashant, please check out this thread:
http://social.technet.microsoft.com/Forums/sqlserver/en-US/64ad4f52-2fd8-4266-b4a4-5657c8870246/needed-more-answerers?forum=sqlgetstarted
Thanks!
Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
Small Basic,
Wiki Ninjas,
Wiki)
Answer an interesting question?
Create a wiki article about it! -
Are Cube organized materialized view with Year to Date calculated measure eligible for Query Rewrite
Hi,
Will appreciate if someone can help me with a question regarding Cube organized MV (OLAP).
Does cube organized materialized view with calculated measures based on time series Year to date, inception to date eg.
SUM(FCT_POSITION.BASE_REALIZED_PNL) OVER (HIERARCHY DIM_CALENDAR.CALENDAR BETWEEN UNBOUNDED PRECEDING AND CURRENT MEMBER WITHIN ANCESTOR AT DIMENSION LEVEL DIM_CALENDAR."YEAR")
are eligible for query rewrites or these are considered advanced for query rewrite purposes.
I was hoping to find an example with YTD window function on physical fact dim tables with optimizer rewriting it to Cube Org. MV but not much success.
Thanks in advanceI dont think this is possible.
(My own reasoning)
Part of the reason query rewrite works for base measures only (not calc measures in olap like ytd would be) is due to the fact that the data is staged in olap but its lineage is understandable via the olap cube mappings. That dependency/source identification is lost when we build calculated measures in olap and i think its almost impossible for optimizer to understand the finer points relating to an olap calculation defined via olap calculation (olap dml or olap expression) and also match it with the equivalent calculation using relational sql expression. The difficulty may be because both the olap ytd as well as relational ytd defined via sum() over (partition by ... order by ...) have many non-standard variations of the same calculation/definition. E.g: You can choose to use or choose not to use the option relating to IGNORE NULLs within the sql analytic function. OLAP defn may use NASKIP or NASKIP2.
I tried to search for query rewrite solutions for Inventory stock based calculations (aggregation along time=last value along time) and see if olap cube with cube aggregation option set to "Last non-na hierarchical value" works as an alternative to relational calculation. My experience has been that its not possible. You can do it relationally or you can do it via olap but your application needs to be aware of each and make the appropriate backend sql/call. In such cases, you cannot make olap (aw/cubes/dimensions) appear magically behind the scenes to fulfill the query execution while appearing to work relationally.
HTH
Shankar
Maybe you are looking for
-
Hi gurus, Contract is created with reference to PR and release order created for that Contract. But in PR item details, in status tab no details of contract and PO are seen. where as if PO is created directly with ref to PR that PR is seen in PR item
-
Crytal Reports 2008 SP3 - BAiO Reports - Dump 'DYNPRO_SEND_IN_BACKGROUND'
Hello, we have following BAiO-Installation: SAP-Kernel Informationen SAP-Kernel : 701_REL Datenbank Client Library : SQLDBC 7.6.6.006 CL 216871 hergestellt auf : NT 5.2 3790 Service Pack 1 x86 MS VC++ 14.00 hergestellt am : Feb 24 2009 23:27:20
-
Where-used for a function module
All, I have a function module used in several update and transfer rules. I would like to know EVERY place it is used. The 'Where-used' button returns not found, even though I know it is used in several places. I am on 3.5, Is there any way to
-
Tooltip for Multirecord Block, Please help
Hi All, I am using Formbuilder 6.0.5.32.0 I am facing two problems with Tooltips, on a multirecord block. First of all, the tooltip is displayed only for the topmost record in the multirecord block. Secondly i want to change the tooltip of the item,b
-
Running admin server user as non-root
Hi All, I have a requirement to run admin server user as non-root. Is this possible and how to go about it. giovi