SQL Server, ETA Accounting Program, Java Report Program

I have an Accouting Program in my firm called ETA. She uses SQL Server.
I tried to connect it with jdt packet, but it did not work.
I tried to connect it with microsoft's packet, but it did not work.
I tried to connect it with configuring ODBC-SQLServer then JDBC-ODBC, the it worked.
I tried to sniff some data with
SELECT "+cn[0]+", "+cn[1]+" FROM "+tn+" WITH (NOLOCK) ORDER BY "+cn[0]
where
cn[0]="MUHKOD";
cn[1]="MUHADI1";
tn="MUHHESAP";
it worked
I tried to sniff some data with
"SELECT "+cn[0]+", "+cn[1]+" FROM "+tn+" WITH (NOLOCK) ORDER BY "+cn[0]
where
cn[0]="MUHKOD";
cn[1]="MUHADI1";
tn="MUHHESAP";
it worked
I tried to sniff some data with
"SELECT "+cn[0]+", "+cn[1]+", "+cn[2]+", "+cn[3]+" FROM "+tn+" WITH (NOLOCK) ORDER BY "+cn[0];
where
cn[0]="STKKOD";
cn[1]="STKCINSI";
cn[2]="STKBAKIYE";
cn[3]="STKBIRIM";
tn="STKKART";
it worked
Now I want to try another sqlCommand that ETA uses and works on my java program:
SELECT MUHHARTAR AS 'Tarih', MUHHARNO AS 'Fiş No', MUHHARACIKLAMA AS 'Açıklama', 'T' = CASE WHEN MUHHARBATIPI=1 THEN 'B' ELSE 'A' END, MUHHARTUTAR AS 'Tutar',MUHHARDOVKOD AS 'Döviz Kodu', MUHHARDOVTUR AS 'Döviz Türü', MUHHARDOVTUTAR AS 'Döviz Tutarı', MUHHARREFNO AS 'Fiş Ref.No',MUHHARYEVNO AS 'Yevmiye No', MUHFTKOD AS 'Fiş Cinsi' FROM MUHHAR WITH(NOLOCK) LEFT JOIN MUHFISTIP WITH(NOLOCK) ON MUHHAR.MUHHARCINSI=MUHFISTIP.MUHFTNO WHERE MUHHARMUHKOD=:MUHKOD ORDER BY MUHHARTAR,MUHHARREFNO,MUHHARSIRANO
but it returns
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near ':'.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3110)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:338)
at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:253)
at com.tugalsan.libraries.io.sql.TK_SQLQuery.<init>(TK_SQLQuery.java:62)
at com.tugalsan.libraries.io.sql.TK_SQLQuery.<init>(TK_SQLQuery.java:47)
at com.tugalsan.libraries.io.sql.TK_SQLConnection.executeQuery(TK_SQLConnection.java:70)
at javaapplication2.Main.main(Main.java:17)
could anyone help me? I could not find what it means =: on an sql statement and have no idea why it does not works.

