SQL 2012 Permissions

Hello
I need to know what are the permissions required for the
SBO_common
SLD
SBO_Company
For a user to use SAP Business One 9 and DTW!
Data Bases; I can't set my SQL users with full permisisons but I haven't found the SAP Note/Documentation that explains this. Can anyone please provide it?
Thanks

Hi,
For accessing DTW:
1. To log in DTW, you need SAP business one logon ID and password.
2. Logon ID should have permissions to import data
3. For changing SQL server in DTW log in window, you need logon ID and password for data base server.
4. For DTW documentation, you can refer DTW help file
Thanks & Regards,
Nagarajan

Similar Messages

  • SQL 2012 permissions and MBAM

    We are doing a deploy of MBAM 2.5 and as required, we have installed SQL 2012. A part of the setup is setting the required permissions in SQL. I am definitely not a DBA and do not have access to someone who knows it well. Can anyone walk me through setting
    the correct permissions from the following http://technet.microsoft.com/en-us/library/dn645331.aspx ? I am a novice with SQL, but can follow instruction.
    In particular the pieces on:
    Prerequisites for the Recovery Database
    Required SQL Server permissions
    Required permissions:
    SQL Server instance login server roles:
    dbcreator
    processadmin
    SQL Server Reporting Services instance rights:
    Create Folders
    Publish Reports
    Prerequisites for the Compliance and Audit Database
    Required SQL Server permissions
    Required permissions:
    SQL Server instance login server roles:
    dbcreator
    processadmin
    SQL Server Reporting Services instance rights:
    Create Folders
    Publish Reports
    Prerequisites for the Reports
    SSRS instance rights – required for configuring Reports only if you are installing databases on a separate server from the server where Reports are configured.
    Required instance rights:
    Create Folders
    Publish Reports
    Thanks in advance

    Hello,
    The permissions to create folders and publish reports are needed only if you have a separate SQL Server for reports (Reporting Services
    on a separate server). You don’t have that scenario?
    Anyway, in case you have that scenario, the following resources should help:
    http://technet.microsoft.com/en-us/library/aa337471(v=sql.105).aspx
    (Publisher role has permissions to add reports and create folders)
    http://technet.microsoft.com/en-us/library/aa337471(v=sql.105).aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • CDC for Oracle in SQL 2012 not writing updates

    Hello...
    I have set up a CDC for Oracle Service and Instance for use with SQL 2012.  After the instance was started, I inserted six rows of data into my Oracle table and a few minutes later, it looks like the changes were picked up by the service.
    The instance status page contains the following information:
    Status = Green Checkmark
    Detailed Status = PROCESSING
    Last Transaction Timestamp = 7/22/2014 12:11:56 PM
    Last Change Timestamp = 7/22/2014 11:58:35 AM
    Transaction Log Head Change Number = 0x0A2C1C...
    Transaction Log Tail Change Number = 0x0A2C1C... (not the same value as the head)
    Current Change Number = 0x0A2C1C...
    Active Transactions = 1
    Staged Transactions = 0
    Completed Transactions = 0
    Written Changes = 0
    Read Changes = 6
    It looks like the six rows have been read, but they are not being written to cdc.CDC_TEST_TABLE_CT on my SQL 2012 database.
    I exported the diagnostic data using the "Collect Diagnostics" link, but there are no errors in the log.  Is there a primer for how to read the results of the diagnostics?
    I had the following error earlier today:
    "ORACDC517E:Oracle Call Intreface (OCI) method failed: ORA-01291: missing logfile 
    ORA-06512: at "SYS.DBMS_LOGMNR"
    But that error was resolved when my Oracle account was granted DBA and "execute_catalog_role" permissions.
    The account being used for the CDC Service and Instance has dbo rights on the SQL Server.
    Does anyone have an idea what the problem could be?
    Any help would be greatly appreciated.
    Thanks!

    Arthur, thank you for responding.  I appreciate it! :)
    I followed the instructions from Rakesh Parida's video on Technet.  Below are the individual steps I followed for creating the CDC Service and Instance.
    CDC Service Setup:
    I made sure that supplemental logging was enabled on my Oracle server.  I also made sure that my Windows account had DBA and "execute_catalog_role" permissions on the Oracle database.
    From the CDC Service Config MMC I ran Action>Prepare SQL Server which created the MSXDBCDC database.
    I then ran Action>New Service and entered the following information:
    Service name: OracleCDCService1
    Service Account: "This Account" radio button with my Windows username and password information
    Associated SQL Server: <My SQL 2012 Server>
    Authentication: Windows authentication
    I also provided a CDC Service master password.
    CDC Instance Setup:
    Connected to <My SQL 2012 Server> using the CDC Designer MMC
    Went through the steps of creating the Oracle CDC Instance
    Oracle CDC Instance Name = CDC_TEST_SOURCE
    Connected to my Oracle DB using Windows authentication
    Selected a single table that I wanted to try CDC on and left CDC Gating Role blank
    Ran the Oracle Logging script that enables table logging and supplemental log groups on the Oracle DB
    Ran the Status Check step and all passed
    Finished the wizard and started the instance
    A few minutes after the instance was started I added six records to the table in Oracle.
    Please let me know if you need more info.
    Thanks!

  • Unable to restore a .bak file in SQL 2012

    Environment: SQL 2012 SP1 Standard on Windows Server 2012 R2 Standard (Hyper-V instance on 2012 Standard)
    I've been trying to restore a backup file that was updated on another system by our vendor (Omnify)
    I'm getting the error: Omnify5.mdf cannot be overwritten. It is being used by the database Omnify5
    I've tried putting the database in single user mode, Ive tried taking the database offline
    I've tried rebooting
    I've tried the following code:
    use
    Master;
    GO
    alter
    database omnify5
    set
    single_user
    with
    rollback immediate;
    alter
    database omnify5
    set
    multi_user;
    Go
    And I've checked file permissions
    I've verified the BAK file
    I've re-created a backup to see if I could restore using it and still no joy.
    Anyone have another idea?
    Thanks
    Jim Bogart "bogart dot james at gmail dot com"

    It looks like the file is still accessed by some other process, make sure that the file is no longer connected with any other database
    select name,physical_name from sys.master_files
    Take the database to single_user
    Take the database offline
    Put the database in multi_user mode
    Restore the database with overwrite option ( You can either use SSMS or Restore command)
    RESTORE DATABASE PowerSQL
    FROM DISK = 'f:\PowerSQL\PowerSQL.bak'
    WITH MOVE 'YourMDFLogicalName' TO 'F:\SQLData\PowerSQL_Data.mdf',
    MOVE 'YourLDFLogicalName' TO 'F:\SQLLog\PowerSQL_Log.ldf'
    WTIH REPLACE, MOVE
    -Prashanth

  • SQL 2012 Management Studio Remote Servers Service Status Slow/Stops Working

    This is a huge annoyance.  I manage about 50 SQL instances of SQL Server versions 2005-2012 and I noticed that it takes 1-2 seconds to load the service status (green arrow) on each individual server.  If you then connect to a server, you have to
    wait for all the statuses to be loaded first in the Registered Servers list before it loads the statuses for servers in the Object Explorer.  This happens whether the servers are registered in Local Server Groups or Central Management Servers, and whether
    I have access to all servers (as windows local administrator and sa), or not.  It also happens regardless of whether I run as Administrator or normally on my instance of SSMS (which is SQL 2012 Development on Windows Server 2008 R2).
    These servers are also registered in alphabetical order by group and server name, which means that if I have "DEV" groups, they will be registered before "PROD", unless I rename accordingly.  It sometimes takes a few minutes, if
    I'm lucky, to get a server I connect to to load, which means I can't use SSMS to really manage any remote servers and start/stop/pause/resume/restart services.
    Worse, sometimes due to a server becoming unavailable (due to updates/patches/failovers), SSMS is unable to load the service statuses anymore for any new server connections made to object explorer, resulting in the loss of ability to view/change service statuses. 
    In this case, there is no way to recover (Refresh of Central Management Servers does nothing), except to close SSMS and open it again, and then wait again for all the statuses to load.
    I have lived with this since first installing SQL, and regardless of the Windows Updates and SQL patches applied, the problem has never gone away.  This also happens if I load SSMS in Windows Server 2012.  Its starting to become a huge issue now
    that I have to patch several servers each month.
    I have already checked WMI permissions, GPO, firewall, etc. as per all the suggestion on the internet, including this post
    http://www.sqlservercentral.com/Forums/Topic825246-146-1.aspx.  None of these suggestions have made a difference, as my real problem is one of connectivity and performance, and
    not security, which most of these suggestions apply to.  Of note, all servers are in the same domain, firewall is disabled across the board, correct permissions for local administrators exist for remote registry settings, WMI, GPO, etc, and all service
    accounts and windows accounts that are used are local admins and sysadmins.
    My work-around has been to delete the Central Management Server and any local server group registered servers, close and re-launch SSMS, and then connect to a server I'm interested in via Object Explorer.  Otherwise, close and re-launch will take forever. 
    My other alternative is to RDP into the remote server and manage services via SQL Configuration Manager locally.
    If anyone has any ideas on how to fix this, or make it go faster, I'd really appreciate it.
    Diane

    Hi Satish,
    Thanks for taking the time to reply.  Yes, I actually am already using work-arounds (i.e. methods other than SSMS) to accomplish my tasks.  My issue is that this is supposed to be working and provide a nice GUI so that you can easily visualize
    any issues, and address them directly, without having to hodge-podge access via scripts or 3rd-Party tools.
    Since no one else has any comments, I guess there are no plans to make remote server administration work with SSMS properly then, and that kludge methods are the only ones being advocated.
    Diane

  • Change SQL 2012 Security roles after installation

    I installed SQL 2012 SP1  Standard edition and during the setup it asked me for the users for various service . I choose to keep them as default  
    After the installation i could see the services were not started, so i changed everything to Local System 
    Also in future i may need to change them to run under some domain service account.
    What steps do i have to take to make sure approprate rights are granted to the accounts that run the SQL services. I could see Local System just had Public security role.
    Can someone guide me on verifying what the security roles for accounts should be.

    running them as domain account is  a good thing and it does not need to part of admin group.
    make sure your domain account has access backup paths/locations.
    Also, make sure your account has "perform volume maintanence tasks" - to make use of INF.
    Is your system 64 bit or 32 bit. if 64 bit, you are okay else you will need to enable lock pages in the memory for the service.
    Below are the links to some articles that talk about this:
    http://www.mssqltips.com/sqlservertip/2503/how-to-create-secure-sql-server-service-accounts/
    http://blogs.msdn.com/b/askjay/archive/2011/02/28/required-rights-for-sql-server-service-account.aspx
    http://technet.microsoft.com/en-us/library/ms191543(v=sql.110).aspx
    http://blogs.msdn.com/b/sqlserverfaq/archive/2010/05/28/inf-permissions-required-for-sql-server-service-account-to-use-ssl-certificate.aspx
    Hope it Helps!!

  • SQL 2012 Report Builder + UAG

    Quick description of setup:  I have 4 total SharePoint servers, 2WFE's, 2APP's, and a SQL Cluster.  I am using SQL 2012, + I have installed the reporting services add-in for SQL 2012 and have gone through the entire setup.  Everything works,
    KCD, stored credentials, I am able to create reports within report builder, launch report builder and so on... When I publish the site using UAG, report builder fails to connect to the report server, in this case either of the WFE's in the farm.  I thought
    initially it was "body parsing" since looking at the diagnostic logs I noticed that the request coming in looked as if the /_vti_bin/ReportServer/ portion was missing and all I saw was "sitename.something.local:443/ReportService2010.asmx".  I added some
    entries to skip body parsing and that didnt seem to work at all.
    Running FIDDLER - I noticed that when I launch report builder, there is a 302 redirect to the main trunk, or the trunk to which the site is published on.  I see a bunch of 302's, and it just stops.. never connects.  When I try to connect from within
    report builder, I get an error saying "cannot connect to https://sitename.fqdn"  make sure the url is correct and or you have permissions. 
    It seems to me that report builder does not work through UAG.  Can anyone suggest a fix?

    Hello,
    I have a same issue, after search, they are saying to make delegation if you are using Kerberos but it didn't work either, so is there any configuration needed.
    Regards, 

  • Moving Service Manager Database From SQL 2008 R2 SP2 to SQL 2012 SP1

    Hi Guys,
    Just looking for some clarification about moving our Service Manager 2012 R2 database to a new SQL Server.
    Our Service Manager database is currently on a remote SQL server, shared with other databases, running SQL 2008 R2 SP2. It was originally setup this way as we only deployed Change Management but we are now wanting to deploy everything, fully
    utilising SCSM/Orchestrator and Cireson's suite. Due to the limited resources available on that SQL server we are seeing performance issues before even getting it all up and running.
    I want to move the Service Manager database to a new dedicated SQL server running SQL 2012 SP1. I am aware of the official DB move procedure but it does not specifically mention moving up SQL versions. I have seen some comments around here that
    it is fine to do but some feedback would be good, it is not something I have done before. 
    All servers in this are fully patched Windows 2008 R2. Also, we do not currently have a Data Warehouse so do not need to worry about that. It was dropped and uninstalled before upgrading to Service Manager 2012 R2 and will be reinstalled after this DB move
    using a separate dedicated SQL server.
    Thanks, Chris.

    As long as your collations and permissions are the same as before it
    should not be a problem. That sad i could not find any other documentation saying it's not supported. 
    I have moved SCSM databases between different SQL-versions before and it has worked fine if the collations etc are correct. 
    Cheers,
    Thomas Strömberg
    System Center Specialist
    Blog:  
    Twitter:   LinkedIn:
    Please remember to 'Propose as answer' if you find a reply helpful

  • File opening throws RBS exception after migrating to a new farm with sql 2012

    We have successfully migrated the SP 2010 -sql 2008 r2 wss_content to a new sp2010 farm with sql 2012. The old and new farms are configured for RBS - FIlestream.
    In the new farm when tried opening a document we see the below exceptions in event viewer. The documents open fine for admin users and fail for others. I have verified all the permissions on the blob store file location and it looks good. Users have no 
    issue uploading new files over and below the set the file size limit.
    Any suggestions on how to debug this would be great, do we need to rerun the .migrate() to realign any of the blob file references, we played around setting the max file size couple of times.
    Event vwr on DB server -
    FILESTREAM file named with GUID '00311100-0000-51eb-f3a8-0b387bc5c5ce' that belongs to FILESTREAM data file ID 0x10001 does not exist or cannot be opened.
    Event vwr on Front end -
    Message ID:20, Level:ERR , Process:10580, Thread:36
    Blob store <FilestreamProvider_1> threw this exception:
    Operation: Unknown
    BlobStoreId: 1
    Log Time: 5/5/2014 8:00:49 PM
    Exception: Microsoft.Data.SqlRemoteBlobs.BlobStoreException: There was a generic database error. For more information, see the included exception. ---> System.Data.SqlClient.SqlException: A transport-level error has occurred when receiving results from
    the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)
       at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
       at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParserStateObject.ReadNetworkPacket()
       at System.Data.SqlClient.TdsParserStateObject.ReadBuffer()
       at System.Data.SqlClient.TdsParserStateObject.ReadByteArray(Byte[] buff, Int32 offset, Int32 len)
       at System.Data.SqlClient.TdsParserStateObject.ReadInt64()
       at System.Data.SqlClient.TdsParserStateObject.ReadPlpLength(Boolean returnPlpNullIfNull)
       at System.Data.SqlClient.TdsParser.ProcessColumnHeader(SqlMetaDataPriv col, TdsParserStateObject stateObj, Boolean& isNull)
       at System.Data.SqlClient.SqlDataReader.ReadColumnHeader(Int32 i)
       at System.Data.SqlClient.SqlDataReader.GetBytesInternal(Int32 i, Int64 dataIndex, Byte[] buffer, Int32 bufferIndex, Int32 length)
       at System.Data.SqlClient.SqlDataReader.GetBytes(Int32 i, Int64 dataIndex, Byte[] buffer, Int32 bufferIndex, Int32 length)
       at Microsoft.Data.BlobStores.FilestreamBlobStore.FilestreamStoreLibraryBase.ReadBlob(Byte[] storePoolId, Byte[] storeBlobId)
       --- End of inner exception stack trace ---
       at Microsoft.Data.BlobStores.FilestreamBlobStore.FilestreamStoreLibraryBase.ReadBlob(Byte[] storePoolId, Byte[] storeBlobId)
       at Microsoft.Data.BlobStores.BlobStore.ReadBlobInternal(Request request)
    BlobStoreException Code: OperationFailedAuthoritative
    -Mash "http://sharepointxperiments.wordpress.com"

    Migration - its a content db backup/restore/mount to new farm with sql 2012 from sql 2008 r2
    Okie here are the results after we tried to narrow down the issue to few steps-
    This issue happens on documents that are already existed in the content db prior to migration. we picked two docs from one library. DOC A and DOC B of close to same size..
    DOC A - file size 64k, rbs max size set to 1mb.
    Regular User and SPAdmin both can open fine, check out n check in successfully.
    no entries made in event vwr of front end and DB server
    DOC B - file size 64k, rbs max size set to 1mb
    SPAdmin - can check out n open fine, but cannot check in back - file not available error
    Regular User - cannot open the file - file not avialable at the url
              Both users can view doc properties at lib level..
    Errors found in event vwr of DB server -
    "FILESTREAM file named with GUID '00311100-0000-51eb-f3a8-0b387bc5c5ce' that belongs to
    FILESTREAM data file ID 0x10001 does not exist or cannot be opened."    
    and
           "The operating system returned the error '2(The system cannot find the file specified.)' while attempting 'FsDoHandler::CreateFile' on 'H:\Blob_Store\a06953ae-6f49-43b1-9c2d-fefb13bda9fe\1c581a4a-b450-4143-bc3d-8d419b49b0fb\0000eb20-000066ff-0002'
    at 'fstrman.cpp'(2075)."
    I incline to believe that the references for documents in blob store could have been corrupted for some documents during the migration. Any new docs uploaded to content or to blob are all accessible fine.
    I'm not sure running .migrate() will re align the blob file references? Any ideas on how to effectively get this resolved..
    -Mash "http://sharepointxperiments.wordpress.com"

  • Reports not Generated after moving SCCM 2012 SP1 DB on SQL 2012 SP1 cluster

    Hi all,
    i have moved my SCCM 2012 SP1 DB on SQL 2012 SP1 Failover Cluster,this cluster is a two node cluster.the DB was moved fine and the DB configuration in SCCM Site maintenance was also done successfully.After the migration process,SCCM was working fine created
    few collections & packages, then checked the DB on cluster & they were updated successfully.
    but when i tried to install report server on my SCCM machine,again there was no instance displayed after entering the cluster name.
    I searched this & come across this post :-
    http://social.technet.microsoft.com/Forums/en-US/configmanagergeneral/thread/4479e73e-8a19-4c7e-9418-b36770656b9b/
    which says to install report server on the cluster node machine which is currently running the Reporting Service.I tried to install the report server & the instance was detected this time.it was installed successfully.
    But when i tried to generate reports I got this error :-
    Permissions are fine as i have added SCCMadmin & sccm machine in the local admin of both the nodes.
    Please Help.
    Thanks,
    Pranay.

    Yes, I know this is an old post, but I’m trying to clean them up. Did you solve this problem, if so what was the solution?
    If you look at your second screenshot the Remote errors is not enabled. Use this blog to enable them.
    http://www.enhansoft.com/blog/enabling-remote-errors-in-sql
    If changing the data source on the report fixed it for a single report. It means that your shared Datasource is having problems. Reset the username and password within CM12 console and this should fix it for every report.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • SQL 2012 FileTable remote access through Mgmt Studio

    I'm having trouble accessing the FileTable directory from any machine other than the local server.  Does anyone know of a detailed resource for explaining all of the permission 'areas' to allow remote access?
    On the SQL 2012 server:
    I can open 2012 Mgmt Studio, expand down to the FileTable, right-click and Explore the FileTable Directory.  Directory appears and contents are visible.
    On remote computers:
    Doing the same action as above results in: 'The File location cannot be opened.  Either access is not enabled or you do not have permissions for the same.'
    I'm using the same domain account on both systems, and it is a local OS admin & Sysadmin on the SQL server and local OS admin on the remote computer.  Tried turning firewalls off on both machines.
    I setup the Filestream and FileTable using the documentation at:
    http://msdn.microsoft.com/en-us/library/ff929144 'FileTables (SQL Server)
    Any suggestions?
    Cheers,
    J

    What I've found so far:
    1. Leave Windows share as created by SQL Server when enabling FileStream and FileTable.  (ie windows share should have a path of: 
    \\?\GlobalRoot\.....)
    2. Firewall ports TCP 139 & 445 must be open.
    3. Users have db_owner permission to the database.  Based on other posts I think this can be modified, but still working on that.  For me enabling db_datareader and db_datawriter was not enough for users to access the FileTable.  At the moment
    I'm not sure if SQL logins will work as the system seems to use passthrough authentication.  Not sure how SQL logins would pass through from an external client.

  • SQL 2012 Always On Availability Groups

    Has anyone configured FIM SYnc, FIM Service and MSF in SQL 2012 Always On Availability groups
    I do not believe we can configure the SQL connection string for FIM Sync or FIM Service to include "multisubnetfailover"
    TIA
    Nigel

    I commented on this here:https://social.technet.microsoft.com/Forums/en-US/64f55628-3b5d-4d16-9044-dcbe7053581d/lack-of-support-for-fim-database-mirroring?forum=ilm2
    Additional comments:
    SQL Server Always On Failover Cluster Instances should be supported just as SQL Clustering is supported.
    SQL Server Always On Availability Groups are not supported, just as Database Mirroring in synchronous mode (which is required for automatic failover) is not supported. I can't find authoritative statements of this on the web. But I know this to be the
    case.
    Ultimately, the reason for lack of support for mirroring (for automatic failover or in synchronous mode) is that the product group has said so (in conferences and webinars). Meaning the product group has not tested it or has and decided that it doesn't
    work or adds risk.
    Possible underlying reasons:
    1) To do automatic failover with mirroring or Availability groups you must edit the connection string. The way FIM builds the connection string out of the components in the registry don't permit this.
    2) Running mirroring in synchronous mode slows down performance in two ways: first is the additional traffic to send it to the mirror partner (or replica), second and most important is that synchronous requires that the primary not truly commit the transaction
    until it has been committed to the secondary which means transactions take longer. For some products this can result in an unacceptable performance degradation.
    Hopefully, MIM will support Availability groups.
    David Lundell, Get your copy of FIM Best Practices Volume 1 http://blog.ilmbestpractices.com/2010/08/book-is-here-fim-best-practices-volume.html

  • Unable to get SQL Server Agent to run after installing SQL 2012 Standard with SP1

    I am unable to get SQL Server Agent to run after installing SQL 2012 Standard with SP1. Log message is as follows:
    Attempting to load library 'xplog70.dll' into memory. This is an informational message only. No user action is required.
    Failed to verify Authenticode signature on DLL 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\xplog70.dll'.
    Error: 17750, Severity: 16, State: 0.
    Could not load the DLL xplog70.dll, or one of the DLLs it references. Reason: (null).

    Hi JFriedley,
    According to your error message, there might three reasons for this issue.
    xplog70.dll is corrupt, you need to check if you have any SQL Server running on same file version and same production
     edition. If xplog70.dll is corrupt, you can copy it from the new server where agent is running fine to your problematic server.
    Native client not installed properly. If you try applying any latest Service Pack or Cumulative Update then check if the SQL Server Agent can start, if that also doesn’t solve issue then try to reinstalling SQL Server Native client from SQL Server setup
    files.
    There is a similar issue about error 17750, you can review the following article.
    http://blogs.lostincreativity.com/sqldba/sqlserver-error-17750-could-not-load-the-dll-xpstar90-dll/
    Regards,
    Sofiya Li
    If you have any feedback on our support, please click here.
    Sofiya Li
    TechNet Community Support

  • T-sql 2012 accept null parameter values

    The following t-sql 2012 works fine in sql management studio. However when I place it in a .net 2010 web form application, I am told the sql does not work when the parameter values are null. Thus can you tell me what I can change in the sql below that will
    accept null as 3 possible input values?
    SELECT i.[lastName]
                ,i.[firstName] 
                ,i.[middleName]
                ,i.[suffix] 
                ,a.[userid]
                ,a.schoolnum 
                ,a.spa 
                ,a.mrref
                from [OPS].[dbo].[Identity] i 
                inner join  [OPS].[dbo].[Person] p on i.identityID = p.currentIdentityID 
                inner join [OPS].[dbo].[UserAccount] u on u.personID = p.personID 
                inner join [CampusOps].[dbo].[AtnLtrUsers] a on a.userid =u.username
                       where (i.[lastName] like  '%' + @lname  + '%' or i.[firstName] like'%' +
    @fname + '%'
                       or i.[middleName]  like'%' + @mname + '%')
    or (@fname is null and @lname is null and @mname is null)
            order by  i.[lastName], i.[firstName], i.[middleName]"

    You should create a stored procedure for this.
    create procedure GetNames
    (@lname varchar(max) = null, @fname varchar(max) = null, @mname varchar(max) = null)
    as
    begin
    SELECT i.[lastName]
    ,i.[firstName]
    ,i.[middleName]
    ,i.[suffix]
    ,a.[userid]
    ,a.schoolnum
    ,a.spa
    ,a.mrref
    from [OPS].[dbo].[Identity] i
    inner join [OPS].[dbo].[Person] p on i.identityID = p.currentIdentityID
    inner join [OPS].[dbo].[UserAccount] u on u.personID = p.personID
    inner join [CampusOps].[dbo].[AtnLtrUsers] a on a.userid =u.username
    where (i.[lastName] like '%' + @lname + '%' or @lname is null) and
    (i.[firstName] like'%' + @fname + '%' or @fname is null) and
    (i.[middleName] like'%' + @mname + '%' or @mname is null)
    order by i.[lastName], i.[firstName], i.[middleName]
    end
    Also keep in mind that NULL is different than an empty string but it should work exactly like a null anyway (unless your columns/fields are also NULLable).

  • Object reference not set to an instance of an object. Unable to finish the SQL 2012 installation on a VM Machine

    Hi, My name is Leonard and I am studying SQL. I have downloaded the newest MS SQL 2012 and also MS 2012 Hyper-V. I have set a MS 2012 Hyper-V on a laptop with AMD Turion 64 X2 and 3G of RAM (Planing
    to add more to max at 8G).
    Following the instructions in the free online
    Administering Microsoft SQL Server 2012 Databases” Training Kit, I have set 6 virtual machines as instructed in the Training Kit. While the installation of the MS Server Core 2008 R2 SP1 completed with no
    problem, the same cannot be said for the SQL Server 2012 installation. I have encountered an error that I have not seen anyone address in any of the SQL web forums.
    After running the unattended setup instruction (Setup.exe /qs /ACTION=Install /FEATURES=SQLEngine /INSTANCENAME=MSSQLSERVER
    /SQLSVCACCOUNT="Njowa\Pa$$worD>" /SQLSVCPASSWORD=" Pa$$worD” /SQLSYSADMINACCOUNTS="Njowa\lenny#4!@" /AGTSVCACCOUNT="NT AUTHORITY\Network Service"
     /IACCEPTSQLSERVERLICENSETERMS) this is what I get after a series SQL setup
     initiation windows popups then disappears.
    The following error occurred:
    Object reference not set to an instance of an object.
    Error result: -2147467261
    Result facility Code: 0
    Result error Code: 16387
    Please review the summary.txt log for further details
    My question is: What instance of an object is not properly initialize in the Setup instructions

    Hello,
    Please note that SQL Server requires at least 1 GB of RAM. The operating system (Windows Server) requires 2 GB of RAM (recommended) or 512 MB (minimum). This means any virtual machine that will receive the installation of a SQL Server instance requires 1.5
    or 2 GB at least.
    The behavior of SQL Server setup tells me that the virtual machine does not have enough memory assigned or .NET Framework 3.5 was not enable on Control Panel->Program
    and Features before trying to install SQL Server.
    The following thread is about another possible cause of this error:
    http://social.msdn.microsoft.com/Forums/mr-IN/sqlsetupandupgrade/thread/575d3025-69f5-4152-a473-44496b008811
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

