Dynamic pivoting with 2 aggregation fields or more in sql server

Hi,
I have data like below:
CrudeOilName
Period
YearValue
MonthValue
avgPrice_Ton
GrothRate_Ton
IPE BRENT
Jan-13
2013
1
243.516129
245.016129
NYMEX Light Sweet
Jan-13
2013
1
244.258064
245.758064
OPEC BASKET
Jan-13
2013
1
241.387096
242.887096
IPE BRENT
Feb-13
2013
2
237.392857
238.892857
NYMEX Light Sweet
Feb-13
2013
2
254.285714
255.785714
OPEC BASKET
Feb-13
2013
2
249.107142
250.607142
IPE BRENT
Mar-13
2013
3
238.193548
239.693548
NYMEX Light Sweet
Mar-13
2013
3
250.709677
252.209677
OPEC BASKET
Mar-13
2013
3
244.580645
246.080645
IPE BRENT
Apr-13
2013
4
255.566666
257.066666
NYMEX Light Sweet
Apr-13
2013
4
249.933333
251.433333
OPEC BASKET
Apr-13
2013
4
246.2
247.7
IPE BRENT
May-13
2013
5
255.645161
257.145161
NYMEX Light Sweet
May-13
2013
5
259
260.5
OPEC BASKET
May-13
2013
5
246.419354
247.919354
IPE BRENT
Jun-13
2013
6
242.233333
243.733333
NYMEX Light Sweet
Jun-13
2013
6
242.7
244.2
OPEC BASKET
Jun-13
2013
6
243.233333
244.733333
IPE BRENT
Jul-13
2013
7
241.451612
242.951612
NYMEX Light Sweet
Jul-13
2013
7
256.741935
258.241935
OPEC BASKET
Jul-13
2013
7
253.838709
255.338709
IPE BRENT
Aug-13
2013
8
252.032258
253.532258
NYMEX Light Sweet
Aug-13
2013
8
254.677419
256.177419
OPEC BASKET
Aug-13
2013
8
242.903225
244.403225
IPE BRENT
Sep-13
2013
9
251.966666
253.466666
NYMEX Light Sweet
Sep-13
2013
9
251
252.5
OPEC BASKET
Sep-13
2013
9
249.4
250.9
IPE BRENT
Oct-13
2013
10
236
237.5
NYMEX Light Sweet
Oct-13
2013
10
259.096774
260.596774
OPEC BASKET
Oct-13
2013
10
247.612903
249.112903
IPE BRENT
Nov-13
2013
11
245.2
246.7
NYMEX Light Sweet
Nov-13
2013
11
240.833333
242.333333
OPEC BASKET
Nov-13
2013
11
255.266666
256.766666
IPE BRENT
Dec-13
2013
12
245.774193
247.274193
NYMEX Light Sweet
Dec-13
2013
12
249.193548
250.693548
OPEC BASKET
Dec-13
2013
12
246.032258
247.532258
I need output like below:
Period
YearValue
MonthValue
[avgIPE BRENT]
[avgNYMEX Light Sweet]
[avgOPEC BASKET]
Period
YearValue
MonthValue
[GrowthIPE BRENT]
[GrowthNYMEX Light Sweet]
OPEC BASKET[Growth]
Jan-13
2013
1
243.516129
244.258064
241.387096
Jan-14
2014
1
245.016129
245.758064
242.887096
Feb-13
2013
2
237.392857
254.285714
249.107142
Feb-14
2014
2
238.892857
255.785714
250.607142
Mar-13
2013
3
238.193548
250.709677
244.580645
Mar-14
2014
3
239.693548
252.209677
246.080645
Apr-13
2013
4
255.566666
249.933333
246.2
Apr-14
2014
4
257.066666
251.433333
247.7
May-13
2013
5
255.645161
259
246.419354
May-14
2014
5
257.145161
260.5
247.919354
Jun-13
2013
6
242.233333
242.7
243.233333
Jun-14
2014
6
243.733333
244.2
244.733333
Jul-13
2013
7
241.451612
256.741935
253.838709
Jul-14
2014
7
242.951612
258.241935
255.338709
Aug-13
2013
8
252.032258
254.677419
242.903225
Aug-14
2014
8
253.532258
256.177419
244.403225
Sep-13
2013
9
251.966666
251
249.4
Sep-14
2014
9
253.466666
252.5
250.9
Oct-13
2013
10
236
31
247.612903
Oct-14
2014
10
237.5
260.596774
249.112903
Nov-13
2013
11
245.2
240.833333
255.266666
Nov-14
2014
11
246.7
242.333333
256.766666
Dec-13
2013
12
245.774193
249.193548
246.032258
Dec-14
2014
12
247.274193
250.693548
247.532258
Please help ASAP.
Regards,
Srini