I do not see anything related to ':' charactter in Prepared Statements, whowever, as you said it might be refer to '?' character, as this:
SELECT * FROM MUHHAR WITH(NOLOCK) LEFT JOIN MUHFISTIP WITH(NOLOCK) ON MUHHAR.MUHHARCINSI=MUHFISTIP.MUHFTNO WHERE MUHHARMUHKOD=?MUHKODI did a dig in for the possibility of below expression:
SELECT * FROM MUHHAR WITH(NOLOCK) LEFT JOIN MUHFISTIP WITH(NOLOCK) ON MUHHAR.MUHHARCINSI=MUHFISTIP.MUHFTNO WHERE someTableNameA.MUHHARMUHKOD=someTableNameB.MUHKODI dig in to database and search for a table with column name MUHKOD; and I could not able to find one.
However I find these:
table name > column name (ends with 'MUHKOD')
BANKAHAR > BANHARKARMUHKOD
BANKAHAR > BANHARMASMUHKOD
BANKAHAR > BANHARSTPMUHKOD
BANKAHAR > BANHARFONMUHKOD
BORMUHGRUP > BMGMUHKOD
CARGRUP > CARGRPMUHKOD
CARHAR > CARHARMUHKOD
CARMUHGRUP > CMGMUHKOD
DEMMUHGRUP > DMGMUHKOD
DEMMUHHESAP > DMHMUHKOD
FATHAR > FATHARMUHKOD
GELGIDMUHBAG > GENGELMUHKOD
GELGIDMUHBAG > GENGIDMUHKOD
HIZMET > HIZMUHKOD
HIZMET > HIZMALMUHKOD
HIZMET > HIZYANMUHKOD
INDIRIM > INDMUHKOD
IRSHAR > IRSHARMUHKOD
KASAHAR > KASHARMUHKOD
KASAHAR > KASHARMAKKDVMUHKOD
KASAHAR > KASHARMAKSTPMUHKOD
KASAHAR > KASHARMAKFONMUHKOD
MASRAF > MASMUHKOD
MBOKART > MBOMEMUHKOD
MUH4YILSONU > YSMUHKOD
MUHHAR > MUHHARMUHKOD
MUHHARIPTAL > MUHHARMUHKOD
MUHHESAP > MUHKOD
MUHKDVORAN > MUHKDVMUHKOD
MUHMIZDEGER > MUHKOD
URTGIDER > GIDMUHKOD
URTHAR > URTHARFIREMUHKOD
URTRECDETAY > RECDETFIREMUHKODAs I am dealing with the statement below:
SELECT * FROM MUHHAR WITH(NOLOCK) LEFT JOIN MUHFISTIP WITH(NOLOCK) ON MUHHAR.MUHHARCINSI=MUHFISTIP.MUHFTNO WHERE MUHHARMUHKOD=?MUHKODthe referred table name can only be MUHHAR, MUHFISTIP
Then I strip down the these two tables as below:
table name > column name (ALL)
MUHFISTIP > MUHFTMODUL
MUHFISTIP > MUHFTNO
MUHFISTIP > MUHFTKOD
MUHFISTIP > MUHFTACIKLAMA
MUHFISTIP > MUHFTONAY
MUHFISTIP > MUHFTEVRAKNO
MUHFISTIP > MUHFTDIZDOS
MUHFISTIP > MUHFTISLGUN
MUHHAR > MUHHARTAR
MUHHAR > MUHHARREFNO
MUHHAR > MUHHARSIRANO
MUHHAR > MUHHARMUHKOD
MUHHAR > MUHHARACIKLAMA
MUHHAR > MUHHARBATIPI
MUHHAR > MUHHARTUTAR
MUHHAR > MUHHARDOVKOD
MUHHAR > MUHHARDOVTUR
MUHHAR > MUHHARDOVTUTAR
MUHHAR > MUHHARMASMER
MUHHAR > MUHHAREVRAKNO
MUHHAR > MUHHAROZELKOD
MUHHAR > MUHHARACIKLAMA1
MUHHAR > MUHHARACIKLAMA2
MUHHAR > MUHHARACIKLAMA3
MUHHAR > MUHHARMIKTUT
MUHHAR > MUHHARNO
MUHHAR > MUHHARCINSI
MUHHAR > MUHHARYEVNO
MUHHAR > MUHHARKAYITONC
MUHHAR > MUHHAROZELFLAG
MUHHAR > MUHHARKAYNAK
MUHHAR > MUHHARMATATEFLAG
MUHHAR > MUHHAREKCHAR1
MUHHAR > MUHHAREKCHAR2
MUHHAR > MUHHAREKINT1
MUHHAR > MUHHAREKINT2
MUHHAR > MUHHAREKDATE1
MUHHAR > MUHHAREKDATE2
MUHHAR > MUHHAREKTUT1
MUHHAR > MUHHAREKTUT2
MUHHAR > MUHHAREKMIK1
MUHHAR > MUHHAREKMIK2
MUHHAR > MUHHAREKDOVTUT1
MUHHAR > MUHHAREKDOVTUT2
MUHHAR > MUHHAREKORAN1
MUHHAR > MUHHAREKORAN2
MUHHAR > MUHHARDOVKUR
MUHHAR > MUHHAREVRAKTARThere I wanted to say that on 'MUHHARMUHKOD=:MUHKOD' expresion, MUHHARMUHKOD should equals MUHHAR.MUHHARMUHKOD and MUHKOD equals to MUHFISTIP.somethingMUHKOD.
But there is to column name that ends with MUHKOD in MUHFISTIP table.
There I start to think, it is not a Prepared Statement and ':' is not '?' but sth else... But What ?