Maybe you are looking for

  • Accessing the value in option Tag in html using JSTL

    Hi, Following is my code <select> <option value="1">one </option> <option value="2">Two</option> </select> Now, if I select two from the option, i need to get the value 2, using JSTL( JSP standard Tag Library). Can someone help me out. Thanks Achilli

  • On safari the bottom part of the screen is greyed out. only the top inch is fine. how do i fix this?

    on safari the bottom of the screen (about 80%) is greyed out. the top part is ok. anyone know how i sort it? thanks

  • Requirement Qty in Report MCRE(Based on S026 Info Structure)

    Hi, PP gurus Issue: When i run report MCRE for material usage wrt Prod.order selection as input. Requirement qty as per BOM component explosion is not updating correct figure. suppose say my BOM comp. reqd qty 100 it is showing there in MCRE as 200.(

  • BOM Alternative Check on CS01 screen

    Dear All, Right now i need to implement a user exit for the BOM alternative in CS01 screen. For a particular BOM Usage we should not allow the user to create alternative other than '1'. So before getting the automatic alternative i need to implement

  • Most Recent Date Variable?

    Using Discoverer Viewer. I want to be able to enter in some URL arguments that brings up a workbook with a parameter. What I have so far does what I'm trying to. I enter my user/database info and call up the workbook with a parameter based on whateve