Hi Srini
        I think if you want to scale with years also, you max need to consider the MonthValue as common value
please try this
Note: i have used the max() because i have avgPrice_Ton,GrothRate_Ton as in varchar in my example  you can modify as sum or avg if you want
Drop table #temp1
Select * into #temp1 From
(select 'IPE BRENT' CrudeOilName,'41275' Period,'2013' YearValue,'1' MonthValue,'243.516129' avgPrice_Ton,'245.016129' GrothRate_Ton UNION ALL
select 'NYMEX Light Sweet','41275','2013','1','244.258064','245.758064' UNION ALL
select 'OPEC BASKET','41275','2013','1','241.387096','242.887096' UNION ALL
select 'IPE BRENT','41306','2013','2','237.392857','238.892857' UNION ALL
select 'NYMEX Light Sweet','41306','2013','2','254.285714','255.785714' UNION ALL
select 'OPEC BASKET','41306','2013','2','249.107142','250.607142' UNION ALL
select 'IPE BRENT','41334','2013','3','238.193548','239.693548' UNION ALL
select 'NYMEX Light Sweet','41334','2013','3','250.709677','252.209677' UNION ALL
select 'OPEC BASKET','41334','2013','3','244.580645','246.080645' UNION ALL
select 'IPE BRENT','41365','2013','4','255.566666','257.066666' UNION ALL
select 'NYMEX Light Sweet','41365','2013','4','249.933333','251.433333' UNION ALL
select 'OPEC BASKET','41365','2013','4','246.2','247.7' UNION ALL
select 'IPE BRENT','41395','2013','5','255.645161','257.145161' UNION ALL
select 'NYMEX Light Sweet','41395','2013','5','259','260.5' UNION ALL
select 'OPEC BASKET','41395','2013','5','246.419354','247.919354' UNION ALL
select 'IPE BRENT','41426','2013','6','242.233333','243.733333' UNION ALL
select 'NYMEX Light Sweet','41426','2013','6','242.7','244.2' UNION ALL
select 'OPEC BASKET','41426','2013','6','243.233333','244.733333' UNION ALL
select 'IPE BRENT','41456','2013','7','241.451612','242.951612' UNION ALL
select 'NYMEX Light Sweet','41456','2013','7','256.741935','258.241935' UNION ALL
select 'OPEC BASKET','41456','2013','7','253.838709','255.338709' UNION ALL
select 'IPE BRENT','41487','2013','8','252.032258','253.532258' UNION ALL
select 'NYMEX Light Sweet','41487','2013','8','254.677419','256.177419' UNION ALL
select 'OPEC BASKET','41487','2013','8','242.903225','244.403225' UNION ALL
select 'IPE BRENT','41518','2013','9','251.966666','253.466666' UNION ALL
select 'NYMEX Light Sweet','41518','2013','9','251','252.5' UNION ALL
select 'OPEC BASKET','41518','2013','9','249.4','250.9' UNION ALL
select 'IPE BRENT','41548','2013','10','236','237.5' UNION ALL
select 'NYMEX Light Sweet','41548','2013','10','259.096774','260.596774' UNION ALL
select 'OPEC BASKET','41548','2013','10','247.612903','249.112903' UNION ALL
select 'IPE BRENT','41579','2013','11','245.2','246.7' UNION ALL
select 'NYMEX Light Sweet','41579','2013','11','240.833333','242.333333' UNION ALL
select 'OPEC BASKET','41579','2013','11','255.266666','256.766666' UNION ALL
select 'IPE BRENT','41609','2013','12','245.774193','247.274193' UNION ALL
select 'NYMEX Light Sweet','41609','2013','12','249.193548','250.693548' UNION ALL
select 'OPEC BASKET','41609','2013','12','246.032258','247.532258' UNION ALL
select 'IPE BRENT','41306','2014','2','237.392857','238.892857' UNION ALL
select 'NYMEX Light Sweet','41306','2014','2','254.285714','255.785714' UNION ALL
select 'OPEC BASKET','41306','2014','2','249.107142','250.607142' ) a
Declare @sql Nvarchar(4000)='select MonthValue'
select @sql = @sql +',MAX(case when CrudeOilName='''+ CrudeOilName+''' and YearValue= ''' + YearValue +''' then avgPrice_Ton else null end) as ['+YearValue+'_'+CrudeOilName+'avgPrice_Ton]'+CHAR(13)
+',MAX(case when CrudeOilName='''+ CrudeOilName+''' and YearValue= ''' + YearValue +''' then GrothRate_Ton else null end) as ['+YearValue+'_'+CrudeOilName+'GrothRate_Ton]'+CHAR(13)
from
(select distinct YearValue,CrudeOilName From #temp1 ) a
select @sql=@sql + 'from #temp1 group by MonthValue order by convert(int,MonthValue)'
Print @sql
EXEC sp_executesql @sql
Thanks
Saravana Kumar C

Similar Messages

  • Alias with field name in MS SQL Server

    Is it possible that we can define alias for field name in MS SQL Server?
    For example:
    mytable : Id, Name, Value
    Could we define "AnotherName" for "Name" field that we can call it from sql
    SELECT anothername from mytable

    I don't know if you can "permanently" create an alias
    without a view or something like that but if you just
    want another name when you execute a select do this:
    Select name as another name from tableAt least in some databases the syntax for that can vary slightly. So the following might be needed....
    Select name as 'another name' from table

  • To list only user databases with the size for a instance in sql server 2005

    Hi,
    I looking for T-SQl to  list only user databases with their size for a instance in sql server 2005

    Try this:
    use [databasename]
    go
    if convert(varchar(20),SERVERPROPERTY('productversion')) like '8%'
    SELECT [name], fileid, filename, [size]/128.0 AS 'Total Size in MB',
    [size]/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0 AS 'Available Space In MB',
    CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0 AS 'Used Space In MB',
    (100-((([size]/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0)/([size]/128.0))*100)) AS 'percentage Used'
    ,((CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0)/([size]/128.0))*100 as 'percentage used'
    FROM sysfiles
    else
    SELECT [name], file_id, physical_name, [size]/128.0 AS 'Total Size in MB',
    [size]/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0 AS 'Available Space In MB',
    CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0 AS 'Used Space In MB',
    (100-((([size]/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0)/([size]/128.0))*100)) AS 'percentage Used'
    --,((CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0)/([size]/128.0))*100 as 'percentage used'
    FROM sys.database_files
    go
    Or can refer below link:
    http://gallery.technet.microsoft.com/scriptcenter/All-Databases-Data-log-a36da95d
    Please click the Mark as answer button and vote as helpful if this reply solves your problem

  • How to Handle Dynamic Pivoting with a single SQL?

    I was searching for a single SQL who can dynamically understands the pivoting members in the data, I saw several ways of doing Pivoting depending on the version, some are really hard to understand but just two options upto now seams to be flexable enough to do dynamic pivoting, right?
    1- For this option you have to write PL/SQL block to build up the dynamic single SQL query, I also find this approach very easy to understand. :)
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::NO::P11_QUESTION_ID:766825833740
    2- 11.1 's PIVOT new feature with PIVOT XML and ANY clause, a SINGLE SQL and easy to understand but returns XMLTYPE data, another step to parse to produce the report is needed.
    http://www.oracle-developer.net/display.php?id=506
    Below is a 10g Model Clause example, but here instead of pivoting by A1-A2-A3 staticly I want to have these values by a distinc subquery for example;
    create table test(id varchar2(2), des varchar2(4), t number);
    INSERT INTO test values('A','a1',12);
    INSERT INTO test values('A','a2',3);
    INSERT INTO test values('A','a3',1);
    INSERT INTO test values('B','a1',10);
    INSERT INTO test values('B','a2',23);
    INSERT INTO test values('C','a3',45);
    commit;
    SELECT * FROM test;
    ID DES T
    A a1 12
    A a2 3
    A a3 1
    B a1 10
    B a2 23
    C a3 45
    select distinct i, A1, A2, A3
    from test c
    model
    ignore nav
    dimension by(c.id i,c.des d)
    measures(c.t t, 0 A1, 0 A2, 0 A3)
    rules(
    A1[any,any] = t[cv(i),d = 'a1'],
    A2[any,any] = t[cv(i),d = 'a2'],
    A3[any,any] = t[cv(i),d = 'a3']
    I A1 A2 A3
    C 0 0 45
    B 10 23 0
    A 12 3 1 Any advice is appreciated, thank you.

    Hi,
    You can do dynamic SQL in SQL*Plus, also.
    [Thid thread|http://forums.oracle.com/forums/thread.jspa?messageID=2744039&#2744039] shows how to pivot a table with a dynamic number of columns.

  • Dynamic Pivot with Select Into

    I have this Dynamic Pivot which works fine.
    DECLARE @query VARCHAR(4000)
    DECLARE @years VARCHAR(2000)
    SELECT @years = STUFF(( SELECT DISTINCT'],[' + [factor_label]
    FROM [TEMP_lacp_factors]
    ORDER BY '],[' + [factor_label]
    FOR XML PATH('')
    ), 1, 2, '') + ']'
    SET @query =
    'SELECT * FROM
    SELECT [date_],[issue_id],[cusip],[Factor_value],[factor_label]
    FROM [TEMP_lacp_factors]
    )t
    PIVOT (MAX([factor_value]) FOR [factor_label]
    IN ('+@years+')) AS pvt'
    EXECUTE (@query)
    I'm trying to take the results of that and do a SELECT INTO, so I can move the results to another table.  Is this possible?  I didn't find a whole lot online.
    The error that I'm getting is this.
    Caused by: Column name or number of supplied values does not match table definition.
    How can I do this?  Is it even possible?
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    Sure, you can create a table with SELECT INTO, but it cannot be a #temptable. Well, it can be a #temptable, but it will disappear as soon as you exit the scope it was created it, that is the dynamic SQL.
    The question is only, what would you do with this table later? Since you don't know the column names, about all work will have to be done through dynamic SQL.
    A dynamic pivot is a non-relational operation. A SELECT statement produces a table, and a table describes a distinct entity, of which the column are distinct and well-defined attributes. Something which your dynamic pivot does not adhere to.
    There is only one thing you can do with your dynamic pivot: returning the data to the client. I don't know what you want to do with that table, but probably you should do that manipulation before the dynamic pivot, because as I said: that is always your
    last step.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Is it needed to convert the values frm text field to numeric for sql server

    hi all,
    i'm using tomvat4.0,back end sql server 200.
    when i insert the values in to the table it is giving an exception sayin "Error in converting varchar to numeric"
    is it necessary to convert those strings from text fields into int before passing them to the sql query..
    i think it is not necessary for oracle..but not sure with sql server..
    pls help me
    cheers
    chandu

    yap, every thing is fine...
    n i got the solution...when the text field is left blank....the requst.getParameter returns [coe]""(null)
    wen the database is lookin for a numeric it is giving null...which is not acceptable...
    so inserted this code...
    if(request.getParameter("...").equals("")) {
      //assign zero to a variable then insert that variable....
    }thanx for the responses
    cheers
    May the solutions to one's problem pop up in one's mind itself
    chandu

  • Problem with foreign and primary keys migration from SQL Server to Oracle

    Hi folks, i'm using SQL Developer to migrate from a SQL Server database to Oracle and i'm stuck with a couple issues:
    The worst of them so far is the fact that i can't migrate any of the PKs and FKs. After successfully capturing the SQL Server DB model and converting it to Oracle, when the tool generates the scripts, all ALTER TABLE queries that add the PKs and FKs have their target columns duplicated.
    for example: when i'm trying to migrate a simple table that contains an Id (PK) and Name columns, the tool generates the following scripts:
    PROMPT Creating Table TestTable...
    CREATE TABLE TestTable (
    Id NUMBER(10,0) NOT NULL,
    Name VARCHAR2 NOT NULL
    PROMPT Creating Primary Key Constraint PK_TestTable on table TestTable ...
    ALTER TABLE TestTable
    ADD CONSTRAINT PK_TestTable PRIMARY KEY
    Id,
    Id
    ENABLE
    As for the FKs, the tool duplicates the columns as well:
    ALTER TABLE SomeTable
    ADD CONSTRAINT FK_SomeTable_SomeTable2 FOREIGN KEY
    SomeTable2Id,
    SomeTable2Id
    REFERENCES SomeTable2
    Id,
    Id
    ENABLE
    Does anyone have a clue on how to solve these issues? I'd be greatly thankful for any answers!

    Hi Fernando,
    I was unable to replicate this issue. My primary / foreign keys where defined using unique columns.
    PROMPT Creating Primary Key Constraint PK_Suppliers on table Suppliers ...
    ALTER TABLE Suppliers
    ADD CONSTRAINT PK_Suppliers PRIMARY KEY
    SupplierID
    ENABLE
    I tried a few things like
    capturing twice and renaming both models the same
    renaming the converted models
    but with no luck.
    I think this issue is occuring either at the capture or convert phase.
    1) Are you performing the capture online or offline?
    2) Can you provide a the entire DDL for one of these tables and its indexes to see if I can replicate?
    3) Did the capture or convert fail or have to be redone at any stage ?
    I all else fails I would attempt a capture and convert again using a brand new repository (create a new schema in Oracle and associate the migration repository with it).
    Regards,
    Dermot
    SQL Developer Team
    Edited by: Dermot ONeill on Oct 22, 2009 12:18 PM

  • Best practice to define length for varchar field of table in sql server

    What is best practice to define length for a varchar field in table
    where field suppose Remarks By Person  varchar(max) or varchar(4000)
    Could it affect on optimization in future????
    experts Reply Must ... 
    Dilip Patil..

    Hi Dilip,
    Varchar(n/max) is a variable-length, non-unicode character data. N defines the string length and can be a value from 1 through 8,000. Max indicates that the maximum storage size is 2^31-1 bytes (2 GB). The storage size is the actual length of the data entered
    + 2 bytes. We always use varchar when the sizes of the column data entries vary considerably. While if the filed data size might exceed 8,000 bytes in some way, we should use varchar(max).
    So the conclusion is just like Uri said, use varchar(max) or varchar(4000) is depends on how much characters we are going to store.
    The following document about varchar in SQL Server is for your reference:
    http://technet.microsoft.com/en-us/library/ms176089.aspx
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Problems with loading source model using omw from sql server 7 into oracle 9i

    I am migrating data from sql servr 7 into oracle 9i. when doing capture phase i get the following error.
    ==>failed to load source model.[microsoft][odbc sql server][sql server]select permission
    denied on column 'password' of object 'syslogins', database master, owner dbo.
    Why is this so...is it bcz of something with my odbc link...
    also is there any way to load only tables and not system tables when doing capture phase.
    any help asap will be much appreciated.
    thanks

    Hi,
    You must ensure that you have the correct password to login to SQL Server.
    The Workbench requires some of the tables in the Master database.
    Regards
    John

  • More MS-SQL Server Problems...

    I am having trouble getting a connection pool for MS-SQL Server built. It
    looks like a classpath issue, but on checking everything looks fine. The
    stack trace I get is:
    Mon Jul 10 19:41:30 PDT 2000:<I> <WebLogicServer> Invoking main-style
    startup weblogic.jdbc.common.i
    nternal.JdbcStartup weblogic.jdbc.common.internal.JdbcStartup
    Mon Jul 10 19:41:30 PDT 2000:<I> <JDBC Pool> Creating connection pool
    MSSQLPool with:
    {poolName=MSSQLPool, refreshTestMinutes=10, loginDelaySecs=1,
    testTable=dual, maxCapacity=10, props=
    user=sa;password=;server=localhost, allowShrinking=true,
    driver=weblogic.mssqlserver4.Driver, aclNam
    e=weblogic.jdbc.connectionPool.MSSQLPool, capacityIncrement=2,
    initialCapacity=4, url=jdbc:weblogic:
    mssqlserver4, shrinkPeriodMins=15}
    Mon Jul 10 19:41:30 PDT 2000:<E> <JDBC Pool> Failed to create connection
    pool "MSSQLPool"
    java.lang.ClassNotFoundException: weblogic.mssqlserver4.Driver
    at
    weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java,
    Compiled Code)
    at java.lang.Exception.<init>(Exception.java, Compiled Code)
    at
    java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java,
    Compiled Code)
    at
    weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java,
    Compiled Code)
    at weblogic.boot.ServerClassLoader.loadClass(ServerClassLoader.java,
    Compiled Code)
    at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java, Compiled Code)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvF
    actory.java:8
    4)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionEnvFacto
    ry.java:98)
    at
    weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:328
    at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
    Compiled Code)
    at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
    at
    weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java,
    Compiled Code)
    at
    weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
    I am using WL v5.1 without and service pack, on WIN-NT 4
    I also have the mssqlserver4v70 (type 4 driver)
    I am starting Weblogic with the StartWebLogic.cmd script file.
    I made the following change to the start script to include the two required
    directories in the weblogic.class.path property:
    set POST_CLASSPATH=C:\mssqlserver4v70\classes;C:\mssqlserver4v70\license
    Which seems to work (as far as that goes because the trace from
    startWebLogic shows:
    C:\weblogic>.\jre1_2\jre\bin\java -ms64m -mx64m -classpath
    .\classes\boot;.\eval\cloudscape\lib\clou
    dscape.jar -Dweblogic.class.path=.\license;.\classes;.\lib\weblogicaux.jar;.
    \myserver\serverclasses;
    C:\mssqlserver4v70\classes;C:\mssqlserver4v70\license -Dweblogic.home=. -Dja
    va.security.manager -Dja
    va.security.policy==.\weblogic.policy weblogic.Server
    The relevent part of the weblogic.properties is:
    # Set up a connection pool for MS-SQL Server v7
    weblogic.jdbc.connectionPool.MSSQLPool=\
    url=jdbc:weblogic:mssqlserver4,\
    driver=weblogic.mssqlserver4.Driver,\
    loginDelaySecs=1,\
    initialCapacity=4,\
    maxCapacity=10,\
    capacityIncrement=2,\
    allowShrinking=true,\
    shrinkPeriodMins=15,\
    refreshTestMinutes=10,\
    testTable=dual,\
    props=user=sa;password=;server=localhost
    The install directory for weblogic looks like this:
    Directory of C:\weblogic
    07/10/00 07:28p <DIR> .
    07/10/00 07:28p <DIR> ..
    04/03/00 06:08p 9,265 about_utilities.html
    07/10/00 06:04p <DIR> bigtel
    07/10/00 06:01p <DIR> bin
    07/10/00 06:02p <DIR> classes
    04/03/00 05:42p 8,951 copyright.html
    07/10/00 06:03p <DIR> eval
    07/10/00 06:03p <DIR> examples
    07/10/00 06:02p <DIR> jre1_2
    07/10/00 06:01p <DIR> lib
    07/10/00 06:02p <DIR> license
    06/30/00 02:04p 22,109 license.html
    07/10/00 06:39p <DIR> mssqlserver4v70
    07/10/00 06:59p <DIR> myserver
    04/03/00 05:42p 19,821 README.HTML
    07/10/00 06:03p <DIR> servletimages
    07/10/00 06:04p 2,829 setEnv.cmd
    04/03/00 05:42p 4,944 setEnv.sh
    07/10/00 06:03p <DIR> src
    04/03/00 05:42p 1,900 startConsole.cmd
    04/03/00 05:42p 1,131 startConsole.sh
    04/03/00 05:42p 1,788 startSNMPAgent.cmd
    04/03/00 05:42p 1,917 startSNMPAgent.sh
    07/10/00 06:44p 4,534 startWebLogic.bak
    07/10/00 07:25p 4,536 startWebLogic.cmd
    04/03/00 05:42p 5,041 startWebLogic.sh
    07/10/00 07:13p 40,486 weblogic.bak
    07/10/00 06:04p 8,252 weblogic.policy
    07/10/00 07:28p 40,499 weblogic.properties
    30 File(s) 178,003 bytes
    5,720,563,712 bytes free
    Thanks,
    Joe

    Please see the documentation.
    http://www.weblogic.com/docs51/classdocs/API_jmsq4.html#946700
    weblogic.jdbc.mssqlserver4.Driver
    mbg
    In article <[email protected]>, [email protected] says...
    I am having trouble getting a connection pool for MS-SQL Server built. It
    looks like a classpath issue, but on checking everything looks fine. The
    stack trace I get is:
    Mon Jul 10 19:41:30 PDT 2000:<I> <WebLogicServer> Invoking main-style
    startup weblogic.jdbc.common.i
    nternal.JdbcStartup weblogic.jdbc.common.internal.JdbcStartup
    Mon Jul 10 19:41:30 PDT 2000:<I> <JDBC Pool> Creating connection pool
    MSSQLPool with:
    {poolName=MSSQLPool, refreshTestMinutes=10, loginDelaySecs=1,
    testTable=dual, maxCapacity=10, props=
    user=sa;password=;server=localhost, allowShrinking=true,
    driver=weblogic.mssqlserver4.Driver, aclNam
    e=weblogic.jdbc.connectionPool.MSSQLPool, capacityIncrement=2,
    initialCapacity=4, url=jdbc:weblogic:
    mssqlserver4, shrinkPeriodMins=15}
    Mon Jul 10 19:41:30 PDT 2000:<E> <JDBC Pool> Failed to create connection
    pool "MSSQLPool"
    java.lang.ClassNotFoundException: weblogic.mssqlserver4.Driver
    at
    weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java,
    Compiled Code)
    at java.lang.Exception.<init>(Exception.java, Compiled Code)
    at
    java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java,
    Compiled Code)
    at
    weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java,
    Compiled Code)
    at weblogic.boot.ServerClassLoader.loadClass(ServerClassLoader.java,
    Compiled Code)
    at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java, Compiled Code)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvF
    actory.java:8
    4)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionEnvFacto
    ry.java:98)
    at
    weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:328
    at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
    Compiled Code)
    at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
    at
    weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)--
    ==================================================
    NewsGroup Rant
    ==================================================
    Rant 2.
    Many of the answers to your questions are in the
    documentation. At the top of our online docs is
    a search button. Try it!

  • Issue with Audit Vault Collector for Peoplesoft-MS Sql Server

    Experts,
    Requesting your valuable inputs regarding below issue :
    Environment:
    - Peoplesoft with SQL Server 2008
    - Oracle Audit Vault.
    Current issue with Audit Vault collector for SQL server is that it is not giving PSFT login ID instead it is giving Peoplesoft DB service Account ID.
    Is this expected ?. If yes, what is the workaround ? Can Database Firewall is a best option to capture PSFT login ID ?
    Thanks

    Hi Rabi ,
      just do one think here ..
    During data source creation , in the Additional tab area , in the SQL Engine session , select "Vendor SQL"  instead of "Open SQL".
    HOw could u create data source without selecting the driver corrsponding to MS SQL.?
    it is recommended to download the latest Driver and use this for Driver creation.
    let me know ..
                                       Regards
                                       Kishor Gopinathan

  • Setup closed with exit code: 0x84C40013 - Silent Install error - SQL Server 2012 express management studio SP1

    I am trying to create a silent installation package for SQL Server 2012 Express Management Studio SP1. (both x86 & x64)
    Prior to installation I have performed the following :
    1. Turned ON the Windows feature 'Microsoft .NET Framework 3.5.1' (I had read somewhere on the internet that this is required prior to installation)
    2. Installed Microsoft .NET Framework 4.0
    I am using the following command line to perform an unattended install :
    <EXENAME> /Q /IACCEPTSQLSERVERLICENSETERMS /ACTION=install /FEATURES=Tools 
    However, the installation fails abruptly.
    The application installs successfully with the following command line :
    <EXENAME> /IACCEPTSQLSERVERLICENSETERMS /ACTION=install /FEATURES=Tools
    The error occurs only while attempting to install the application with the /Q switch appended.
    Please help.

    Hello Fanny,
    Thanks for providing the link to the SQL Server 2012 unattended install guide.
    However, I must highlight that I was running the setup.exe with "Run As a Administrator" option and still facing the issue.
    Anyways, I found out the root cause and I must say that it was a rather silly one.
    As I had stated previously, the following command line was causing the issue :
    <EXENAME>
    /Q /IACCEPTSQLSERVERLICENSETERMS /ACTION=install /FEATURES=Tools
    I simply changed it to the following and it worked....
    <EXENAME>
    /QUIET /IACCEPTSQLSERVERLICENSETERMS /ACTION=INSTALL /FEATURES=TOOLS
    It so seems that everything must be in CAPITALS for this to work.
    Regards,
    Soumen

  • Issue with Full-Text (FTS) master merge on SQL Server 2012 SP2

    Hi,
    On my current project we have really annoying issue with master merge process that occurs after Full Population of FTS Index.
    Let me describe our process: we have continuous build that setup environment and run unit tests after each commit in our source control. For each run we create new DB (on the same SQL Server) then fill it with test data and run unit tests. Sometimes unit
    tests failed because FTS Index population cannot finish in time.
    We have constantly seeing in [sysprocesses] table lots of sessions with wait type FT_MASTER_MERGE that block our tests
    In FTS log we have following error:
    The master merge started at the end of the full crawl of table or indexed view [TABLENAME] failed with HRESULT = '0x80000049'. Database ID is '45', table id is
    706101556, catalog ID: 5.
    Here is an example of how we create FTS catalog and add table to it (As you can see it's created with auto change tracking together with
    index update in background):
    -- Create FTS catalog
    EXEC sp_fulltext_catalog 'WilcoFTSCatalog', 'create'EXEC sp_fulltext_table 'Users', 'create', 'WilcoFTSCatalog', 'PK_Users'
    EXEC sp_fulltext_column 'Users', 'UserId', 'add'
    EXEC sp_fulltext_column 'Users', 'Name', 'add'
    EXEC sp_fulltext_table 'Users', 'activate'
    EXEC sp_fulltext_table 'Users', 'start_change_tracking'
    EXEC sp_fulltext_table 'Users', 'start_background_updateindex'
    Does anybody know what is the root cause of this issue and what should be done to avoid it?
    Thank you in advance,
    Olena Smoliak

    Hi,
    On my current project we have really annoying issue with master merge process that occurs after Full Population of FTS Index.
    Let me describe our process: we have continuous build that setup environment and run unit tests after each commit in our source control. For each run we create new DB (on the same SQL Server) then fill it with test data and run unit tests. Sometimes unit
    tests failed because FTS Index population cannot finish in time.
    We have constantly seeing in [sysprocesses] table lots of sessions with wait type FT_MASTER_MERGE that block our tests
    In FTS log we have following error:
    The master merge started at the end of the full crawl of table or indexed view [TABLENAME] failed with HRESULT = '0x80000049'. Database ID is '45', table id is
    706101556, catalog ID: 5.
    Here is an example of how we create FTS catalog and add table to it (As you can see it's created with auto change tracking together with
    index update in background):
    -- Create FTS catalog
    EXEC sp_fulltext_catalog 'WilcoFTSCatalog', 'create'EXEC sp_fulltext_table 'Users', 'create', 'WilcoFTSCatalog', 'PK_Users'
    EXEC sp_fulltext_column 'Users', 'UserId', 'add'
    EXEC sp_fulltext_column 'Users', 'Name', 'add'
    EXEC sp_fulltext_table 'Users', 'activate'
    EXEC sp_fulltext_table 'Users', 'start_change_tracking'
    EXEC sp_fulltext_table 'Users', 'start_background_updateindex'
    Does anybody know what is the root cause of this issue and what should be done to avoid it?
    Thank you in advance,
    Olena Smoliak

  • Dynamic stamps with multiple editable fields

    Our Accounting department wants to go completely digitable with invoices.
    For them to be able to do this they require a stamp that has several editable fields such as
    General Ledger number
    Financial Controllers name
    Comments
    Date
    Approval status
    They want to be able to stamp a PDF invoice and then fill in the fields manually.
    I cannot find a stamp that will do this.  I tried a couple add-in stamp apps for Acrobat 9 but they did not offer this kind of feature.
    Thanks

    Hi teede,
    We have begun publishing a large amount of information on creating/developing custom dynamic stamps  at www.pdfscripting.com due to the number of requests for information on these powerful PDF workflow tools.  It is a membership site requiring a paid membership for full access to all content, but we recently published a free video "PDF Stamps Gone Wild!" on the home page under Featured Videos that shows many possibilities for what you can do with custom dynamic stamps.
    We'll be adding downloads of some the stamp files shown in the video over the next few weeks.
    Hope this helps,
    Dimitri
    WindJack Solutions
    www.pdfscripting.com
    www.windjack.com

  • I am trying to get to a website I go to daily and get the message: "An error occured with the SQL server This is not a problem with the IP Board but rather your SQL server." I have no idea what this error is or what to do about it.

    I have tried clearing everything, rebooting, I just do not know what this actual error is. I was on the website, went back about 30 minutes later and that message. No other websites are bringing up this error.

    If FCP captures the footage then capture with FCP and import the files into Premiere. Just a few extra clicks.
    Or read this:
    Cannot start DV or HDV video capture in Premiere Pro CS4 or later 

Maybe you are looking for

  • Using Flex Component Kit for FlashCS3 in Flash Builder

    Hi at all, i apologize for my english. I'm using Flash Builder 4 and i've created a movie clip symbol in Flash CS4. I convert the flash symbol in Flex Component but Flash Builder sends a "Verify Error" because the mx.flash.UIMovieClip class in the Fl

  • How do I rename a printer on MacBook Pro 10.6.8?

    How do I rename a printer on my MacBook Pro 10.6.8?

  • Clustering across File systems

    Folks!           I have a question... Does Weblogic support a clustering env. across           filesystems. We are running into this problem. We are using the NES proxy           lib to switch between two weblogic app server. If both are started from

  • Does anybody here know how I can compile my java programs?

    I downloaded j2se 1.4.0 and j2se 1.4.1 and for some reason I can't the javac command in the bin directory. There is a command called javaw but I don't know what it does. can anyone help me?

  • MIDI Punch In

    Hi All - I am new to GarageBand but have used other packages which do this - can you nominate a point to 'drop in' or 'punch in' a MIDI event? It seems that if I go back and try and re-do a chord or a couple of notes in a bar, I then overwrite other