Similar Messages

  • How to compare 2 dates in SQL Server 2000 DB using Java?

    How do you compare 2 dates in SQL Server 2000 DB using Java?
    Let's say we have two fields: Date Reported and Target Finish Date.
    Date Reported is 09-10-2004 09:55:55: PM
    Target Finish Date is 09-12-2004 11:59:59: PM
    What i want to happen is i want to convert both dates to days and get the difference of the two.
    can SQL Server 2000 DB do this?

    it doesnt wrk.
    ok here's what i did:
    iv tested a simple code for this case.
    I created a table name tblDate which has 3 columns namely date_ID, date_From (datatype datetime), date_To (datatype datetime).
    I inserted 1 row: date_ID has the value 1, date_From has the value 10/22/2004, and date_To has the value 10/24/2004.
    i run the java code below:
    int days = 0;
              String query = "SELECT date_From, date_To cast(date_From-date_To AS int) AS Diff FROM tblZoo WHERE date_ID = '1'";
              try
                   DBConnect db = new DBConnect();
                   db.openCon();
                   ResultSet rs = db.execute(query);
                   while(rs.next())
                        days = rs.getInt("Diff");
                   db.closeCon();                         
              catch (Exception ex)
                   System.out.println("Error on Execution: " + ex);
              return days;___________
    an error occurred: Error on Execution: java.lang.nullpointerexception

  • SCVMM 2008 R2 - "The SQL Server service account does not have permission to access Active Directory Domain Services (AD DS)."

    I know this question has been asked before, but never for R2, that I can tell, and the posted fixes aren't working. I have just installed SCVMM 2008 R2 on a Windows Server 2008 R2 server, using a remote SQL 2008 SP1 database. When I attempt to connect to SCVMM, I get the following error:
    "The SQL Server service account does not have permission to access Active Directory Domain Services (AD DS).
    Ensure that the SQL Server service is running under a domain account or a computer account that has permission to access AD DS. For more information, see "Some applications and APIs require access to authorization information on account objects" in the Microsoft Knowledge Base at http://go.microsoft.com/fwlink/?LinkId=121054.
    ID: 2607"
    What I've seen online is that this is usually becuase the domain account SCVMM is running as does not have the proper permissions on the SQL database. Here's what I've confirmed:
    1) My SCVMM service account is a local admin on the SCVMM server
    2) My SCVMM service account is a dbowner on the SCVMM database in SQL
    3) My SQL service account is a dbowner on the SCVMM database in SQL
    4) My SQL service account is a domain user (even made it a domain admin, just in case, and it still "doesn't have access to AD DS," which is obviously untrue)
    5) Neither service account is locked out
    Has anyone run in to this? It says in Technet that remote SQL 2008 is supported, as long as the SQL management studio is installed to the SCVMM server, and I installed and patched before I began the SCVMM installation. I just don't know what else to try - I have no errors in event logs, no issues during the installation itself...
    Andrew Topp

    That answer was very unhelpful fr33m4n. The individual mentions that they've received the error that points to the KB article. I currently receive the same error -- there seems to be no resolution. I've run the Microsoft VBS script to add TAUG to the WAAG
    as suggested by 331951, and that made absolutely no difference.
    1) My SCVMM service account is a local admin on the SCVMM server
    2) My SCVMM service account is a dbowner on the SCVMM database in SQL
    3) My SQL service account is a dbowner on the SCVMM database in SQL
    4) My SQL service account is a domain user (even made it a domain admin, just in case, and it still
    "doesn't have access to AD DS," which is obviously untrue)
    The user is also a member of WAAG, the machines have delegated authority to each other. Is there any other solution?

  • How to find out sql server administrator account in sql server 2008 R2

    how to find out sql server administrator account in sql server 2008 R2
    adil

    there is any way to find out actual administrator
    because i forget that user i used to logon to server and installed sqlserver
    adil
    Hi adilahmed,
    According to your description, you forgot the account which was used to install SQL Server. SQL Server service account information is stored in Windows Registry database. You can get this information from Services Console or SQL Server Configuration.
    For example, to get account information from Services Console.
    1. Go to Start > Run > Services.msc
    2. Right Click on SQL Server Service, i.e. “SQL Server (InstanceName)” and go to properties
    3. The account information is available under Log On tab.
    Or you can get the information by using DMV and so on.
    SELECT servicename, service_account FROM   sys.dm_server_servicesGO
    If you now log in SQL Server by using sysadmin account, you can check all login names in security and find the original account to login.
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Does changing the SQL Server Service Account impact FILESTREAM data?

    I have a stand-alone SQL Server 2008 instance that I need to change the SQL Server service account from LocalSystem to a domain account.  However, I was wondering if there was any impact on FILESTREAM enabled databases that are hosted on the SQL Server? 
    Specifically, has anyone ever changed the SQL Server service account when using FILESTREAM ...
    Sincerely,
    Sean Fitzgerald

    I have a stand-alone SQL Server 2008 instance that I need to change the SQL Server service account from LocalSystem to a domain account.  However, I was wondering if there was any impact on FILESTREAM enabled databases that are hosted on the SQL Server? 
    Specifically, has anyone ever changed the SQL Server service account when using FILESTREAM ...
    Sincerely,
    Sean Fitzgerald
    BOL says : Only the account under which the SQL Server service account runs is granted NTFS permissions to the FILESTREAM container.So,  if you start SQL Server under different account , that account wil have access to use fliestream data (read / write)
    At the database level ,If a user has permission to the FILESTREAM column in a table, the user can open the associated files..
    Abhay Chaudhary OCP 9i, MCTS/MCITP (SQL Server 2005, 2008, 2005 BI) ms-abhay.blogspot.com/

  • Reviewing Windows NT Rights and Privileges Granted for SQL Server Service Accounts

    Hi Folks,
    I am an experienced .NET apps developer who has been tasked with writing a bunch of technical controls for all the SQL Server instances on a domain.
    So for the last month I have been diving in the deep end learning Powershell, dba and infrastructure tasks. This is still a work in progress, so be kind to me.. ;o)
    So the task I am stuck on is described in the section on 'Reviewing Windows NT Rights and Privileges Granted for SQL Server Service Accounts' http://technet.microsoft.com/en-us/library/ms143504(v=sql.105).aspx
    I have not been able to find cmdlets that gives me this information. I have found some exes which come frustratingly close like NTRights.exe. This lets me specify a computer name which is great, but only seems to let you set or deny permissions, not just
    list them!
    Any help with this would be very much appreciated as I am firmly stuck. As per comments above also bear in mind that up until around 1.5 months ago I had never used powershell / knew very much at all about SQL server admin etc. Feeling much more comfortable
    with them now, but much less so with Active Directory/ windows permission structures etc so please can I ask anyone kind enough to reply to try and keep the acronyms down as much as humanly possible.. ;o)
    Cheers 
    Kieron

    Hi Kieron,
    Take a look at this module, it makes permissions much easier to work with than what's currently available:
    https://gallery.technet.microsoft.com/scriptcenter/PowerShellAccessControl-d3be7b83
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • SQL Server Service Account - Domain Account - WMI Provider Error - 0x80092004

    Hi,
    if I try to use an domain account for SQL service start using SQL configuration Manager I receive the error
    WMI Provider Error - 0x80092004
    in Popup Window and in Eventlog 5 Error Events from Source MSSQLSERVER:
    26014:
    Unable to load user-specified certificate [Cert Hash(sha1) "BA78B5DBF93CCD7EFA1860C99B0D6141D480199A"]. The server will not accept a connection. You should verify that the certificate is correctly installed. See "Configuring Certificate for
    Use by SSL" in Books Online.
    17182:
    TDSSNIClient initialization failed with error 0x80092004, status code 0x80. Reason: Unable to initialize SSL support. Cannot find object or property. "
    17182:
    TDSSNIClient initialization failed with error 0x80092004, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors. Cannot find object or property.
    17826:
    Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
    17120:
    SQL Server could not spawn FRunCommunicationsManager thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.
    After I put the account in local administrator group the service starts up.
    I want to use the lowest privileges. Do I really need the SQL server service account in local administrator group? How to fix the error?
    thanks

    Hi baschuel,
    It is recommended to run SQL Server service by using the lowest possible user rights and it is supported to use a domain account instead of an account from local Administrators group to configure SQL Server service. According to your error messages, the
    issue could be due to that the incorrect certificate is used, or the domain account has no access to the Crypto folder(C:\ProgramData\Microsoft\Crypto). To troubleshoot the issue, you could follow the two solutions below.
    1.Import the correct certificate following the steps in the article:
    http://windows.microsoft.com/en-hk/windows/import-export-certificates-private-keys#1TC=windows-7
    2.Grant the domain account full access to the Crypto folder.
    Regards,
    Michelle Li
    If you have any feedback on our support, please click
    here.

  • SQL Server services accounts using Managed Service Accounts

    Hi guys,
    Need your feedback on something, is it wiser to use Managed Service Accounts or normal domain accounts to run SQL Server services? MSA's only work in a single computer, so for every environment I would need to create a new set of sql services accounts.
    If I create a single account wouldn't it be simpler? For instance domain\sqlservices and set it on every service and every environment (dev, qa and production)

    Hi
    It is a good question but the answer is not black or white. The answer is depend like most configuration questions.
    I recommend you to use
    Google to find blogs about the issue.
    You can start from this links, which are great starting point for you question:
    Best Practices For Using SQL Server Service Accounts
    Book Online
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • SQL Server Service account setup

    Yes, you would have to create a login for it. See your other post for info about the error you're getting.

    I am currently running MS SQL 2008 R2 on a Windows Server 2008 R2 box.  The SQL services are currently running under the NetworkService account and I want to change this to a domain account but I am having some trouble.  I have created the domain account and have tried to go into SSCM and change the account there but I get various errors depending on the service I try to change.  When changing the account on the SQL Server Service I get an error "Access is Denied"
    I am assuming I need to assign some rights to this new account BUT I thought changing the account in SSCM would do that automatically but it looks like that assumption is wrong.
    What is the best procedure for changing the SQL Server Service account to a domain account on SQL Server 2008?
    This topic first appeared in the Spiceworks Community

  • Raiserror from SQL Server 7.0 to Java

    I am using JDK1.3.1 and SQL Server 7.0. I have written a stored proc in SQL Server that makes a check and calls raiserror if the check is violated. Example below:
    raiserror('Error msg', 16, 1)
    I have also tried using the SQL Server internal messages like so:
    raiserror(18113, 16, 1) or raiserror(50100, 16, 1)
    All of these work fine from a TSQL window, but when my Java program uses the stored procs, and hits the error condition, it returns the following:
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Fractional truncation
    I expected to see my error msg from above. Does anyone know how to fix this?

    ...and have that show up as an Exception (possibly a SQLException) JDBC only throws SQLExceptions so it will show up that way.
    I know I have done this before and it worked. I used strings and the 16,1 combo.
    You might look at SQLException.getNextException() but I don't think I used that.
    Are you using a formatted message (something with a percent sign in it)?
    You might try using a simpler case to get the basic layout down first and then move it to your real code.

  • Is it possible to deploy 2 SCOM 2012 R2 reporting in a SQL server which already has SCOM reporting of a different management group but with 2 different reporting instance.

    Hi Experts,
    I have a typical situation in the LAB environment. Hope some one helps. I have Installed a SCOM 2012 R2 with SQL 2012 SP1 in a single server (Management group 1). I have installed another management group on another server using this SQL server for its database
    so i have everything going fine.
    The first management group has its reporting installed in the SQL server. For the second i created a new named instance for that. But i cannot run the SCOM setup in the SQL server (Also holding the Management group 1 MS) as 1 st reporting is already there.
    When i run the setup it is asking me to repair it. I don't get the install option so i can install the reporting for management group 2 in the named instance.
    Default instance is being used by the 1st management group.
    Can any one figure a possibility for installing 2 SCOM reporting services for different management groups in a same SQL 2012 server please.
    Gautam.75801

    Hi Yan Li,
    Thank you for the reply. So as you are aware If i need to instal reporting, i need to run the SCOM 2012 R2 setup in the SQL server and select reporting and select the
    instance and then mention the management server there right. I am not getting that option there it is asking me to remove or repair the existing installation as there is already a SCOM entire setup including reporting there. As it is a lab there is no problem
    in testing. I have 2 reporting instances. Any suggestions for me on how to overcome this issue and deploy the second reporting in the new named instance ?
    Below is the screenshot of the error what i am talking about when i run SCOM 2012 R2 setup to install reporting in the SQL server
    When i click on add feature reporting is greyed out (As already 1st management groups reporting is installed)
    When i click on remove or repair it
    uninstalls the existing one. But i want both SCOM 2012 r2 reporting to be there(For both Management group). Is it possible ? If yes What is the trick to run the setup ?
    Gautam.75801

  • Need clear steps for doing performance tuning on SQL Server 2008 R2 (DB Engine, Reporting Services and Integration Services)

    We have to inverstigate about a reporting solution where things are getting slow (may be material, database design, network matters).
    I have red a lot in MSDN and some books about performance tuning on SQL Server 2008 R2 (or other) but frankly, I feel a little lost in all that stuff
    I'am looking for practical steps in order to do the tuning. Someone had like a recipe for that : a success story...
    My (brain storm) Methodology should follow these steps:
     Resource bottlenecks: CPU, memory, and I/O bottlenecks
     tempdb bottlenecks
     A slow-running user query : Missing indexes, statistics,...
     Use performance counters : there are many, can one give us the list of the most important
    how to do fine tuning about SQL Server configuration
    SSRS, SSIS configuration ? 
    And do the recommandations.
    Thanks
    "there is no Royal Road to Mathematics, in other words, that I have only a very small head and must live with it..."
    Edsger W. Dijkstra

    Hello,
    There is no clear defined step which can be categorized as step by step to performance tuning.Your first goal is to find out cause or drill down to factor causing slowness of SQL server it can be poorly written query ,missing indexes,outdated stats.RAM crunch
    CPU crunch so on and so forth.
    I generally refer to below doc for SQL server tuning
    http://technet.microsoft.com/en-us/library/dd672789(v=sql.100).aspx
    For SSIS tuning i refer below doc.
    http://technet.microsoft.com/library/Cc966529#ECAA
    http://msdn.microsoft.com/en-us/library/ms137622(v=sql.105).aspx
    When I face issue i generally look at wait stats ,wait stats give you idea about on what resource query was waiting.
    --By Jonathan KehayiasSELECT TOP 10
    wait_type ,
    max_wait_time_ms wait_time_ms ,
    signal_wait_time_ms ,
    wait_time_ms - signal_wait_time_ms AS resource_wait_time_ms ,
    100.0 * wait_time_ms / SUM(wait_time_ms) OVER ( )
    AS percent_total_waits ,
    100.0 * signal_wait_time_ms / SUM(signal_wait_time_ms) OVER ( )
    AS percent_total_signal_waits ,
    100.0 * ( wait_time_ms - signal_wait_time_ms )
    / SUM(wait_time_ms) OVER ( ) AS percent_total_resource_waits
    FROM sys.dm_os_wait_stats
    WHERE wait_time_ms > 0 -- remove zero wait_time
    AND wait_type NOT IN -- filter out additional irrelevant waits
    ( 'SLEEP_TASK', 'BROKER_TASK_STOP', 'BROKER_TO_FLUSH',
    'SQLTRACE_BUFFER_FLUSH','CLR_AUTO_EVENT', 'CLR_MANUAL_EVENT',
    'LAZYWRITER_SLEEP', 'SLEEP_SYSTEMTASK', 'SLEEP_BPOOL_FLUSH',
    'BROKER_EVENTHANDLER', 'XE_DISPATCHER_WAIT', 'FT_IFTSHC_MUTEX',
    'CHECKPOINT_QUEUE', 'FT_IFTS_SCHEDULER_IDLE_WAIT',
    'BROKER_TRANSMITTER', 'FT_IFTSHC_MUTEX', 'KSOURCE_WAKEUP',
    'LAZYWRITER_SLEEP', 'LOGMGR_QUEUE', 'ONDEMAND_TASK_QUEUE',
    'REQUEST_FOR_DEADLOCK_SEARCH', 'XE_TIMER_EVENT', 'BAD_PAGE_PROCESS',
    'DBMIRROR_EVENTS_QUEUE', 'BROKER_RECEIVE_WAITFOR',
    'PREEMPTIVE_OS_GETPROCADDRESS', 'PREEMPTIVE_OS_AUTHENTICATIONOPS',
    'WAITFOR', 'DISPATCHER_QUEUE_SEMAPHORE', 'XE_DISPATCHER_JOIN',
    'RESOURCE_QUEUE' )
    ORDER BY wait_time_ms DESC
    use below link to analyze wait stats
    http://www.sqlskills.com/blogs/paul/wait-statistics-or-please-tell-me-where-it-hurts/
    HTH
    PS: for reporting services you can post in SSRS forum
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • SQL server Database - Command based Crystal reports parameters issue

    Hi,
    We are migrating Oracle to SQL server database and trying to point our crystal reports  to new database.
    In command based reports, the parameters are defined in the where clause like this
       (' All' in {?Country} or loc.country in {?Country} )
    On modifying the report script to ANSI standard, loc.country in {?Country} gets recognized by Crystal but   'All' in {?Country} does not work.
    I am pretty sure that it should be defined in a different way,but not able to figure out.
    Any suggestions?
    Thanks,
    Nithya

    Hi Nithya,
    What is the error message you receive?
    -Abhilash

  • SQL Server 2008 R2 Disk Usage report showing incorrect data file

    When I go to ANY database (System, AdventureWorks*, user) in Managemant Studio, I right-click on the db, select Reports, select Standard Reports, and select Disk Usage.  The disk usage report shows the correct db on top, but always only shows AdventureWorks_Data.mdf
    when I expand Disk Space Used by Data Files section.  This happens to any db I try.  When I look at Database Properties/Files for that database, the logical and physical file names are correct.
    Since the correct files appear in Database Properties/Files, I'm hoping it's just a bug in the report.  Same thing happens if I run a Disk Usage by Table report for ANY database,  The tables for AdventureWorks always only appear,
    Thanks,  Mike

    Thanks Tibor!
    I looked at the Properties for my login under Security/Logins and it shows my default db to be master.  Not sure if this is correct, but it sounds plausible.  I'll see if I can report the problem.
    The only issue I can think of that was out of the ordinary for the install of 2008 R2 EE was this:
    I originally installed 2005 DE, since it wouldn't expire.  After the install of 2005 DE, I decided to uninstall it and install 2008 R2 EE.  In between the installs of 2005 DE and 2008 R2 EE, I installed/uninstalled stupid stuff like 2008
    Express, 2008 Express with Advanced Services (?), and 2008 EE.  After each uninstall I also did a system restore to be safe.
    Now each time I open Management Studio, i get a pop-up stating that there are SQL Server 2005 registered servers on my sytem and asks me if I want to add them into Management Studio.  I always say no.
    The AdventureWorks db is from 2005 and was installed automatically with 2005.  I installed the 2005, 2008, and 2008 R2 AdventureWorks databases to my R2 for class.  I'm not sure now if the Disk Usage report is showing me AdventureWorks_Data.mdf
    because of my install into 2008 R2 EE or my previous install of 2005 DE.
    Hope this kind of makes sense...
    -Mike

  • Can we call a bdc program from report program

    hi
    can we call a bdc program from report program

    Yes you can any program from another program using
    SUBMIT <repname>   statement
    SUBMIT <repname> USING SELECTION-SCREEN dynnr.
    or
    SUBMIT <repname> VIA SELECTION-SCREEN USING SELECTION-SET variant
    SUBMIT <repname> VIA SELECTION-SCREEN WITH SELECTION-TABLE rspar
    etc.
    Regards
    Prax

Maybe you are looking for

  • Hard Drives Constantly Failing

    I just received a new hard drive Monday through an AASP in Puebla, Mexico, due to a hard drive failure within two months of purchasing my laptop. Sadly, I'm now reinstalling OSX due to what appears to be a very similiar hard drive failure. Luckily, m

  • Roboform intergration

    Firefox 26 and Roboform 7.7.9 Roboform add on not working. Toolbar won't show. How can I get an older version of firefox?

  • Photoshop and Premier Elements 11?

    I just purcahsed Photoshop & premier Elements 11, can I legally install both of these onto my laptop and my desktop?

  • An object on badi, ale/idoc,bapi

    hi experts hi this is sripathi.i want objects on badi, ale.idoc,bapi,smartforms and  workfow. i would be thankful to you if any one send these real time objects.

  • Wrong picture gets sent

    i sent pictures from my iphoto and when my friend received them they were different pictures than the ones i sent....and it was the same picture over and over instead of the different ones i sent....i sent these pics directly from iphoto...i have bee